Specifications
IEC 1131-3 Instructions
10-15
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
10.4 IEC Counter Instructions
Table 10-4 gives page references for the non-standard IEC Counter instructions.
Table 10-4 Non-Standard IEC Counter Instructions
Description
Page
High-Speed Counter Instruction 9-27
High-Speed Counter Definition Instruction 9-27
Pulse Output Instruction 9-49
Up Counter
The Up Counter function block counts up from the
current value to the preset value on the rising edges of
the Count Up (CU) input. When the current value (CV) is
greater than or equal to the preset value (PV), the
counter output bit (Q) turns on. The counter is reset
when the reset input (R) is enabled. The Up Counter
stops counting when it reaches the preset value (PV).
Note
Since there is one current value for each counter, do not assign the same number
to more than one counter. (Up Counters, Down Counters, and Up/Down Counters
access the same current value.)
Inputs/Outputs Operands Data Types
CU (FBD only) I, Q, M, SM, V, S, L, T, C, Power Flow BOOL
R (FBD only) I, Q, M, SM, V, S, L, T, C, Power Flow BOOL
PV (LAD & FBD) VW, IW, QW, MW, SMW, LW, SW, AIW, AC, Constant, *VD, *AC, *LD INT
Q (LAD & FBD) I, Q, M, SM, V, S, L BOOL
CV (LAD & FBD) VW, IW, QW, MW, SW, SMW, LW, AC, *VD, *AC, *LD INT
xxx C0 through C255 CTU
L
A
D
F
B
D
xxx
CTU
CU
R
PV
Q
CV
222 224
333
221