- GCode and Part Programs
- O Codes (subroutines) and NGCGUI
- Unpredictable behavior of o-code subroutine
Unpredictable behavior of o-code subroutine
26 Mar 2020 14:26 #161569
by romeofox
Unpredictable behavior of o-code subroutine was created 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.
Do you know problems with subroutines that are terminated too early?
Many greetings
Robert
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
Please Log in or Create an account to join the conversation.
26 Mar 2020 18:03 #161586
by bbsr_5a
Replied by bbsr_5a on topic Unpredictable behavior of o-code subroutine
Hi
DEBUG is a Command
and MSG is also a command
use only one command in one line
so
DEBUG,mymassage
or MSG mymasage
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.
28 Mar 2020 12:23 #161796
by andypugh
I am a little confused by this description.
Could you perhaps show the version that works and, separately, the version that does not work?
Replied by andypugh on topic Unpredictable behavior of o-code subroutine
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.
- GCode and Part Programs
- O Codes (subroutines) and NGCGUI
- Unpredictable behavior of o-code subroutine
Time to create page: 0.089 seconds