Features Of Counters; Related Devices (To Specify Counting Direction) [32-Bit Counter] - Mitsubishi Electric MELSEC-Q Structured Programming Manual

Hide thumbs Also See for MELSEC-Q:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
3. In FX
/FX
/FX
0S
0
FX
0S
/FX
0
PLC
FX
0N
PLC
FX
/FX
U
2C
PLC
*1.
This area is not latched (backed up). It can be changed to the latched (backed-up) area by parameter
setting.
*2.
This area is latched (backed up). It can be changed to the non-latched (non-backed-up) area by
parameter setting.
*3.
This area is fixed to the latched (backed-up) type. (The contents can be cleared by the RST and ZRST
instructions.)
*4.
This area is fixed to the non-latched (non-backed-up) type. The characteristics of latch (backup)
cannot be changed.
Counter numbers not used as counters can be used as data registers to store numeric values.
2.6.2

Features of counters

The table below shows the features of 16-bit counters and 32-bit counters.
These counters can be used in accordance with the operating condition such as counting direction switching
and counting range.
Item
Counting direction
Set value
Set value
specification
Current value
change
Output contact
Reset operation
Current value
register
2.6.3

Related devices (to specify counting direction) [32-bit counter]

FX
/FX
/FX
0S
0
0N
When an auxiliary relay for switching the counting direction is set to ON, the counter executes down-counting.
When the auxiliary relay is set to OFF, the counter executes up-counting.
Counter No.
C200
C201
C202
C203
C204
C205
C206
C207
C208
C209
56
/FX
/FX
PLCs
0N
U
2C
16-bit up-counter
Counting range: 0 to 32767
Latched (backed-up)
General type
type
C0 to 13
-
*4
14 points
C0 to C15
-
*4
16 points
C0 to C99
C100 to C199
*1
100 points
100 points
16-bit counter
Up-counting
1 to 32767
Constant (K) or data register
Does not change after counting up.
Latches the operation status after counting up.
When the RST instruction is executed, the current value of counter is reset to "0" and the output contact turns OFF.
16-bit
PLCs do not support 32-bit counters.
Counting
direction
Counter No.
switching
relay
M8200
C210
M8201
C211
M8202
C212
M8203
C213
M8204
C214
M8205
C215
M8206
C216
M8207
C217
M8208
C218
M8209
C219
Fixed latched
(backed-up) type
C14 to C15
*3
2 points
C16 to C31
*3
16 points
-
*2
Up-counting and down-counting can be switched (refer
to Subsection 2.6.3).
-2,147,483,648 to +2,147,483,647
Constant (K) or a pair of data registers
Changes even after counting up (ring counter).
Latches the operation status (in up-counting), or is reset
(in down-counting).
32-bit
Counting
direction
Counter No.
switching
relay
M8210
C220
M8211
C221
M8212
C222
M8213
C223
M8214
C224
M8215
C225
M8216
C226
M8217
C227
M8218
C228
M8219
C229
2 Devices in Detail
2.6 Counter [C]
32-bit bi-directional counter
-2,147,483,648 to +2,147,483,647
Latched (backed-up)
General type
type
-
-
C200 to C219
C220 to C234
*1
20 points
15 points
32-bit counter
Counting
direction
Counter No.
switching
relay
M8220
C230
M8221
C231
M8222
C232
M8223
C233
M8224
C234
M8225
M8226
M8227
M8228
M8229
-
-
*2
Counting
direction
switching
relay
M8230
M8231
M8232
M8233
M8234

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lMelsec-fFx3sFx3gFx3gcFx3u ... Show all

Table of Contents