EasyManua.ls Logo

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

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
284
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
Subtracting 16-bit binary block data
BK-(P)(_U)
These instructions perform subtraction between the two 16-bit binary data blocks specified.
*1 The engineering tool with version "1.035M" or later supports the ST.
Execution condition
Setting data
Description, range, data type
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
Applicable devices
Ladder ST
*1
ENO:=BKMINUS(EN,s1,s2,n,d);
ENO:=BKMINUSP(EN,s1,s2,n,d);
ENO:=BKMINUS_U(EN,s1,s2,n,d);
ENO:=BKMINUSP_U(EN,s1,s2,n,d);
FBD/LD
( is to be replaced by any of the following: BKMINUS, BKMINUSP, BKMINUS_U, BKMINUSP_U.)
Instruction Execution condition
BK-
BK-_U
BK-P
BK-P_U
Operand Description Range Data type Data type (label)
(s1) BK-(P) Minuend data or the start device where
minuend data is stored
-32768 to 32767 16-bit signed binary ANY16_S
*1
BK-(P)_U 0 to 65535 16-bit unsigned binary ANY16_U
*1
(s2) BK-(P) Subtrahend data or the start device where
subtrahend data is stored
-32768 to 32767 16-bit signed binary ANY16_S
*1
BK-(P)_U 0 to 65535 16-bit unsigned binary ANY16_U
*1
(d) BK-(P) Start device for storing the operation result 16-bit signed binary ANY16_S
*1
BK-(P)_U 16-bit unsigned binary ANY16_U
*1
(n) Number of data points 0 to 65535 16-bit unsigned binary ANY16
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(s1)  
(s2)  
(d)  
(n)  
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)
(s1) (s2) (d) (n)
EN ENO
ds1
s2
n

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals