
Counter Instructions
Ladder Logic (LAD) for S7-300 and S7-400 Programming
A5E00706949-01
4-5
4.3 S_CU Up Counter
Symbol
S_CU
PV
Q
CV
R
CV_BCD
CU
S
English German
C no. Z no.
Z_VORW
ZW
Q
DUAL
R
DEZ
ZV
S
Parameter
English
Parameter
German
Data Type Memory
Area
Description
C no. Z no. COUNTER C Counter identification num-
ber; range depends of CPU
CU ZV BOOL I, Q, M, L, D Count up input
S S BOOL I, Q, M, L, D Set input for presetting
counter
PV ZW WORD I, Q, M, L, D
or constant
Enter counter value as
C#<value> in the range
from 0 to 999
PV ZW WORD I, Q, M, L, D Value for presetting
counter
R R BOOL I, Q, M, L, D Reset input
CV DUAL WORD I, Q, M, L, D Current counter value,
hexadecimal number
CV_BCD DEZ WORD I, Q, M, L, D Current counter value,
BCD coded
Q Q BOOL I, Q, M, L, D Status of the counter
Description
S_CU (Up Counter) is preset with the value at input PV if there is a positive edge at
input S.
The counter is reset if there is a "1" at input R and the count value is then set to
zero.
The counter is incremented by one if the signal state at input CU changes from "0"
to "1" and the value of the counter is less than "999".
If the counter is set and if RLO = 1 at the inputs CU, the counter will count
accordingly in the next scan cycle, even if there was no change from a positive to a
negative edge or viceversa.
The signal state at output Q is "1" if the count is greater than zero and "0" if the
count is equal to zero.
Commenti su questo manuale