
244
5.2.11
Counter (C)
The counter (C) is a device that counts the number of rises for input conditions in programs. When the count value
reaches the set value, its contact is turned on.
(1) Counter type
The following counter is available.
• Counter that counts the number of rises for input conditions in programs
(2) Counting
(a) When OUT C
instruction is executed
The coil of the counter is turned on/off, the current value is updated (the count value + 1), and the contact is
turned on. In the END processing, the current timer value is not updated and the contact is not turned on.
(b) Current value update (count value + 1)
The current value is updated (count value + 1) at the leading edge (off
→
on) of the OUT C instruction. The
current value is not updated while the coil is off, or when it remains on or turns off from on by the OUT C
instruction.
END
OUT C0
END
[Program example]
[Processing at OUT C0 instruction (X0: OFF to ON)]
Coil ON/OFF
Current value update
Contact ON
Processing
[Program example]
X0
OFF
OFF
ON
ON
END
END
END
OUT C0
OUT C0
OUT C0
[Current value update timing]
Program
Coil of C0
Current value update
Current value update
Содержание L02CPU
Страница 1: ......
Страница 2: ......
Страница 13: ...11 Memo ...
Страница 78: ...76 Memo ...
Страница 226: ...224 Memo ...
Страница 317: ...315 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 318: ...316 To the next page ...
Страница 319: ...317 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 320: ...318 To the next page ...
Страница 321: ...319 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 322: ...320 To the next page ...
Страница 323: ...321 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 324: ...322 To the next page ...
Страница 325: ...323 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 326: ...324 To the next page ...
Страница 335: ...333 Memo ...
Страница 339: ......