Performing An Or Operation On 32-Bit Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Performing an OR operation on 32-bit data

DOR(P) [using two operands]
These instructions OR each bit of 32-bit binary data from the device specified by (d) and each bit of 32-bit binary data from
device specified by (s), and store the results in the device specified by (d).
Ladder diagram
(s)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Data for OR or head device where data is stored
(d)
Head device for storing the OR results
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(s)
(d)
Processing details
• These instructions OR each bit of 32-bit binary data from the device specified by (d) and each bit of 32-bit binary data from
device specified by (s), and store the results in the device specified by (d).
(d)+1
b31
···
(d)
1
1
1
1
(s)+1
···
b31
(s)
1
0
0
1
(d)+1
···
b31
(d)
1
1
1
1
• Bit devices subsequent to number of points by nibble specification are calculated as 0.
Operation error
There is no operation error.
6 BASIC INSTRUCTIONS
222
6.3 Logical Operation Instructions
(d)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
(d)
b16
b15
···
0
0
0
0
0
0
OR
(s)
···
b16
b15
0
0
0
1
1
1
(d)
···
b16
b15
0
0
0
1
1
1
Structured text
Not supported
Range
-2147483648 to +2147483647
-2147483648 to +2147483647
Double word Indirect
U\G
Z
LC
b0
0
0
1
1
b0
0
0
1
1
b0
0
0
1
1
Data type
32-bit signed binary
32-bit signed binary
Constant
specification
LZ
K, H
Data type (label)
ANY32
ANY32
Others
E
$

Advertisement

Table of Contents
loading

Table of Contents