pausing execution of G-code

More
18 Jan 2022 07:22 #232224 by sm
pausing execution of G-code was created by sm
Hello Everyone,
Is it possible to pause execution of program when sensor goes "HIGH"?
What I need is the following:
I have designed not usual cnc machine to cut brittle and hard materials (primarily natural stone, glass etc.).
I am planning to use force sensor in the machine. When sensor's output exceeds certain value, I need G-code execution to be paused until the moment force sensor's value comes back and equal the limit.
When sensor's value goes back to limit value - pause needs to be release and execution of G-code continues.

Is it possible to do with linuxcnc?
Any suggestions, please on how to achieve it?

Thank you very much in advance!
 

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

More
18 Jan 2022 07:33 #232228 by rodw
The following user(s) said Thank You: sm

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

More
18 Jan 2022 08:30 #232233 by MaHa
Replied by MaHa on topic pausing execution of G-code
I would net the sensor output to motion.feed-inhibit

from the manual:
motion.feed-inhibit IN BIT When this pin is TRUE, machine motion is inhibited for gcode commands.If the machine is performing a spindle synchronized move when this pin goes TRUE, the spindle synchronized motion will finish, and any following moves will be inhibited (this is to prevent damage to the machine, the tool, or the work piece).If the machine is in the middle of a (non-spindle synchronized) move when this pin goes TRUE, the machine will decelerate to a stop at the maximum allowed acceleration rate.Motion resumes when this pin goes FALSE.Note: feed-inhibit applies to gcode commands -- not jogs.
The following user(s) said Thank You: sm

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

More
18 Jan 2022 10:42 #232254 by tommylight
Replied by tommylight on topic pausing execution of G-code
Not sure exactly what is required, but from what i understand something like this would be best:
-analog pressure sensor
-PID loop to inversly lower feed rate as the pressure rises.
This would keep the machine movements smooth.
The motion inhibit will cause the machine to stop and start on every trigger causing vibrations, violently if it is a heavy machine, and i suppose it is heavy for stone.

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

More
19 Jan 2022 02:17 #232381 by sm
Replied by sm on topic pausing execution of G-code
Hi tommylight,
Thank you for replying! And thank you to everybody else replied to me!
not exactly. the cutting medium, which is wire is stringed to constant value. force sensor is in-line with it. I am trying to keep weight of moving parts as light as it possible and that is why choosing the motor takes several years for today as in addition to weight I need the motor to be BLDC. This is what I need to stop temporarily execution of G-code. But I need it to be resumed automatically when sensor will report previously set value back. This will, yes, make machine to run and pause and that might happen quite often. I just remember that in linuxcnc interface there is a need to press the button manually after G-code has been paused. I need the way to do it automatically.

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

More
19 Jan 2022 03:35 #232392 by rodw
Replied by rodw on topic pausing execution of G-code
motion.feed inhibit seems like it will be perfect for you. You may ned to adjust your accelleration settings

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

More
19 Jan 2022 03:42 #232397 by sm
Replied by sm on topic pausing execution of G-code
Thank you @rodw, will look into it!

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

More
19 Jan 2022 09:50 #232424 by tommylight
Replied by tommylight on topic pausing execution of G-code
I wonder, how the pressure is going to be relieved if there is no backward motion?
Motion.inhibit works perfectly but will not back off so the pressure will remain.
Is this a wire EDM ?

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

More
19 Jan 2022 16:45 #232447 by sm
Replied by sm on topic pausing execution of G-code
yes, @tommylight - it is a wire. Not EDM though.

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

Time to create page: 0.062 seconds
Powered by Kunena Forum