|
Post by cherokee140d on Aug 16, 2012 11:19:05 GMT -8
Further to the above The screen displays the following G codes automatically G15 G1 G18 G40 G20 G90 G94 G54 G49 G99 G64 G97.
In General Config: Init Screen: Only G80 is specified. (Doesn't even show above.
The only codes that My progam have set would be: G18 G40 G49 G80 G90 G94 in the safety block. (tried removing G40 but it still appears).
G0, G1, G52 in the code.
May I assume that either Mach or MSM inserts the remaing codes?
Thanks, John
|
|
|
Post by DaveCVI on Aug 16, 2012 15:19:06 GMT -8
Hi John, G-code is defined as a language that has modes. Many of the G-code words set these modes to different states. For example, the interpreter can be in either G1 (feed mode) or G0 (rapid mode) - but it can't be in both modes at the same time.
The G-code status line is populated by mach and shows the current state of the mach g-code interpreter modes.
The thing about modes is that they always have to be in one of the allowed states - there is no such condition as "this has never been set and thus is not known". This requires that all modes have default values that are set whenever mach is started.
Even if the gcode does not explicitly set a mode state, the mode still has a state and is shown in the mach line. That is why you see things there even if your code did not set them.
Dave
|
|
|
Post by cherokee140d on Aug 16, 2012 18:24:33 GMT -8
Dave
Appreciate the explanation.
John
|
|