beckhoff TF5200 — 4 Programming

Programming 4 Programming The NC command #INSERT CMD can be used to specify stop marks via the NC program. The "AXNR" parameter is used to set the mode. AXNR = 0 – DISTANCE mode (default) AXNR !=0 – POSITION mode The distance specification ABS/REL or REL_ONCE are mutually exclusive. When you use simultaneous programming within an #INSERT CMD instruction, the error is output with ID 22130. The default assignment of the NC command is: #INSERT CMD [MNR=0 DIST = 0 REL AX=0] If M function control unit after the STOP is reached. If M function is specified >= 2, the default acknowledgement of the M function is sufficient.

The bit in the stop conditions [ } 26] is displayed on the HLI when an inserted stop is reached. The combination of the parameters DIST=0 and REL=1 clears the previously set STOP irrespective of the parameters MNR and AXNR, The current distance can be reset with #DISTANCE PROG START CLEAR. TF5200 | TwinCAT 3 CNC Insert stop command 25 Version: 1.141 Syntax: #INSERT CMD [ON | OFF] [AXNR=.. MNR=.. ADDR=.. DIST=.. [ABS | REL | REL ONCE] ] _ ON Insert stop marks is enabled OFF Insert stop marks is disabled. This results in a stop at the program position. AXNR=.. Logical axis number Stop is inserted at the commanded axis position of the axis with this logical axis number. Note:

Mode is defined by specifying the logical axis number. AXNR = 0 – DISTANCE mode is used AXNR !=0 – POSITION mode is used Default value = 0 MNR=.. Number of the inserted M function • Value = 0 for M00 programmed stop (default) • Value = 1 for M01 optional stop (enabled/disabled with m01 stop enable CU) _ _ • Value > 1 for M with MVS SVS synchronisation _ _ _ ADDR=.. Optional additional value of the M function; it is specified as a negative or positive integer. DIST=.. Relative/absolute distance or axis position in [0.1µm] at which the stop is to be inserted.

Dependent on the mode used ABS One-off insertion at the absolute distance REL for relative distance with automatic insertion of a new stop when the current stop is reached. REL ONCE _ One-off insertion at the relative distance.