Iec Counter Instructions; Up Counter - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

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
High-Speed Counter Instruction
High-Speed Counter Definition Instruction
Pulse Output Instruction

Up Counter

L
A
D
CU
F
R
B
D
PV
221
222
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
CU, R (LAD only)
Power Flow
CU, R (FBD only)
I, Q, M, SM, V, S, L, T, C, Power Flow
PV (LAD & FBD)
VW, IW, QW, MW, SMW, LW, SW, AIW, AC, Constant, *VD, *AC, *LD
Q (LAD & FBD)
I, Q, M, SM, V, S, L
CV (LAD & FBD)
VW, IW, QW, MW, SW, LW, AC, *VD, *AC, *LD
Cxxx (LAD & FBD)
Constant
S7-200 Programmable Controller System Manual
A5E00066097-02
Description
The Up Counter function block counts up from the
Cxxx
current value to the preset value on the rising edges of
CTU
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 resets when
Q
the reset input (R) is enabled. The Up Counter stops
CV
counting when it reaches the preset value (PV).
224
226
Operands
IEC 1131-3 Instructions
Page
9-27
9-27
9-49
Data Types
BOOL
BOOL
INT
BOOL
INT
CTU
10-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents