Mitsubishi MELSEC QCPU Programming Manual page 169

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]
+, -
+P, -P
[Set Data]
Set Data
S1
S2
D
[Functions]
+
(1) Adds 16-bit BIN data designated by
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
(H7FFF)
• K-32768 +K-2
(H8000)
6 - 18
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
S1
b15- - - - - - - - -b0
b15- - - - - - - - -b0
5678 (BIN)
+
1234 (BIN)
,
and
can be designated from -32768 to 32767 (BIN 16 bits).
S1
S2
D
+K2
K-32767......A negative value is generated if b15 is 1.
(H0002)
(H8001)
K32766.......A positive value is generated if b15 is 0.
(HFFFE)
(H7FFE)
Usable Devices
Special
Function
Module
Word
U \G
indicates the signs +/−
S1
P
S1
Meaning
to 16-bit BIN data designated by
S1
D
S2
b15- - - - - - - - -b0
6912 (BIN)
MELSEC-Q/QnA
Index
Constant
Register
Other
K, H
Zn
D
S2
D
S2
Data Type
BIN 16 bits
and stores at the
S2
6 - 18

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents