16-Bit Bin Data Increment, 16-Bit Bin Data Decrement - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

16-bit BIN data increment, 16-bit BIN data decrement

INC(P), DEC(P)
High
Basic
Process
Redundant Universal
performance
INC, DEC
INCP, DECP
(D): Head number of devices for INC (+1)/DEC (-1) operation (BIN 16 bits)
Setting
Internal device
data
Bit
Word
(D)
Processing details
■INC
• Adds 1 to the device designated by (D) (16-bit data).
D
b15
b0
b15
5678 (BIN)
• When INC/INCP operation is executed for the device designated by (D), whose content is 32767, the value -32768 is
stored at the device designated by (D).
■DEC
• Subtracts 1 from the device designated by (D) (16-bit data).
D
b15
b0
b15
5678 (BIN)
1
• When DEC/DECP operation is executed for the device designated by (D), whose content is -32768, the value 32767 is
stored at the device designated by (D).
Operation error
• There is no operation error in the INC(P) or DEC(P) instruction.
LCPU
Command
Command
R, ZR
J\
Bit
D
b0
5679 (BIN)
D
b0
5677 (BIN)
indicates an instruction symbol of
P
U\G
Zn
Word
6.2 Arithmetic Operation Instructions
INC/DEC.
D
D
Constant
Others
6 BASIC INSTRUCTIONS
265
6

Advertisement

Table of Contents
loading

Table of Contents