Delete Distance to go (G31)

Command

G31

Cancellation

End of block

G31 (“delete distance to go”) is activated block by block via the NC program. This command enables deleting of the residual distance of the current geometry from the PLC with the function block ItpDelDtgEx. In other words, if the command is issued while the block is processed, the motion is stopped with the usual deceleration ramps. The NC program then processes the next block. An error message is generated if the PLC command is not issued during the execution of a block with "delete distance to go" selected.

G31 always effects an implicit decoding stop, i.e. an exact positioning always occurs at the end of the block.

Example:

N10 G01 X0 Y0 F6000
N20 G31 G01 X2000
N30 G01 X0
N40 M02

Requirements

Development Environment

Target System

TwinCAT V3.1.4024.20

PC or CX (x86 or x64)