Python Interface Feed Hold

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 or Create an account 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
The following user(s) said Thank You: JT

Please Log in or Create an account 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;
}
The following user(s) said Thank You: JT

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

More
2 years 5 months ago - 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
Last edit: 2 years 5 months ago by JT.

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

More
2 years 5 months ago #299712 by andypugh
Replied by andypugh on topic Python Interface Feed Hold
If you set it off in Python then on again with G53, does Python still "win"?

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

More
2 years 5 months ago - 2 years 5 months ago #299722 by JT
Replied by JT on topic Python Interface Feed Hold
Issuing a M53 P0 then turning off python feed-hold (which is really feed-hold-enable) then turning on M53 with M53 P1 the python status feed_hold_enabled is true and setting motion.feed-hold on stops motion.

I 'think' I just misunderstood what does what with python set_feed_hold(int) which should be named set_feed_hold_enabled(int).

Turning off M53 then setting python set_feed_hold true it turns on M53 and updates the python mcodes status.

Setting python set_feed_hold False does not update the python mcodes so it 'looks' like M53 is on when it's really off.

In any case the python status feed_hold_enabled always shows the correct status of feed hold enable.

JT
Last edit: 2 years 5 months ago by JT.

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

Time to create page: 0.294 seconds
Powered by Kunena Forum