Arithmetic Operation Instructions - Mitsubishi MELSEC QCPU Programming Manual

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS

6.2 Arithmetic Operation Instructions

6.2.1 BIN 16-bit addition and subtraction operations (+, +P, -, -P)
Internal Devices
Set
(System, User)
Data
Bit
Word
S
D
[Instruction Symbol] [Execution Condition]
+, -
+P, -P
[Set Data]
Set Data
S
D
[Functions]
+
(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
6 - 16
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
MELSECNET/10(H)
File
Direct J \
Register
Bit
Command
Command
Addition or subtraction data, or first number of device storing addition or
subtraction data
Data to be added to or subtracted from, or first number of device storing
such data
D
b15- - - - - - - - - b0
b15- - - - - - - - - b0
5678 (BIN)
+
1234 (BIN)
and
can be designated between -32768 and 32767 (BIN, 16 bits).
S
D
QCPU
PLC CPU
Basic
High Performance
Usable Devices
Special
Function
Module
Word
U \G
indicates the signs +/-
P
Meaning
to 16-bit BIN data designated by
D
D
.
S
D
b15- - - - - - - - - b0
6912 (BIN)
MELSEC-Q/QnA
QnA
Process CPU
Index
Constant
Register
Other
K, H
Zn
S
D
S
D
Data Type
BIN 16 bits
and stores the
S
6 - 16
Q4AR

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents