EasyManua.ls Logo

Omron C200H - Reversible Counter - Cntr(12)

Omron C200H
374 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
121
00000 TIM 001 CNT 002
TIM 001
00001
CNT 002
00201
CP
R
005.0 s
CNT
002
#0100
TIM 001
#0050
Address Instruction Operands
00000 LD 00000
00001 AND NOT TIM 001
00002 AND NOT CNT 002
00003 TIM 001
# 0050
00004 LD TIM 001
00005 LD 00001
00006 CNT 002
# 0100
00007 LD CNT 002
00008 OUT 00201
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
CNT
001
#0700
00000 25502
00001
CNT 001
0202
Address Instruction Operands
00000 LD 00000
00001 AND 25502
00002 LD NOT 00001
00003 CNT 001
# 0700
00004 LD CNT 001
00005 OUT 00202
Caution The shorter clock pulses will not necessarily produce accurate timers be-
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.
5-12-4 REVERSIBLE COUNTER – CNTR(12)
N: TC number
# (000 through 511)
Ladder Symbol
Definer Values
SV: Set value (word, BCD)
IR, AR, DM, HR, LR, #
Operand Data Areas
II
DI
CNTR(12)
N
SV
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).
Limitations
Description
Timer and Counter Instructions Section 5-12

Table of Contents

Related product manuals