Modulo Movements
Command | MOD[<axis and target modulo position>] |
Cancellation | End of block |
Parameter 1 | Axis for modulo operation |
Parameter 2 | Arithmetic sign for the direction of rotation (optional) |
Parameter 3 | Modulo position |
The modulo position is programmed in the same way as normal positioning.
The MOD command is effective for specific blocks, and must be explicitly programmed for every axis that is selected for modulo operation. The modulo position's arithmetic sign specifies the direction of rotation.
- Positive sign: The axes moves in the 'larger' direction
- Negative sign: The axes moves in the 'smaller' direction
- Exception: The axis cannot move to modulo -0, since zero has no sign
Sample 1:
N10 G90
N20 G01 MOD[X200] Y30 F600
N30 G01 X200
N20 specifies a move in a positive direction for X to modulo position 200. Y moves to absolute position 30. In block N30, X is moved absolutely to position 200, i.e. not modulo.
Modulo Operation Applicable to Q-Axes The |
Modulo movements of more than 360 degrees
The MOD command also allows movements of more than a 360 degrees to be made.
Modulo position = number of necessary rotations * 360 + modulo position
Sample 2:
N10 G90
N20 G01 X3610 F6000
N30 R1=360
N40 G01 MOD[X=R1+20]
In this example, the X axis moves 360 degrees to modulo position 20.
Restrictions and notes of for modulo movements:
- No radius compensation may be active for the modulo axis.
- No zero shift may be active for the modulo axis.
- During relative programming (G91) the modulo command is not evaluated, so that the axis referred to in square brackets is treated as if the MOD command had not been given.
Modulo factor
The modulo factor is constant, and is 360.