229
DINC, DINCP, DDEC, DDECP
1
2
3
4
6
7
8
6.2 Arithmetic Operation Instructions
6.2.17 DINC, DINCP, DDEC, DDECP
[List Mode]
(2) The following is a down counter program.
[Ladder Mode]
[List Mode]
: Head number of devices for DINC(+1) or DDEC(-1) operation (BIN 32 bits)
Function
DINC
(1) Adds 1 to the device designated by (32-bit data).
(2) When DINC/DINCP operation is executed for the device designated by , whose content is 2147483647, the value
-2147483648 is stored at the device designated by .
6.2.17 DINC, DINCP 32-bit BIN data increment
DDEC, DDECP 32-bit BIN data decrement
6.2.17
DINC, DINCP, DDEC, DDECP
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn Constants Other
Bit Word Bit Word
––
Step
Instruction
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.
Step
Instruction
Device
Basic
Process
High
performance
Redundant
Universal
LCPU
Command
Command
P
D
D
DINC, DDEC
DINCP, DDECP
indicates an instruction symbol of DINC/DDEC.
D
D
D
b0b16 b15
+1
73500 (BIN)
b31
73501 (BIN)
D D
+1
D
D
b0b16 b15b31
D
D