145
OUT C
1
2
3
4
5
6
7
8
5.3
O
u
tput Instructio
ns
5.3.3
O
U
T
C
Function
(1) When the operation results up to the OUT instruction change from OFF to ON, 1 is added to the present value (count
value) and the count up status (present value set value), and the contacts respond as follows:
(2) No count is conducted with the operation results at ON. (There is no need to perform pulse conversion on count input.)
(3) After the count up status is reached, there is no change in the count value or the contacts until the RST instruction is
executed.
(4) A negative number (-32768 to -1) cannot be set as the setting value for the timer.
If the set value is 0, the processing is identical to that which takes place for 1.
(5) Indexing for the counter coil and contact can use only Z0 and Z1.
Counter setting value has no limitation for indexing.
Remark
1. For counter counting methods, refer to the User's Manual (Functions Explanation, Program Fundamentals) for the CPU
module used.
2. The number of basic steps of the OUT C
instruction is 4.
Operation Error
(1) There is no operation error in the OUT 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]
A Contact
Continuity
B Contact
Non-continuity
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.