![Mitsubishi Electric MELSEC iQ-R-R00CPU Скачать руководство пользователя страница 346](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-r-r00cpu/melsec-iq-r-r00cpu_user-manual_239139346.webp)
344
21 DEVICES
21.3 User Device
Counter
This device counts the number of rising operation of the input condition in the program. The counter is an up-timing type
device and therefore when the count value matches a setting value, the count reaches its upper limit and the contact is turned
on.
Types of counters
There are two types of counters: counter (C) which retains the counter values in 16-bit units and long counter (LC) which
retains them in 32-bit units. The counter (C) and the long counter (LC) are different devices and the number of device points
can be set for each of them.
■
Counter (C)
This device uses one word for each point. The measurable range is 0 to 65535.
■
Long counter (LC)
This device uses two words for each point. The measurable range is 0 to 429467295.
The long counter (LC) can be used in interrupt programs. (
Counting process
When executing the counter coil (OUT C
instruction / OUT LC
instruction), the counter coil is turned on/off, the current
value is updated (count value +1), and the contact is turned on/off. The current value is updated (count value +1), when the
counter coil input is rising (off and on). The current value is not updated when the coil input is turned off, on and on, and on
and off.
X0
K10
X0
OFF
OFF
ON
ON
END
END
END
OUT C0
OUT C0
OUT C0
C0
[Ladder example]
[Update timing of the current value]
Program
Coil of C0
Update of the current value
Update of the current value
Содержание MELSEC iQ-R-R00CPU
Страница 2: ......
Страница 151: ...9 MONITOR FUNCTION 9 1 Real Time Monitor Function 149 9 MEMO ...
Страница 323: ...18 SEQUENCE SCAN SYNCHRONIZATION SAMPLING FUNCTION 321 18 MEMO ...
Страница 330: ...328 20 ROUTING SETTING 20 3 Precautions MEMO ...
Страница 423: ...26 BASIC CONCEPT 26 8 State Transition of the Redundant System 421 26 MEMO ...
Страница 524: ...522 30 MAINTENANCE AND INSPECTION FOR A REDUNDANT SYSTEM 30 1 Module Replacement in the Redundant System MEMO ...
Страница 1009: ...APPX Appendix 14 List of Available SQL Commands for CPU Module Database Access Function 1007 A MEMO ...
Страница 1014: ...1012 APPX Appendix 15 Added and Enhanced Functions MEMO ...
Страница 1027: ......