EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC-Q/L

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #190 background imageLoading...
Page #190 background image
188
+, +P, -, -P
6.2 Arithmetic Operation Instructions
When two data are set ( + , - )
: Data for additing/subtracting or head number of the devices where the data for additing/subtracting is stored (BIN 16 bits)
:
Head number of the devices where the data to be added to/subtracted from is stored (BIN 16 bits)
Function
+
(1) Adds 16-bit BIN data designated by to 16-bit BIN data designated by and stores the result of the addition at the
device designated by .
(2) Values for and can be designated between -32768 and 32767 (BIN, 16 bits).
(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.
–
(1) Subtracts 16-bit BIN data designated by from 16-bit BIN data designated by and stores the result of the subtraction
at the device designated by .
(2) Values for and can be designated between -32768 and 32767 (BIN, 16 bits).
(3) The judgment of whether data is positive or negative is made by the most significant bit (b15).
• 0: Positive
• 1: Negative
6.2.1 +, +P, -, -P BIN 16-bit addition and subtraction operations
6.2.1
+, +P, -, -P
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– ––
Basic
Process
High
performance
Redundant
Universal
LCPU
D
S
D D
S
D
Command
Command
P
DS
S
D
+,
+/
+P, P
indicates an instruction symbol of .
S
D
S
D
D
S
D
b0
5678 (BIN)
b15 b0
6912 (BIN)
b15b0
1234 (BIN)
b15
D
S
D
S
D
Since bit 15 value is "0",
result of operation takes a positive value.
Since bit 15 value is "1",
result of operation takes a negative value.
K32767 +K2
(7FFFH)
K 32768 +K
2
K
32767
K32766
(7FFE
H)
(8001
H)
(FFFE
H)
(8000
H)
(0002
H)
D
S
D
b0
5678 (BIN)
b15
b0
4444 (BIN)
b15b0
1234 (BIN)
b15
D S D
S
D

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals