Programming instructions
7-2
NC Events NC Programming 17VRS
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
Reset NC Event ‘RE’
The NC-event defined in the command parameter is reset using the
command RE. If the NC-event is already reset, this command will be ig-
nored. The NC-event continues to be reset until it is set by the SE set NC-
event command, the SPS program or via the MUI/GUI/SOT interface
tools.
RE <Process number[0..6]>:<Event number[0..31]>
RE 1:15
RE <Event number[0..31]>
RE 9
•
If the symbol "*" is declared instead of the NC-event number, all the
NC-events in the given process are addressed.
•
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.
•
Even though it is theoretically possible to reset NC-events in other
processes, it is a good idea to only change NC-event status in the
process to which the NC-event belongs and to only scan NC-events
from other processes.
Wait until NC Event is Set ‘WES’
The WES command wait until NC NC-event is set is used in the process
in which WES is set to stop program processing until the NC-event de-
fined in the command parameter is set. If the NC-event is already set, the
block continues to process without interruption.
WES <Process number[0..6]>:<Event number[0..31]>
WES 1:15
WES <Event number[0..31]>
WES 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 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 set 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 WES 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.
Syntax
Syntax