Additional functions
14.4 Wait for valid axis position (WAITENC)
Job planning
672 Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
14.4 Wait for valid axis position (WAITENC)
Function
Using the language command WAITENC, the NC program waits until the synchronized or
restored axis positions are available for the axes configured with
MD34800 $MA_WAIT_ENC_VALID = 1.
An interruption can take place in the wait state, e.g. by starting an ASUB or by changing the
operating mode to JOG. When the program is continued, where relevant, the wait state is
resumed.
Note
In the user interface, the wait state is displayed using the hold state "Wait for measuring
system".
Syntax
WAITENC can be programmed in the program section of any NC program.
Programming must be realized in a dedicated block:
...
WAITENC
...
Example
WAITENC is e.g. used in an event-controlled user program,
.../_N_CMA_DIR/_N_PROG_EVENT_SPF, as shown in the following application example.
Application example:Tool retraction after POWER OFF with orientation transformation
Machining with tool orientation was interrupted due to a power failure.
When powering up again, the event-controlled user program
.../_N_CMA_DIR/_N_PROG_EVENT_SPF is called.
In the event-controlled user program, the system waits for synchronized or restored axis
positions using
WAITENC; in order to then be able to calculate a frame, which aligns the Work
in the tool direction.