6 - 22 6 - 22
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
Usable Devices
Internal Devices
(System, User)
MELSECNET/10(H)
Direct J
\
Set
Data
Bit Word
File
Register
Bit Word
Special
Function
Module
U
\G
Index
Register
Zn
Constant
K, H
Other
S1
S2
D
[Instruction Symbol] [Execution Condition]
indicates the signs D+/D-
Command
Command
P
D+, D-
D+P, D-P
D
S1 S2
D
S1
S2
[Set Data]
Set Data Meaning Data Type
S1
Data to be added to or subtracted from, or the first number of the device
storing such data
S2
Addition or subtraction data, or first number of device storing addition or
subtraction data
D
First number of device storing addition or subtraction data
BIN 32 bits
[Functions]
D
+
(1) Adds 32-bit BIN data designated by
S1
to 32-bit BIN data designated by
S2
and stores at the
device designated by
D
.
+
+1
123456 (BIN)
+1
567890 (BIN)
+1
691346 (BIN)
D
S1 S1 S2 S2
D
b31- -b16 b15- -b0 b31- -b16 b15- -b0 b31- -b16 b15- -b0
(2) The values for
S1
,
S2
, and
D
can be designated at between -2147483648 and 2147483647
(BIN 32 bits).
(3) Judgment of whether the data is positive or negative is made on the basis of the most
significant bit (b31).
(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.
•
K2147483647
(H7FFFFFFF)
• K-2147483648
(H80000000)
+K2
(H2)
+K-2
(HFFFE)
K-2147483647.......Because b31 is 0,
the value is positive.
K2147483646........Because b31 is 1,
the value is negative.
(HFFFE)
(H80000001)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com