Python Interface Feed Hold

More
2 years 5 months ago #299622 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

 

Please Log in to join the conversation.

More
2 years 5 months ago #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

Please Log in to join the conversation.

More
2 years 5 months ago #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

Please Log in to join the conversation.

More
2 years 5 months ago #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 to join the conversation.

More
2 years 5 months ago #299634 by JT
Replied by JT on topic Python Interface Feed Hold
Thanks I'll check in a bit.

JT

Please Log in to join the conversation.

More
2 years 5 months ago #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

Please Log in to join the conversation.

More
2 years 5 months ago #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

Please Log in to join the conversation.

More
2 years 5 months ago #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

Please Log in to join the conversation.

More
2 years 5 months ago #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;
}

Please Log in to join the conversation.

More
2 years 5 months ago #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

Please Log in to join the conversation.

Time to create page: 1.304 seconds
Powered by Kunena Forum