EasyManuals Logo

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #232 background imageLoading...
Page #232 background image
230
DINC, DINCP, DDEC, DDECP
DDEC
(1) Subtracts -1 from the device designated by (32-bit data).
(2) When DDEC/DDECP operation is executed for the device designated by , whose content is 0, the value -1 is stored at
the device designated by .
Operation Error
(1) There is no operation error in the DINC(P) or DDEC(P) instruction.
Program Example
(1) The following program adds 1 to the data at D0 and D1 when X0 is ON.
[Ladder Mode] [List Mode]
(2) The following program adds 1 to the data set at X10 to X27 when X0 goes ON, and stores the result at D3 and D4.
[Ladder Mode] [List Mode]
(3) The following program subtracts 1 from the data at D0 and D1 when X0 goes ON.
[Ladder Mode] [List Mode]
(4) The following program subtracts 1 from the data set at X10 to X27 when X0 goes ON, and stores the result at D3 and D4.
[Ladder Mode] [List Mode]
D
b0b16 b15
+1
73500 (BIN)
b31
73499 (BIN)
1
D
D
+1
D
D
b0b16 b15b31
D
D
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device
Step
Instruction
Device

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals