FX Series Programmable Controllers Devices in Detail 4
4-21
4.10.2 General/ Latched 32bit Bi-directional Counters
The counter shown in the example below, activates when its coil is driven, i.e. the C200 coil is
driven. On ever
occasion the input X14 is turned from OFF to ON the current value or current
count of C200 is incremented.
The output coil of C200 is set ON when the current value increases from “-6” to “-5”. However,
if the counters value decreases from “-5” to “-6” the counter coil will reset. The counters current
value increases or decreases independentl
of the output contact state (ON/OFF). Yet, if a
counter counts be
ond +2,147,483,647 the current value will automaticall
chan
e to
-2,147,483,648. Similarl
, countin
below -2,147,483,648 will result in the current value
chan
in
to +2,147,483,647. This t
pe of countin
technique is t
pical for “rin
counters”. The
current value of the active counter can be rest to "0" (zero) b
forcibl
resettin
the counter
coil; in the example pro
ram b
switchin
the input X13 ON which drives the RST instruction.
The countin
direction is desi
nated with special auxiliar
rela
s M8200 to M8234.
Battery backed/ latched counters:
• Counters which are batter
backed/ latched are able to retain their status information,
even after the PLC has been powered down. This means on re-powerin
up, the latched
counters can immediatel
resume from where the
were at the time of the ori
inal PLC
power down.
Available devices:
• Please see the information table on pa
e 4-19.
Selecting the counting direction:
•If M8 for C is turned ON, the counter will be a down counter. Conversel
,
the counter is an up counter when M8 is OFF.
X13
X14
0
1
2
3
4
5
0
1
2
3
4
-6
-5
-4
-3
-2
-1
-7
-8
-6
-5
-4
-3
-7
0
Y1
X12
X14
K-5
X13
C200RST
C200
X12
M8200
C200
Y1
If output is already
turned ON
Counters
present
value
Up countin
Down countin
Up countin