Programming Actions and Conditions
S7-GRAPH for S7 300/400 Programming Sequential Control Systems
7-6 C79000-G7076-C526-01
Event Instruction Address
Identifier
Address
Location
Meaning:
S0, V0, L0, L1 N, R, S,
CALL
Q,I,M,D
FB, FC, SFB,
SFC
m.n
block number
After the event is detected, the
following applies to the next step cycle:
• Address has signal state 1 (N) once
• Address set to signal state 0 (S)
once
• Address set to signal state 0 (R)
once
• Block is called once (CALL)
m = byte address; n = bit address; address range: 0.0 to 65535.7
Address D: DBi.DBXm.n = data block number i; DBXm.n = bit in the DB;
SFBi / FBi = (system) function block number i; SFCi / FCi = (system) function number i
Event-Dependent Actions - for Activating and Deactivating Steps
Other steps can be activated or deactivated using the ON and OFF instructions.
The instructions are always dependent on a step event, in other words the event
determines the time at which the step is activated or deactivated.
These instructions can be combined with an interlock. The actions are only
executed when the conditions of the interlock are satisfied.
Event Instruction Address
Identifier
Address
Location
Meaning:
S1, V1, A1, R1 ON[C], OFF[C] S i Activate (ON) or deactivate (OFF) the step
dependent on the event [and interlock]
S1, V1 OFF[C] S_ALL Deactivate all steps dependent on the event
[and interlock]. The exception to this is the
step in which the action is located.
S0, V0, L0, L1 ON, OFF S i Activate (ON) or deactivate (OFF)
dependent on the event
L1 OFF S_ALL Deactivate all steps dependent on the
event. The exception to this is the step in
which the action is located.
i: step number
Note
If a step is both activated and deactivated in one cycle, deactivating has higher
priority.