Mitsubishi MELSEC Q Series Programming Manual page 225

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(1) Subtracts 16-bit BIN data designated by
stores the result of the subtraction at the device designated by
(2) Values for
(3) The judgment of whether data is positive or negative is made by the most significant bit
(b15).
• 0: Positive
• 1: Negative
(4) The following will happen when an underflow or overflow is generated in an operation result:
The carry flag in this case does not go ON.
K 32768
K2
(8000
)
(0002
H
K 2
K32767
(7FFF
)
(FFFE
H
Operation Error
(1) There are no operation errors associated with the +(P) or -(P) instruction.
D
b15
b0
b15
5678 (BIN)
and
can be designated between
S
D
Since bit 15 value is "0",
K32766
)
(7FFE
)
result of operation takes a positive value.
H
H
Since bit 15 value is "1",
K 32767
)
(8001
)
result of operation takes a negative value.
H
H
from 16-bit BIN data designated by
D
S
D
b0
b15
1234 (BIN)
4444 (BIN)
32768 and 32767 (BIN, 16 bits).
+(P),-(P)
and
S
.
D
b0
6-23
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents