Mitsubishi MELSEC QCPU Programming Manual page 173

Programmable logic controller
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents