CNC programming

Negative software limit switch

G98 sets the negative software limit switch positions in the programmed axes. Depending on whether G90/G91 is set, this takes place absolutely or additively to the previous software limit switch position.

The G98 command is active in the block in which it is programmed and the software limit switch positions programmed with it are active across several blocks.

CNC programming 1:

The positions for the negative software limit switches programmed via G98 are stored in the axis-specific variables V.A.-SWE.X, V.A.-SWE.Y, V.A.-SWE.Z, etc. [PROG].OnReset, mode changes and axis replacement, the variables are assigned the value of the P-AXIS-00177 parameter of the respective axis.

Programming example

N10 G90...N50 G98 X-1000 Y-2000 Sets negative software limit
switch

               in X to -1000 and in Y to –2000

Messages

The message with the ID 120013 is displayed if the controller calculates, after programming with G98, a position for the negative software limit switch that is less than the position defined by the P-AXIS-00177 parameter.

The calculated software limit switch position is not adopted as the position for the negative software limit switch, but the value of the P-AXIS-00177 parameter.

The message with the ID 120014 is displayed if the controller calculates, after programming with G98, a position for the negative software limit switch that is equal to or greater than the position of the positive software limit switch.

The controller adopts the calculated position of the software limit switch as the value for the negative software limit switch.

A message with the ID 120015 is displayed if the current actual position of the axis after programming of G98 is less than that of the negative software limit switch.

The control system must be reset.

Positive software limit switch

G99 sets the positive software limit switch positions in the programmed axes. Depending on whether G90/G91 is set, this takes place absolutely or additively to the previous software limit switch position.

The G99 command is active in the block in which it is programmed, and the software limit switch positions programmed with it are active across several blocks.

CNC programming 2:

The positions programmed via G99 for the positive software limit switches are stored in the axis-specific variables V.A.+SWE.X, V.A.+SWE.Y, V.A.+SWE.Z, etc. [PROG]. OnReset, mode changes and axis replacement, the variables are assigned the value of the P-AXIS-00178 parameter of the respective axis.

Programming example

N10 G90...N50 G99 X+1000 Y+2000 Sets
positive software limit switch

               in X to +1000 and in Y to +2000

Messages

The message with the ID 120009 is displayed if the controller calculates, after programming with G99, a position for the positive software limit switch that is more than the position defined by the P-AXIS-00178 parameter.

The calculated software limit switch position is not adopted as the position for the positive software limit switch, but the value of the P-AXIS-00178 parameter.

The message with the ID 120010 is displayed if the controller calculates, after programming with G99, a position for the positive software limit switch that is equal to or less than the position of the negative software limit switch.

The controller adopts the calculated position of the software limit switch as the value for the positive software limit switch.

A message with the ID 120011 is displayed if the current actual position of the axis after programming of G99 is more than that of the positive software limit switch.

The control system must be reset.