Reversible Counter - Cntr(12) - Omron C200H Operation Manual

Hide thumbs Also See for C200H:
Table of Contents

Advertisement

Timer and Counter Instructions
00000 TIM 001
CNT 002
TIM 001
00001
CNT 002
00000 25502
00001
CNT 001
Caution The shorter clock pulses will not necessarily produce accurate timers be-
5-12-4
REVERSIBLE COUNTER – CNTR(12)
Limitations
Description
TIM 001
CP
CNT
002
#0100
R
In the following example, CNT 001 counts the number of times the 1-second
clock pulse bit (25502) goes from OFF to ON. Here again, 00000 is used to
control the times when CNT is operating.
Because in this example the SV for CNT 001 is 700, the Completion Flag for
CNT 002 turns ON when 1 second x 700 times, or 11 minutes and 40 sec-
onds have expired. This would result in 00202 being turned ON.
CP
R
cause their short ON times might not be read accurately during longer cycles.
In particular, the 0.02-second and 0.1-second clock pulses should not be
used to create timers with CNT instructions.
Ladder Symbol
II
CNTR(12)
DI
R
Each TC number can be used as the definer in only one TIMER or COUNT-
ER instruction.
The CNTR(12) is a reversible, up/down circular counter, i.e., it is used to
count between zero and SV according to changes in two execution condi-
tions, those in the increment input (II) and those in the decrement input (DI).
Address
00000
#0050
005.0 s
00001
00002
00003
00004
00005
00201
00006
00007
00008
Address Instruction
CNT
00000
LD
001
00001
AND
#0700
00002
LD NOT
00003
CNT
0202
00004
LD
00005
OUT
N
Operand Data Areas
SV
SV: Set value (word, BCD)
Section 5-12
Instruction
Operands
LD
00000
AND NOT
TIM
AND NOT
CNT
TIM
#
0050
LD
TIM
LD
00001
CNT
#
0100
LD
CNT
OUT
00201
Operands
00000
25502
00001
001
#
0700
CNT
001
00202
Definer Values
N: TC number
# (000 through 511)
IR, AR, DM, HR, LR, #
121
001
002
001
001
002
002

Advertisement

Table of Contents
loading

Table of Contents