Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 251

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

Advertisement

D-(P)(_U) [when three operands are set]
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions perform subtraction between the two sets of 32-bit binary data specified.
Ladder
(s1)
(s2)
(d)
FBD/LD
EN
ENO
s1
d
s2
( is to be replaced by any of the following: DMINUS, DMINUSP, DMINUS_U, DMINUSP_U.)
■Execution condition
Instruction
D-
D-_U
D-P
D-P_U
Setting data
■Description, range, data type
Operand
Description
(s1)
D-(P)
Minuend data or the start device where
minuend data is stored
D-(P)_U
(s2)
D-(P)
Subtrahend data or the start device where
subtrahend data is stored
D-(P)_U
(d)
D-(P)
Start device for storing the operation result
D-(P)_U
EN
Execution condition
ENO
Execution result
• 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
(s1)
(s2)
(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
(s1)
(s2)
(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
ENO:=DMINUS(EN,s1,s2,d);
ENO:=DMINUSP(EN,s1,s2,d);
ENO:=DMINUS_U(EN,s1,s2,d);
ENO:=DMINUSP_U(EN,s1,s2,d);
Range
Data type
-2147483648 to 2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
-2147483648 to 2147483647
32-bit signed binary
0 to 4294967295
32-bit unsigned binary
32-bit signed binary
32-bit unsigned binary
Bit
Bit
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)
ANY32_S
ANY32_U
ANY32_S
ANY32_U
ANY32_S
ANY32_U
BOOL
BOOL
Constant
Others
specification
K, H E
$
Constant
K, H
6 BASIC INSTRUCTIONS
6
249

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents