Performing An Or Operation On 16-Bit Block Data - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Performing an OR operation on 16-bit block data

BKOR(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions perform an OR operation on the two 16-bit binary data blocks specified.
Ladder
(s1)
FBD/LD
EN
ENO
s1
d
s2
n
■Execution condition
Instruction
BKOR
BKORP
Setting data
■Description, range, data type
Operand
Description
(s1)
Logical OR data or the start device where logical OR data
is stored
(s2)
Logical OR data or the start device where logical OR data
is stored
(d)
Start device for storing the operation result
(n)
Number of data points
EN
Execution condition
ENO
Execution result
*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
*1
(s1)
*1
(s2)
*1
(d)
(n)
*1 The same device number can be specified for (s1) and (d) or (s2) and (d).
6 BASIC INSTRUCTIONS
318
6.3 Logical Operation Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(s2)
(d)
(n)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
ST
ENO:=BKOR(EN,s1,s2,n,d);
ENO:=BKORP(EN,s1,s2,n,d);
Range
-32768 to 32767
0 to 65535
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Data type (label)
16-bit signed binary
ANY16
16-bit signed binary
ANY16
16-bit signed binary
ANY16
16-bit unsigned binary
ANY16
Bit
BOOL
Bit
BOOL
Constant
specification
LZ
K, H E
*1
*1
*1
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents