212
21 DEVICES
21.2 User Devices
Counter (C/LC)
Device that counts number of rises of input conditions in the program. Counters are addition type counters; they count up
when the count value matches the setting value, and the contact is turned ON.
For details on the FX3-compatible high-speed counter, refer to Page 165 FX3-compatible high-speed counter function.
Counter type
There is counter (C) that maintains the counter value in 16 bits and the long counter (LC) that maintains the counter value in
32 bits. Counter (C) and long counter (LC) are separate devices. You can set number of device points for each.
■Counter (C)
Uses 1 word as 1 point. The counting range is from 0 to 32767.
■Long counter (LC)
Uses 2 words as 1 point. The counting range is from 0 to 4294967295.
Count processing
Count processing is as follows when counter's coil is executed.
■When the OUT C instruction/OUT LC instruction is executed
The counter's coil is turned ON/OFF, the current value is updated (count value +1) and contact ON/OFF processing is
executed.
■Current value update (count value +1)
Current value is updated (count value +1) when counter coil input rises (OFFON). Current value is not updated when coil
input is OFF, ON, or turned ONOFF.
ON
OFF
C0
X0 K10
C0 coil
Current value update
Current value update
ON
END OUT C0 END OUT C0 END OUT C0
OFF
X0
Program
[Current value update timing]
[Ladder example]