Set negative software limit switch (G98)
Syntax: | ||
G98 | Set negative software limit switch | non-modal |
G98 sets the negative limit switch positions in [mm, inch] in all programmed axes. Depending on the G90/G91 setting, this may be absolute or additive to the previous software limit switch position.
The positions for negative limit switches are saved in the axis-specific variables:
V.A.-SWE.X, V.A.-SWE.Y, V.A.-SWE.Z, etc.
(see also Axis-specific variables).
Notice
"Non-modal"
…only applies to the command G98; the software limits switches themselves are effective in modal mode.
After machine start-up, the default value of axis parameter P-AXIS-00177 is valid first.
The following applies concerning the validity of limit switch positions for all builds of V2.11.20xx and V2.11.28xx:
- The limit value can be further restricted in the NC program by programming but cannot be increased. In other words, the limit value defined in the axis parameter list cannot be increased by G98.
- In static axis constellations (without axis exchange) the limit value changed in the NC program first remains valid at program end and is also effective in the next NC program activated. Only after CNC reset followed by a program restart does the original default value become valid again.
As of Build V3.1.3077.0 the following applies:
- See description in Section “Supplements to G98 and G99”
In dynamic axis constellations (with axis exchange) reset to the original default value is executed when the axis is adopted in the channel.
A G98 change acts on the axis motion path range, on independent axes and on single axes. Relative motion path ranges in manual mode are not affected; they are influenced by the NC command #MANUAL LIMITS [...].
Programing Example
Set negative software limit switch (G98)
N10 G90
...
N100 G98 X-1000 Y-2000 Sets negative software limit switch
in X to -1000 and in Y to -2000