Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L

Скачать
Страница из 1086
6  BASIC INSTRUCTIONS
6.2  Arithmetic Operation Instructions
267
6
32-bit BIN data increment, 32-bit BIN data decrement
DINC(P), DDEC(P)
Processing details
DINC
 • Adds +1 to the device designated by (D) (32-bit data).
 • When DINC/DINCP operation is executed for the device designated by (D), whose content is 2147483647, the value -
2147483648 is stored at the device designated by (D).
DDEC
 • Subtracts 1 from the device designated by (D) (32-bit data).
 • When DDEC/DDECP operation is executed for the device designated by (D), whose content is 0, the value -1 is stored at 
the device designated by (D).
Operation error
 • There is no operation error in the DINC(P) or DDEC(P) instruction.
(D):   Head number of devices for DINC(+1) or DDEC(-1) operation (BIN 32 bits)
Setting 
data
Internal device
R, ZR
J\
U\G
Zn
Constant
Others
Bit
Word
Bit
Word
(D)
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
P
D
D
DINC, DDEC
DINCP, DDECP
indicates an instruction symbol of 
DINC/DDEC.
b0
b16 b15
+1
73500 (BIN)
b31
73501 (BIN)
D
D
+1
D
D
b0
b16 b15
b31
b0
b16 b15
+1
73500 (BIN)
b31
73499 (BIN)
  1
D
D
+1
D
D
b0
b16 b15
b31