Mitsubishi MELSEC iQ-F FX5 series Programming Manual page 223

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

Advertisement

WOR(P) [using three operands]
These instructions OR each bit of 16-bit binary data from the device specified by (s1) and each bit of 16-bit binary data from
device specified by (s2), and store the results in the device specified by (d).
Ladder diagram
(s1)
(s2)
(d)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Data for OR or head device where data is stored
(s2)
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,
U\G T, ST,
SM, F, B, SB
(s1)
(s2)
(d)
Processing details
• These instructions OR each bit of 16-bit binary data from the device specified by (s1) and each bit of 16-bit binary data from
device specified by (s2), and store the results in the device specified by (d).
b15
···
(s1)
1
1
0
0
0
0
0
···
b15
(s2)
0
0
0
0
1
1
0
···
b15
(d)
1
1
0
0
1
1
0
• Bit devices subsequent to number of points by nibble specification are calculated as 0.
Operation error
There is no operation error.
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
b8
b7
···
0
1
1
1
1
0
0
0
OR
···
b8
b7
0
1
1
0
0
0
0
1
···
b8
b7
0
1
1
1
1
0
0
1
Structured text
ENO:=WOR(EN,s1,s2,d);
ENO:=WORP(EN,s1,s2,d);
Range
Data type
-32768 to +32767
16-bit signed binary
-32768 to +32767
16-bit signed binary
16-bit signed binary
Double word Indirect
specification
Z
LC
LZ
b0
0
b0
1
b0
1
Data type (label)
ANY16
ANY16
ANY16
Constant
Others
K, H
E
$
6 BASIC INSTRUCTIONS
6.3 Logical Operation Instructions
6
221

Advertisement

Table of Contents
loading

Table of Contents