Counter instructions
705
Part III FP Instructions
CT
Counter
1. When the Reset input is on, the elapsed value is reset to 0.
2. When the Reset input changes from on to off, the set value (SV) is preset to the
value assigned to it. The set value can be set to a decimal constant from 0 to 32767.
3. Each time the Count input changes from off to on, the value 1 is subtracted from
the set value SV. When the elapsed value reaches 0, the output C turns on.
4. If the Count input and Reset input both turn on at the same time, the Reset input
is given priority.
5. If the Count input rises and the Reset input falls at the same time, the count
input is ignored and preset is executed.
PLC types
Availability of CT (see page 1319)
This function does not require a variable at the output C.
Variable Data type Function
Count BOOL subtracts 1 from the set value each time it is activated
Reset BOOL resets the elapsed value when it is ON
presets the set value when changing from on to off
Num* ANY16 Must be a constant
number assigned to the counter (see System Register
5)
SV ANY16 set value is the number the counter starts subtracting from
C BOOL the counter turns on when it reaches the SV
For Relay T/C Register Constant
Count X Y R L T C - - - -
Reset X Y R L T C - - - -
Num* - - - - - - - - - ANY16
C - Y R L - - - - - -
SV - - - - SV - - - - -
Description
Decrements a preset counter. The function has the following parameters: Count, Reset, Num*,
SV, and C. Their functions are listed in the Data types table below.
Data types
Operands