Position Synchronized Output

More
27 Aug 2021 08:03 #218872 by wang
hi

Does anyone know the PSO function? Is Position Synchronized Output

I use three servo drives to operate laser cutting through EtherCAT and a laser. I want to realize the PSO function. Has anyone done it? Or does anyone have good suggestions?

Attach an explanation page of the PSO function:
www.aerotech.com/a3200-product-feature-h...hronized-output-pso/

In fact, it is how to quickly obtain the position of the XY axis and output a pulse at equal intervals. An example of two light spots is about 30 microns.


Hope everyone can give me some help
Thank you very much

Please Log in or Create an account to join the conversation.

More
27 Aug 2021 12:39 #218904 by dm17ry
Replied by dm17ry on topic Position Synchronized Output
maybe the stepgen component can be used for that? sample axis.[xy].pos-cmd summing the distance in each servo cycle: dist+=sqrt(dx^2+dy^2). feed dist to the stepgen configured for 30um per step and it should output those pulses... check the base-thread frequency vs your feed rate though..
The following user(s) said Thank You: wang

Please Log in or Create an account to join the conversation.

More
27 Aug 2021 14:10 #218907 by PCW
Replied by PCW on topic Position Synchronized Output
It looks like the drive has the stepgen like hardware that outputs the video stream
I guess the issue is how you get the video data stream to the drive via linuxCNC
(and any position breakpoints needed)

I am interested in a clean way to do this as its almost the same hardware wise
as Mesa's DataPainter firmware module (that is basically a position locked loop
that clocks a FIFO of on/off or PWM video data)
The following user(s) said Thank You: wang

Please Log in or Create an account to join the conversation.

More
31 Aug 2021 02:03 #219210 by wang
Replied by wang on topic Position Synchronized Output

maybe the stepgen component can be used for that? sample axis.[xy].pos-cmd summing the distance in each servo cycle: dist+=sqrt(dx^2+dy^2). feed dist to the stepgen configured for 30um per step and it should output those pulses... check the base-thread frequency vs your feed rate though..

Hello, thanks for your reply

I still have questions to consult you, where should I do this calculation after obtaining the axis position? hal file? I don’t know that calculations can be done in the hal file. Can you give me an example for my needs?

Most sincere thanks

Please Log in or Create an account to join the conversation.

More
31 Aug 2021 06:56 #219223 by Aciera
Replied by Aciera on topic Position Synchronized Output
You might want to look at writing a custom component:

www.forum.linuxcnc.org/24-hal-components...te-new-hal-component

Please Log in or Create an account to join the conversation.

More
31 Aug 2021 07:08 #219224 by wang
Replied by wang on topic Position Synchronized Output
Oh, yes, thank you. If I can't do it in other ways, I will try it, thank you

Please Log in or Create an account to join the conversation.

More
31 Aug 2021 08:48 #219230 by Aciera
Replied by Aciera on topic Position Synchronized Output
Here is another link for documentation:

linuxcnc.org/docs/2.8/html/hal/comp.html

Please Log in or Create an account to join the conversation.

Moderators: snowgoer540
Time to create page: 0.086 seconds
Powered by Kunena Forum