Mitsubishi MELSEC-Q/L Programming Manual page 147

Table of Contents

Advertisement

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
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]
(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
instruction is 4.
[List Mode]
Instruction
Step
Stores 10 at D0 when X0 goes ON.
Stores 20 at D0 when X1 goes ON.
C10 executes counting using the data
stored in D0 as the set value.
Y30 goes ON at the count-up of C10.
Device
OUT C
1
2
3
4
5
6
7
8
145

Advertisement

Table of Contents
loading

Table of Contents