Mitsubishi MELSEC Q Series Programming Manual page 226

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

Advertisement

+(P),-(P)
When three data are set (
+,
+P, P
Setting
Data
S1
S2
S D
Function
+
(1) Adds 16-bit BIN data designated by
result of the addition 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.
K32767 +K2
(7FFF
K 32768 +K 2
(8000
6-24
+
S1
S2
Command
Command
: Data to be added to/subtracted from or head number of the devices where the data to be added
S1
to/subtracted from is stored (BIN 16 bits)
: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored
S2
(BIN 16 bits)
: Head number of the devices where the addition/subtraction operation result will be stored (BIN 16 bits)
D
Internal Devices
R, ZR
Bit
Word
S1
b15
b0
5678 (BIN)
,
andcan be designated between
S2
S1
D
K 32767
)
(0002
)
(8001
)
H
H
H
K32766
)
(FFFE
)
(7FFE
)
H
H
H
,
-
)
D
S1
S2
D
indicates an instruction symbol of
S1
P
S1
J
\
U
\G
Bit
Word
to 16-bit BIN data designated by
S1
.
D
S2
b15
b0
b15
1234 (BIN)
6912 (BIN)
32768 and 32767 (BIN, 16 bits).
D
Since bit 15 value is "1",
result of operation takes a negative value.
Since bit 15 value is "0",
result of operation takes a positive value.
+/
S2
D
D
S2
Constants
Zn
Other
K, H
––
––
––
––
and stores the
S2
D
b0
.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents