Programming instructions

NC Programming 17VRS NC Events
7-1
DOK-MTC200-NC**PRO*V17-ANW1-EN-P
7 NC Events
7.1 Definition of NC Events
Which can be used by the NC-program and which, like flags in the SPS
program, represent any desired state defined by the programmer. NC-
events can be set and reset as desired in the NC and SPS programs.
Processes can be synchronized by waiting for a defined state in an NC-
event.
Up to 224 NC-events are available in the CNC. Thirty-two (32) local NC-
events are allocated to each process. When the process numbers are
used for addressing, all 224 NC-events can be used in a process, re-
gardless of whether the process itself is defined. An NC-event is identified
by the process to which it belongs and by the NC-event number. If the
process to which the NC-event belongs is not programmed, the process
defaults to the process in which the NC-event is programmed.
Interrupt-controlled program branches can be performed with the aid of
NC-events. This is described in section 7.4 Asynchronous Handling of
NC-events.
If an "*" 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.
The status of the NC-events is retained after control power deactivation.
Before NC-events are used in an NC-program, they should be placed in
a defined state.
NC-events 0 to 7 are reserved for interrupt-controlled program branches;
in general, they should be kept open for such functions.
Various NC-events are used by the INDRAMAT standard/optional NC-
cycles. The numbers of these NC-events are stated in the corresponding
description.
No more than four different NC-event commands and only one NC-
event branch command may be programmed in one NC-block.
7.2 Influencing NC Events
Set NC Event ‘SE’
The NC-event defined in the command parameter is set using the com-
mand SE. If the NC-event is already set, this command will be ignored.
The NC-event continues to be set until it is reset by the RE reset NC-
event command, the SPS program or via the MUI/GUI/SOT interface
tools.
SE <Process number[0..6]>:<Event number[0..31]>
SE 1:15
SE <Event number[0..31]>
SE 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 set NC-events in other proc-
esses, 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.
Syntax