Mitsubishi MELSEC Q Series Programming Manual page 273

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

Program Example
(1) The following program outputs the present value at the counter C0 to C20 to the area Y30 to
Y3F in BCD, every time X8 is turned ON. (When present value is less than 9999)
[Ladder Mode]
[List Mode]
Step
Instruction
(2) The following is a down counter program.
[Ladder Mode]
[List Mode]
Instruction
Step
Outputs the present value of (0+Z1) to
Y30 to Y3F in BCD.
Executes Z1 + 1.
Sets Z1 at "0" when Z1=21 or X7
(reset input) is ON.
Device
Transfers 100 to D8 when X7 goes ON.
In the state M38=OFF, decrement at D8 (D8 - 1) is
executed when X8 goes from OFF to ON.
At D8=0, M38 goes ON.
Device
INC(P),DEC(P)
1
2
3
4
4
6
7
8
6-71

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents