10
Motion-Synchronous Action 12.97
10.1 Structure
basic information
10
840 D
NCU 571
840D
NCU 572
NCU 573
FM-NC
810D
840Di
ï›™
Siemens AG 2000. All rights reserved
10-340
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition
WHEN
The condition is tested until it is fulfilled once, the associated action
is executed once.
WHENEVER
The condition is tested cyclically. The associated action is executed
cyclically while the condition is fulfilled.
FROM
After the condition has been fulfilled once, the action is executed
cyclically while the synchronized action is active.
EVERY
The action is initiated once when the condition is fulfilled and is
executed again when the condition changes from the FALSE state to
the TRUE state. The condition is tested cyclically. Every time the
condition is fulfilled, the associated action is executed.
Condition
Gating logic for real-time variables, the conditions are checked in the
interpolation cycle.
In
SW
5
and higher, the G codes can be programmed in
synchronized actions for condition evaluation.
DO
Triggers the action if the condition is fulfilled.
Action
Action started if the condition is fulfilled. e.g. assign variable,
activate axis coupling, set NCK outputs, output M and H functions, ...
In
SW 5
and higher, the G codes can be programmed in
synchronized actions for actions/technology cycles.
Coordination of synchronized actions/technology cycles
CANCEL[n]
Cancel synchronized action
LOCK[n]
Inhibit technology cycle
UNLOCK[n]
Enable technology cycle
RESET
Reset technology cycle
Programming example
WHEN $AA_IW[Q1]>5 DO M172 H510
;If the actual value of axis Q1 exceeds 5 mm, auxiliary
functions M172 and H510 are output to the PLC interface.
If real-time variables occur in a part program
(e.g. actual value, position of a digital input or output
etc.), preprocessing is stopped until the previous block
has been executed and the values of the real-time
variables obtained.
The real-time variables used are evaluated in
interpolation cycles.
Advantages with synchronized actions:
Preprocessing is not stopped.