Counter (C/Lc) - Mitsubishi Electric FX5 User Manual

Melsec iq-f series
Hide thumbs Also See for FX5:
Table of Contents

Advertisement

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 251 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 (OFF→ON). Current value is not updated when coil
input is OFF, ON, or turned ON→OFF.
[Ladder example]
X0
[Current value update timing]
Program
X0
OFF
C0 coil
OFF
26 DEVICES
310
26.2 User Devices
K10
C0
END
OUT C0
END
ON
ON
Current value update
OUT C0
END
OUT C0
Current value update

Advertisement

Table of Contents
loading

Table of Contents