5-27
OUT C
1
2
3
4
5
6
7
8
5.3 Output Instructions
5.3.3 Counter (OUT C)
Operation Error
(1) There are no operation errors associated with the OUT C instruction.
Program Example
(1) The following program turns Y30 ON after X0 has gone ON 10 times, and resets the counter
when X1 goes ON.
[Ladder Mode] [List Mode]
(2) The following program sets the value for C10 at 10 when X0 goes ON, and at 20 when X1
goes ON.
[Ladder Mode]
[List Mode]
Step
Instruction
Device
Stores 20 at D0 when X1 goes ON.
Stores 10 at D0 when X0 goes ON.
Y30 goes ON at the count-up of C10.
C10 executes counting using the data
stored in D0 as the set value.
Step
Instruction
Device