Panasonic FP Series Programming Manual page 521

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Bitwise Boolean instructions
F66_WOR
Executes OR operation of each bit in 16-bit equivalent constant or 16-bit data specified by s1 and
Description
s2 if the trigger EN is in the ON-state. The OR operation result is stored in the 16-bit area specified
by d. When 16-bit equivalent constant is specified by s1 or s2, the OR operation is performed
internally converting it to 16-bit binary expression. You can use this instruction to turn ON certain
bits of the 16-bit data.
Bit position
s1
Bit position
s2
Bit position
d
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Availability of F66_WOR (see page 1326)
PLC types
Data types
Variable
Data type
s1, s2
ANY16
d
The variables s1, s2 and d have to be of the same data type.
Operands
For
s1, s2
d
In this example, the same POU header is used for all programming languages. For an example
Example
using IL (instruction list), please refer to the online help.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
520
16-bit data OR
·
· ·
· ·
· ·
15
12
11
8
7
0 1 0
0
1 1 0
1
1 0 1
·
· ·
· ·
· ·
15
12
11
8
7
0 0 0
0
0 0 0
0
1 1 1
start: ON
·
· ·
· ·
· ·
15
12
11
8
7
0 1 0
0
1 1 0
1
1 1 1
Function
16-bit area or 16-bit equivalent constant to be compared
16-bit area for storing OR operation result
Relay
WX
WY
WR
WL
-
WY
WR
WL
· ·
4
3
0
1
1 0 0
1
· ·
4
3
0
1
1 1 1
1
· ·
4
3
0
1
1 1 1
1
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
Constant
dec. or hex.
-

Advertisement

Table of Contents
loading

Table of Contents