Python Interface Feed Hold
03 May 2024 12:39 - 03 May 2024 12:43 #299622
by JT
Python Interface Feed Hold was created by JT
The python interface feed hold doesn't work for some reason. I can watch the feed hold status change from false to true but the program keeps running in a feed move.
Anyone have a clue what's wrong?
Edit: M53 is on.
JT
Anyone have a clue what's wrong?
Edit: M53 is on.
JT
Last edit: 03 May 2024 12:43 by JT.
Please Log in or Create an account to join the conversation.
03 May 2024 13:26 #299627
by andypugh
Replied by andypugh on topic Python Interface Feed Hold
Maybe you need to enable fedd-hold and/or issue a G53?
linuxcnc.org/docs/stable/html/gcode/m-code.html#mcode:m53
linuxcnc.org/docs/stable/html/gcode/m-code.html#mcode:m53
Please Log in or Create an account to join the conversation.
03 May 2024 13:41 #299629
by JT
Replied by JT on topic Python Interface Feed Hold
M53 is enabled and I can see feed hold toggle from false to true in the status.
The only thing in the python interface is set_feed_hold(int), I don't see any other way to enable is except M53.
JT
The only thing in the python interface is set_feed_hold(int), I don't see any other way to enable is except M53.
JT
Please Log in or Create an account to join the conversation.
03 May 2024 14:23 #299633
by andypugh
Replied by andypugh on topic Python Interface Feed Hold
Maybe the Python interface is exactly the same as a G53, in that all it does is enable the feed-hold HAL pin?
Please Log in or Create an account to join the conversation.
03 May 2024 14:26 #299634
by JT
Replied by JT on topic Python Interface Feed Hold
Thanks I'll check in a bit.
JT
JT
Please Log in or Create an account to join the conversation.
03 May 2024 16:01 - 03 May 2024 16:07 #299642
by JT
Replied by JT on topic Python Interface Feed Hold
Toggling M53 and toggling the set_feed_hold from the python interface don't change motion.feed-hold. Even setting motion.feed-hold to true doesn't stop feed moves.
Edit: motion.feed-inhibit stops all motion feed and rapid
JT
Edit: motion.feed-inhibit stops all motion feed and rapid
JT
Last edit: 03 May 2024 16:07 by JT.
Please Log in or Create an account to join the conversation.
03 May 2024 17:27 #299646
by JT
Replied by JT on topic Python Interface Feed Hold
Ok in Axis if M53 is active toggling motion.feed-hold works so it makes me wonder if the GUI is doing it.
JT
JT
Please Log in or Create an account to join the conversation.
03 May 2024 18:57 #299662
by cmorley
Replied by cmorley on topic Python Interface Feed Hold
I think python's feed-hold and M53 are the same thing.
it should have been called feed-hold-enable
I the python module it calls the NML message:
EMC_TRAJ_SET_FH_ENABLE
There seems not to be a equivalent to motions feed-hold in python.
probably nml message:
EMC_TRAJ_HALT_TYPE
it should have been called feed-hold-enable
I the python module it calls the NML message:
EMC_TRAJ_SET_FH_ENABLE
There seems not to be a equivalent to motions feed-hold in python.
probably nml message:
EMC_TRAJ_HALT_TYPE
The following user(s) said Thank You: JT
Please Log in or Create an account to join the conversation.
03 May 2024 19:39 #299666
by cmorley
Replied by cmorley on topic Python Interface Feed Hold
m53 and python's feed_hold just control a switch for the motion.feed-hold HAL pin.
that pin is used in control.c to set the feed scaling to 0.
if ( enables & FH_ENABLED ) {
/* read feed hold HAL pin */
if ( *emcmot_hal_data->feed_hold ) {
scale = 0;
}
that pin is used in control.c to set the feed scaling to 0.
if ( enables & FH_ENABLED ) {
/* read feed hold HAL pin */
if ( *emcmot_hal_data->feed_hold ) {
scale = 0;
}
The following user(s) said Thank You: JT
Please Log in or Create an account to join the conversation.
03 May 2024 20:53 - 03 May 2024 20:53 #299672
by JT
Replied by JT on topic Python Interface Feed Hold
Chris, thanks for clearing that up.
I just did some testing and python feed-hold true, M53 off and motion.feed-hold stops motion.
With python feed-hold false and M53 active motion.feed-hold does not stop motion.
JT
I just did some testing and python feed-hold true, M53 off and motion.feed-hold stops motion.
With python feed-hold false and M53 active motion.feed-hold does not stop motion.
JT
Last edit: 03 May 2024 20:53 by JT.
Please Log in or Create an account to join the conversation.
Time to create page: 0.089 seconds