Can I control an output while gcode is being processed?
30 Oct 2024 07:48 #313474
by bladekel
Can I control an output while gcode is being processed? was created by bladekel
I need to make an addition to a GUI I created using Python and QtDesigner.
Is it possible to control an output at the same time while a line of gcode is being processed?
For example,the machine started to move from (0,0,0) . The gcode in process (G0 X60 Y80, Z-5) is making a movement in x,y and z coordinates and the movement is 100mm.
I need to toggle one output for every 10mm progression.
How do I do that?
Is it possible to control an output at the same time while a line of gcode is being processed?
For example,the machine started to move from (0,0,0) . The gcode in process (G0 X60 Y80, Z-5) is making a movement in x,y and z coordinates and the movement is 100mm.
I need to toggle one output for every 10mm progression.
How do I do that?
Please Log in or Create an account to join the conversation.
30 Oct 2024 08:25 #313475
by Aciera
Replied by Aciera on topic Can I control an output while gcode is being processed?
I would insert an M63 P.. before the move in question to set a digital output synchronized with the start of the movement. Then create a realtime component that starts to calculate the 3d distance when the digital output goes true and outputs a signal for every 10mm of travel.
Please Log in or Create an account to join the conversation.
30 Oct 2024 17:53 #313501
by bladekel
Replied by bladekel on topic Can I control an output while gcode is being processed?
I would be grateful if you could give me a little more detail. I saw that synchronized movements can be made with M63 in the manual, but I could not find details.
Please Log in or Create an account to join the conversation.
30 Oct 2024 17:57 #313503
by Aciera
Replied by Aciera on topic Can I control an output while gcode is being processed?
Please Log in or Create an account to join the conversation.
Time to create page: 0.059 seconds