Counter Instructions
45
S7-400 Instruction List
A5E00267845-01
Counter Instructions
The count value must be in ACCU1-L in the form of a BCD number (0 - 999).
In-
Length
Execution Time in
s
In-
struc-
Address ID
Description
Length
in
Execution Time in
s
struc-
tion
Address ID
Description
in
Words
CPU 412
CPU 414
CPU 416
CPU 417
S
C f
C [e]
Presetting of counter on edge
change from “0” to “1”
1
1)
/2
0.2
0.4+
0.12
0.12+
0.08
0.08+
0.06
0.06+
Counter para.
2
0.2+
0.12+
0.08+
0.06+
R
C f
C [e]
Reset counter to “0”
when RLO = “1”
1
1)
/2
0.2
0.4+
0.12
0.12+
0.08
0.08+
0.06
0.06+
Counter para.
2
0.2+
0.12+
0.08+
0.06+
CU
C f
C [e]
Increment counter by 1 on edge
change from “0” to “1”
1
1)
/2
0.2
0.2+
0.12
0.12+
0.08
0.08+
0.06
0.06+
Counter para.
2
0.2+
0.12+
0.08+
0.06+
Status word for:
S, R, CU
BR
CC1
CC0
OV
OS
OR
STA
RLO
/FC
Instruction evaluates:
–
–
–
–
–
–
–
Yes
–
Instruction affects:
–
–
–
–
–
0
–
–
0
+
Plus time required for loading the address of the instruction (see page 20)
1)
With direct instruction addressing Counter No.: 0 to 255