Справочник Пользователя для Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G
97
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.6 Counter [C]
1
In
trodu
ct
ct
ion
2
O
ver
vi
ew
3
In
st
ru
ct
ion
Li
st
4
D
evices
in D
etail
etail
5
Specifi
ed t
he
he
D
evice &
C
onst
ant
ant
6
Bef
ore
ore
Pr
ogr
am
am
m
ing
7
B
asic
In
st
ru
ct
ion
8
FNC0
0-F
0-F
NC0
9
Pr
ogr
am
Flow
am
Flow
9
FN
C
C
10-FN
C
19
Mo
ve
ve
&
Co
mp
are
are
10
FNC2
0-F
0-F
NC2
9
Ar
ith.
&
&
Logic
O
per
ati
ati
on
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. FX
3U
/FX
3UC
PLC
2. FX
3G
PLCs
*1.
This area is not latched (battery backed). It can be changed to a latched (battery backed) area by setting the
parameters.
parameters.
*2.
This area is latched (battery backed). It can be changed to a non-latched (non-battery-backed) area by setting
the parameters.
the 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.
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.
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)
C0 to C99
100 points
*1
C100 to C199
100 points
*2
C200 to C219
20 points
*1
C220 to C234
15 points
*2
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 (EEPROM keep) type
General type
Latched (EEPROM keep) type
C0 to C15
16 points
C16 to C199
184 points
C200 to C219
20 points
C220 to C234
15 points
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)
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
C209
M8209
C218
M8218
C227
M8227
C201
M8201
C210
M8210
C219
M8219
C228
M8228
C202
M8202
C211
M8211
C220
M8220
C229
M8229
C203
M8203
C212
M8212
C221
M8221
C230
M8230
C204
M8204
C213
M8213
C222
M8222
C231
M8231
C205
M8205
C214
M8214
C223
M8223
C232
M8232
C206
M8206
C215
M8215
C224
M8224
C233
M8233
C207
M8207
C216
M8216
C225
M8225
C234
M8234
C208
M8208
C217
M8217
C226
M8226