linuxcncrsh for receiving stepper actvity feedback.
- GGorge
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
23 Mar 2022 10:13 #238091
by GGorge
linuxcncrsh for receiving stepper actvity feedback. was created 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.
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
24 Mar 2022 19:28 #238259
by andypugh
Replied by andypugh on topic linuxcncrsh for receiving stepper actvity feedback.
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.
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