Programming a negative software limit switch

Negative software limit switch

The G98 command sets negative SLS in the programmed axes.

G98 is active blockwise; the SLS programmed in this way are then active across blocks.

Notice

notice

The positions for negative SLS programmed via G98 are stored in the axis-specific variables V.A.-SWE.X, V.A.-SWE.Y, V.A.-SWE.Z, etc. [PROG].

When there is a reset, mode change or axis change, the variables are pre-assigned the value of P-AXIS-00177 of each axis.

Programing Example

prg_example

Negative software limit switch

(Example 1 – absolute)

%swe_abs.nc
N110 G00 X0  Y0  G90
N120 G00 X20 Y30

(Sets neg. SLS in X to -100 and Y to -200)

N130 G98 X-100 Y-200

( .... )

(Example 2 – relative)

%swe_rel.nc
N110 G00  X0 Y0  G90
N120 G00 X20 Y30

(Offsets neg. SLS in X by 10 and Y by 20)

N130 G98  G91 X10 Y20

( .... )

Warnings, errors and reactions

  1. The new position is not taken over.
  2. P-AXIS-00177 continues to define the negative SLS.
  1. The new position is not taken over.
  1. Reset the controller.
  1. Interpolation is stopped.
  2. The new position of the SLS is taken over.
  1. Reset the controller.
  2. Move within the valid range.