Subtracting 16-Bit Binary Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Subtracting 16-bit binary data

-(P)(_U) [when two operands are set]
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions perform subtraction between the two sets of 16-bit binary data specified.
Ladder
(s)
(d)
FBD/LD
Not supported
( Page 241 -(P)(_U) [when three operands are set])
■Execution condition
Instruction
-
-_U
-P
-P_U
Setting data
■Description, range, data type
Operand
Description
(s)
-(P)
Subtrahend data or the device where
subtrahend data is stored
-(P)_U
(d)
-(P)
Device where minuend data is stored
-(P)_U
• In safety programs executed by the Safety CPU, only safety devices and safety labels of data types described in the table
can be used.
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s)
(d)
• In safety programs executed by the Safety CPU, only the following safety devices and constants can be used.
Operand
Bit
SA\X, SA\Y, SA\M, SA\SM, SA\B
(s)
(d)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
ST
Not supported
( Page 241 -(P)(_U) [when three operands are set])
Range
Data type
-32768 to 32767
16-bit signed binary
0 to 65535
16-bit unsigned binary
-32768 to 32767
16-bit signed binary
0 to 65535
16-bit unsigned binary
Double word Indirect
Z
LT, LST,
LZ
LC
Word
SA\T, SA\ST, SA\C, SA\D, SA\W, SA\SD
6.2 Arithmetic Operation Instructions
Data type (label)
ANY16_S
ANY16_U
ANY16_S
ANY16_U
Constant
Others
specification
K, H E
$
Constant
K, H
6 BASIC INSTRUCTIONS
6
239

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents