Mitsubishi MELSEC QS Series Programming Manual page 117

Hide thumbs Also See for MELSEC QS 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]
(2) The following is a down counter program.
[Ladder Mode]
6.2.5 Incrementing and decrementing 16-bit BIN data (INC(P), DEC(P))
Outputs the present value of C (D+Z1) to Y30 to Y3F.
Executes Z1+1.
Sets 0 to Z1 when Z1=21 or X7 (reset input).
Transfers 100 to D8 when X7 is turned ON.
Turns X8 from OFF to ON
when M38 is OFF, which executes "D8 - 1".
M38 is turned ON when "D8=0".
6.2 Arithmetic Operation Instructions
INC(P), DEC(P)
6
6-19

Advertisement

Table of Contents
loading

Table of Contents