Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 192

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

Advertisement

-(P)(_U) [using three operands]
These instructions subtract the 16-bit binary data in the device specified by (s1) and the 16-bit binary data in the device
specified by (s2), and store the result in the device specified by (d).
Ladder diagram
(s1)
FBD/LD
EN
ENO
s1
d
s2
("MINUS", "MINUSP", "MINUS_U", "MINUSP_U" enters .)
Setting data
■Descriptions, ranges, and data types
Operand
(s1)
-(P)
-(P)_U
(s2)
-(P)
-(P)_U
(d)
-(P)
-(P)_U
EN
ENO
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)
(d)
7 BASIC INSTRUCTIONS
190
7.2 Arithmetic Operation Instructions
(s2)
(d)
Description
Minuend data or the device where the data
from which another is to be subtracted is
stored
Subtrahend data or the device where the data
to be subtracted from another is stored
Device for storing the operation result
Execution condition
Execution result
Word
T, ST, C, D, W,
SD, SW, R
Structured text
ENO:=MINUS(EN,s1,s2,d);
ENO:=MINUSP(EN,s1,s2,d);
Range
-32768 to +32767
0 to 65535
-32768 to +32767
0 to 65535
Double word Indirect
U\G
Z
LC
ENO:=MINUS_U(EN,s1,s2,d);
ENO:=MINUSP_U(EN,s1,s2,d);
Data type
16-bit signed binary
16-bit unsigned binary
16-bit signed binary
16-bit unsigned binary
16-bit signed binary
16-bit unsigned binary
Bit
Bit
Constant
specification
LZ
K, H
Data type (label)
ANY16_S
ANY16_U
ANY16_S
ANY16_U
ANY16_S
ANY16_U
BOOL
BOOL
Others
E
$

Hide quick links:

Advertisement

loading