Panasonic FP Series Programming Manual page 519

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Bitwise Boolean instructions
F65_WAN
Executes AND 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 AND operation result is stored in the 16-bit area
specified by d. When 16-bit equivalent constant is specified by s1 or s2, the AND operation is
performed internally converting it to 16-bit binary expression. You can use this instruction to turn
OFF 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 F65_WAN (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 function has been programmed in ladder diagram (LD) and structured text
Example
(ST).The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
518
16-bit data AND
· · ·
· ·
·
·
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 0 0
0
0 0 0
0
1 0 1
Function
16-bit area or 16-bit equivalent constant to be compared
16-bit area for storing AND 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 0 0
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