Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 205

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

DSUB(P)(_U)
These instructions subtract the 32-bit binary data in the device specified by (s1) and the 32-bit binary data in the device
specified by (s2), and store the result in the device specified by (d).
Ladder diagram
(s1)
(s2)
(d)
FBD/LD
EN
ENO
s1
d
s2
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
DSUB(P)
Minuend data or the head device where the
data from which another is to be subtracted is
DSUB(P)_U
stored
(s2)
DSUB(P)
Subtrahend data or the head device where the
data to be subtracted from another is stored
DSUB(P)_U
(d)
DSUB(P)
Head device for storing the operation result
DSUB(P)_U
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)
(d)
Word
T, ST, C, D, W,
U\G
SD, SW, R
Structured text
ENO:=DSUB(EN,s1,s2,d);
ENO:=DSUBP(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
specification
Z
LC
LZ
7.2 Arithmetic Operation Instructions
ENO:=DSUB_U(EN,s1,s2,d);
ENO:=DSUBP_U(EN,s1,s2,d);
Data type (label)
ANY32_S
ANY32_U
ANY32_S
ANY32_U
ANY32_S
ANY32_U
BOOL
BOOL
Constant
Others
K, H
E
$
7 BASIC INSTRUCTIONS
203
7

Hide quick links:

Advertisement

loading