Overview of All Actions
S7-GRAPH for S7-300/400 Programming Sequential Control Systems
C79000-G7076-C526-01
13-13
13.3
Counters in Actions
These actions are executed once when the event occurs and the corresponding
step is active. When the sequencer is run through after this, an event-dependent
action is executed again only when the event occurs again.
Action
Explanation
Address
range
Event
In-
struc-
tion
Address
Area
Location
S1: Counters in actions linked with activation of a step
S1
CS
C
<initial
counter
value>
X
As soon as the step becomes active (enters
state), the initial counter value is loaded in the
counter.
x = counter
number
S1
CU
C
X
As soon as the step becomes active (enters
state), the counter is incremented by 1.
x = counter
number
S1
CD
C
X
As soon as the step becomes active (enters
state), the counter is decremented by 1.
x = counter
number
S1
CR
C
X
As soon as the step becomes active (enters
state), the counter is reset to 0.
x = counter
number
S1
CSC
C
<initial
counter
value>
X
As soon as the step becomes active (enters
state) and the condition (interlock) is satisfied,
the initial counter value is loaded in the
counter.
x = counter
number
S1
CUC
C
X
As soon as the step becomes active (enters
state) and the condition (interlock) is satisfied,
the counter is incremented by 1.
x = counter
number
S1
CDC
C
X
As soon as the step becomes active (enters
state) and the condition (interlock) is satisfied,
the counter is decremented by 1.
x = counter
number
S1
CRC
C
X
As soon as the step becomes active (enters
state) and the condition (interlock) is satisfied,
the counter is reset to 0.
x = counter
number
S0: Counters in actions linked with deactivation of a step
S0
CS
C
<initial
counter
value>
X
As soon as the step is deactivated (leaves
state), the initial counter value is loaded in the
counter.
x = counter
number
S0
CU
C
X
As soon as the step is deactivated (leaves
state), the counter is incremented by 1.
x = counter
number