Programming instructions
12-6
NC Compiler Functions NC Programming 17VRS
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
X
Z
Retract
p
osition
( 80 / 75 )
Intermediate
p
osition
( 80 / 50 )
Fig. 12-4: Retract motion with intermediate position
:
RETURN X80 Z50 ;Programming the intermediate position
:
M30
The following subroutine is entered in the cycle memory:
.P_RT G0 X80 Z75 RTS ;Move to retract position cycle
Note:
Further DEFINE instructions and further subroutines may be
defined. This enables fixed positions to be approached via an
intermediate point. The names of the macros and subroutines
may be defined by the user.
Entire sequences can be programmed in the subroutines.
The machine manufacturer creates the subroutines and the
macros. The user merely enters the NC program line RETURN.
12.4 Modal Function
The MODF_ON(STRI) modal function(STRI) permits repeatedly used
expressions to be written once only.
MODF_ON(STRI) ;Activate modal function (modal f
unction on)
MODF_OFF ;De-activate modal function (modal function off)
•
The string
STRI
that is, in parentheses, transferred with the modal
function may contain up to 80 characters.
•
It is inserted in all subsequent blocks with axis movements.
•
The modal function is de-selected using the MODF_OFF key word.
Modal function
Syntax
Explanation