Position of the positive software limit switch
Positive software limit switch
The command G99 sets the positive SLS in the programmed axes.
- If G90 is active, the positive SLS is set absolute to the programmed value.
- If G91 is active, the programmed value is added relative to P-AXIS-00178.
G99 is active in each block; the software limit switches programmed using it are active cross-block.
Notice
The positions programmed with G99 for the positive SLS are stored in the axis-specific variables V.A.+SWE.X, V.A.+SWE.Y, V.A.+SWE.Z, etc. [PROG].
The variables are pre-assigned the value of P-AXIS-00178 of each axis at a reset, mode change or axis change.
Programing Example
Positive software limit switch
(Example 1 – absolute)
%swe_abs.nc
N110 G00 X0 Y0 G90
N120 G00 X20 Y30
(Sets pos. SLS in X to 100 and Y to 200)
N130 G99 X100 Y200
( .... )
(Example 2 – relative)
%swe_rel.nc
N110 G00 X0 Y0 G90
N120 G00 X20 Y30
(Offsets pos. SLS in X by -10 and Y by -20)
N130 G99 G91 X-10 Y-20
( .... )
Warnings, errors and reactions
- Warning P-ERR-21650: The controller uses G99 to calculate a position for the positive SLS that is greater than the position defined by P-AXIS-00178.
- The new position is not taken over.
- P-AXIS-00178 continues to define the positive SLS.
- Error message P-ERR-21878: The controller uses G99 to calculate a position for the positive SLS that is equal to or smaller than the position defined by P-AXIS-00177.
- The new position is not taken over.
- Error message P-ERR-70021: The current actual position of the axis with G99 is greater than the new positive SLS.
- Interpolation is stopped.
- The new position of the SLS is taken over.
- Reset the controller.
- Move within the valid range.