Unpredictable behavior of o-code subroutine

More
26 Mar 2020 14:26 #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.
....
;(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
Attachments:

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

More
26 Mar 2020 18:03 #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 or Create an account to join the conversation.

More
28 Mar 2020 12:23 #161796 by andypugh

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 or Create an account to join the conversation.

Time to create page: 0.127 seconds
Powered by Kunena Forum