83
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.6 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
4.6
Counter [C]
4.6.1
Numbers of counters
The table below shows counter (C) numbers. (Numbers are assigned in decimal.)
→
For high speed counters, refer to Section 4.7.
*1.
This area is not latched (battery backed). It can be changed to the latched (battery backed) area by
setting parameters.
*2.
This area is latched (battery backed). It can be changed to the non-latched (non-battery-backed) area
by setting parameters.
Counter numbers not used as counters can be converted as data registers for storing numeric values.
4.6.2
Features of counters
The table below shows the features of 16-bit counters and 32-bit counters. They can be used in accordance
with the operating condition such as the counting direction switching and counting range, etc.
4.6.3
Related devices (to specify counting direction) [32-bit counter]
When an auxiliary relay for switching the counting direction is set to ON, the counter executes down-counting,
and when set to OFF, the counter executes up-counting.
16-bit up counter
Counting range: 0 to 32767
32-bit bi-directional counter
Counting range:
−
2,147,483,648 to +2,147,483,647
General type
Latched (battery backed)
type (protected by battery
against power failure)
General type
Latched (battery backed)
type (protected by battery
against power failure)
FX
3U
/
FX
3UC
PLC
C 0 to C 99
100 points
*1
C100 to C199
100 points
*2
C200 to C219
20 points
*1
C220 to C234
15 points
*2
Item
16-bit counter
32-bit counter
Counting direction
Up-counting
Up-counting and down-counting can be switched
(as shown in Subsection 4.6.3)
Set value
1 to 32767
−
2,147,483,648 to +2,147,483,647
Set value specification
Constant (K) or data register
Constant (K) or a pair of data registers
Current value change
Does not change after counting up
Changes even after counting up (ring counter)
Output contact
Latches after counting up
Latches (in up-counting), or reset (in down-
counting)
Reset operation
When RST instruction is executed, current value of counter is reset to "0" and output contact
returns
Current value register
16 bits
32 bits
Counter No.
Counting
direction
switching
relay
Counter No.
Counting
direction
switching
relay
Counter No.
Counting
direction
switching
relay
Counter No.
Counting
direction
switching
relay
C200
M8200
C210
M8210
C220
M8220
C230
M8230
C201
M8201
C211
M8211
C221
M8221
C231
M8231
C202
M8202
C212
M8212
C222
M8222
C232
M8232
C203
M8203
C213
M8213
C223
M8223
C233
M8233
C204
M8204
C214
M8214
C224
M8224
C234
M8234
C205
M8205
C215
M8215
C225
M8225
C206
M8206
C216
M8216
C226
M8226
C207
M8207
C217
M8217
C227
M8227
C208
M8208
C218
M8218
C228
M8228
C209
M8209
C219
M8219
C229
M8229