linuxcncrsh for receiving stepper actvity feedback.

More
23 Mar 2022 10:13 #238091 by GGorge
Hello world!
I am new in trying to use LabView to control stepper motors through linuxcncrsh commands in real time, therefore I cannot just give it with the whole Gcode.
I want the stepper to move, then have a small (2 sec) pause and then start doing another action. My problem is that I don't know when the motors have stopped moving, therefore I don't know when to start waiting.  
My question then is, Is there any way to have a feedback from Linuxcnc to know if the motors are moving or not?
Thankyou in advance.

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

More
24 Mar 2022 19:28 #238259 by andypugh
Do you have to use linuxcncrsh?

abs_cmd_pos [{0|1|...}]

With get, returns the specified axis’ commanded position in absolute coordinates. If no axis is specified, returns all axes’ commanded absolute position.

abs_act_pos [{0|1|...}]

With get, returns the specified axis’ actual position in absolute coordinates. If no axis is specified, returns all axes’ actual absolute position.

I imagine that comparing the commanded and actual position might work (I don't know how different the numbers ever get.

Alternatively wait for the same values to be returned several times.
The following user(s) said Thank You: GGorge

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

Time to create page: 0.045 seconds
Powered by Kunena Forum