Subtracting 16-Bit Binary Block 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 block data

BK-(P)(_U)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions perform subtraction between the two 16-bit binary data blocks specified.
Ladder
(s1)
FBD/LD
EN
ENO
s1
d
s2
n
( is to be replaced by any of the following: BKMINUS, BKMINUSP, BKMINUS_U, BKMINUSP_U.)
*1 The engineering tool with version "1.035M" or later supports the ST.
■Execution condition
Instruction
BK-
BK-_U
BK-P
BK-P_U
Setting data
■Description, range, data type
Operand
(s1)
BK-(P)
BK-(P)_U
(s2)
BK-(P)
BK-(P)_U
(d)
BK-(P)
BK-(P)_U
(n)
EN
ENO
*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
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s1)
(s2)
(d)
(n)
6 BASIC INSTRUCTIONS
284
6.2 Arithmetic Operation Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(s2)
(d)
(n)
Execution condition
Description
Minuend data or the start device where
minuend data is stored
Subtrahend data or the start device where
subtrahend data is stored
Start device for storing the operation result
Number of data points
Execution condition
Execution result
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
*1
ST
ENO:=BKMINUS(EN,s1,s2,n,d);
ENO:=BKMINUSP(EN,s1,s2,n,d);
Range
-32768 to 32767
0 to 65535
-32768 to 32767
0 to 65535
0 to 65535
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
ENO:=BKMINUS_U(EN,s1,s2,n,d);
ENO:=BKMINUSP_U(EN,s1,s2,n,d);
Data type
Data type (label)
16-bit signed binary
ANY16_S
16-bit unsigned binary
ANY16_U
16-bit signed binary
ANY16_S
16-bit unsigned binary
ANY16_U
16-bit signed binary
ANY16_S
16-bit unsigned binary
ANY16_U
16-bit unsigned binary
ANY16
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
*1
*1
*1
*1
*1
*1
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents