Unpredictable behavior of o-code subroutine

More
6 years 7 months ago #161569 by romeofox
Hello,

for my linear tool change I use as M6 remap the attached code with linuxcnc version 2.9.

The exciting thing is that the line G53 G1 Y100 F#29 is stopped in the middle of the movement as soon as I remove the debug output (DEBUG, MSG3) in the next line. What is output there doesn't seem to matter. Neither does it matter that immediately after that a (redundant) G53 G0 Z0 Y100 F#29 follows, which is not executed either.
Code:
.... ;(DEBUG, MSG1) G53 G1 Z0 F#29 ;(DEBUG, MSG2) G53 G1 Y100 F#29 (mit WZ ausfahren) (DEBUG, MSG3) G53 G0 Z0 Y100 F#29 (mit WZ ausfahren) ....

Do you know problems with subroutines that are terminated too early?

Many greetings
Robert

Please Log in to join the conversation.

More
6 years 7 months ago #161586 by bbsr_5a
Hi
DEBUG is a Command
and MSG is also a command
use only one command in one line
so
DEBUG,mymassage
or MSG mymasage

Please Log in to join the conversation.

More
6 years 7 months ago #161796 by andypugh

romeofox wrote: The exciting thing is that the line G53 G1 Y100 F#29 is stopped in the middle of the movement as soon as I remove the debug output (DEBUG, MSG3) in the next line.


I am a little confused by this description.

Could you perhaps show the version that works and, separately, the version that does not work?

Please Log in to join the conversation.

Time to create page: 2.016 seconds
Powered by Kunena Forum