Programming instructions

NC Programming 17VRS NC Events
7-3
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
Wait until NC Event Is Reset ‘WER’
The WER command wait until NC NC-event is reset is used in the proc-
ess in which WER is programmed to stop program processing until the
NC-event defined in the command parameter is reset. If the NC-event is
already reset, the block continues to process without interruption.
WER <Process number[0..6]>:<Event number[0..31]>
WER 1:15
WER <Event number[0..31]>
WER 9
If the symbol "*" is declared instead of the NC-event number, proc-
essing waits until at least one NC-event in the specified process is re-
set.
NC-events can also be changed by the SPS program. Therefore
please refer to the machine builder's information since the builder may
have used various NC-events for synchronization purposes.
Since a process which is waiting for an NC-event cannot reset the
same NC-event, it is only possible to wait for one NC-event whose
status is changed by a different process, SPS or user interface.
The WER command should not be programmed in a portion of a pro-
gram in which tool path compensation is active. If this proves to be
unavoidable, be certain the WES is only programmed between linear
block transitions.
Example NC program - Influencing NC events
At the begin of both part programs, all NC-events for the given process
are reset. The NC-program in process 2 stops block processing in the
third line until NC-event no. 1 is set in the sixth line in NC program in
process 1.
NC program process 1 NC program process 2
RE 1:* ;Reset all NC events in
process 1
RE 2:* ;Reset all NC events in
process 2
T1 BSR .M6 ;Tool change T1 ;Tool change
M03 S150 ;Spindle ON WES 1:1 ;Wait for NC event 1 of
process 1
G04 F15 ;Dwell time M03 S150 ;Spindle ON
M05 ;Spindle OFF G04 F15 ;Dwell time
SE 1:1 ;Set NC event in process
1
M05 ;Spindle OFF
RET ;End of program RET ;End of program
Syntax