93
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.7 High Speed Counter [C]
1
In
troduct
io
n
2
Ov
e
rv
ie
w
3
In
st
ru
ct
ion
Li
st
4
D
evi
ce
s
in
De
ta
il
5
Speci
fied t
h
e
D
evi
ce &
C
onst
a
nt
6
Bef
o
re
Pr
ogr
a
m
m
ing
7
Bas
ic
In
st
ru
cti
o
n
8
FNC0
0
-FNC0
9
P
ro
g
ra
m F
lo
w
9
FNC1
0
-FNC1
9
M
ov
e
&
C
om
par
e
10
FNC
20-
FNC
2
9
Ar
ith.
&
Logi
c
O
per
at
io
n
• The current value increases or decreases without regard to the operation of the output contact. When a
counter executes up-counting from "+2,147,483,647", the counter value becomes "
−
2,147,483,648". In the
same way, when a counter executes down-counting from "
−
2,147,483,648", the counter value becomes
"+2,147,483,647". (This type of counter is called ring counter.)
• When the reset input X011 turns ON and RST instruction is executed, the current value of the counter is
reset to "0" and the output contact returns.
• In a latch type high speed counter, the current value, output contact operation and reset status of the
counter are latched (battery backed) by the backup battery built in the PLC.
2. 1-phase 2-counting input
They are 32-bit binary bi-directional counters, and the operation of the output contact for the current value is
equivalent to that in 1-phase 1-counting input type high speed counters described above.
• While X012 is ON, C246 executes up-counting when the input
X000 turns ON from OFF, and executes down-counting when
the input X001 turns ON from OFF.
• The up/down-counting operation of C246 to C250 can be
monitored by checking the ON/OFF status of M8246 to M8250.
ON status: Down-counting
OFF status: Up-counting
• While X012 is ON, C249 immediately starts counting when the
input X006 turns ON.
The up-counting input is X000, and the down-counting input is
X001.
• A high speed counter can be reset by X011 in a sequence as
shown in the figure, but it is immediately reset without any
program when X002 is closed. So a program with X011 is not
necessary.
• The down/up-counting operation of C246 to C250 can be
monitored by checking the ON/OFF status of M8246 to M8250.
ON status: Down-counting
OFF status: Up-counting
3. 2-phase 2-counting input
They are 32-bit binary bi-directional counters, and the operation of the output contact for the current value is
equivalent to that in 1-phase high speed counters described above.
• While X012 is ON, C251 counts the operation of the inputs
X000 (A phase) and X001 (B phase) as interrupt.
When X011 turns ON and then RST instruction is executed,
C251 is reset.
• When the current value becomes equivalent to or larger than
the set value, Y002 turns ON. When the current value becomes
equivalent to or smaller than the set value, Y002 turns OFF.
• Y003 turns ON (for down-counting) or OFF (for up-counting)
according to the counting direction.
• When X006 turns ON while X012 is ON, C254 immediately
starts counting. Its counting inputs are X000 (A phase) and
X001 (B phase).
• In addition to reset by X011 in a sequence, C254 is reset
immediately when X002 turns ON.
• When the current value becomes equivalent to or larger than
the set value (D1, D0), Y004 turns ON. When the current value
becomes equivalent to or smaller than the set value, Y004 turns
OFF.
• Y005 turns ON (for down-counting) or OFF (for up-counting)
according to the counting direction.
X011
X012
C249
K1234
RST
C249
X011
X012
C246
D2(D3)
RST
C246
Set value is (D3,D2)
X011
X012
C254
D0(D1)
RST
C254
X011
X012
C251
K1234
RST
C251
C251
Y002
Y003
C254
Y004
Y005
M8254
M8251