Panasonic FP Series Programming Manual page 525

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Bitwise Boolean instructions
F68_XNR
Executes exclusive NOR operation of each bit in 16-bit equivalent constant or 16-bit data specified
Description
by s1 and s2 if the trigger EN is in the ON-state. The exclusive NOR operation result is stored in
the 16-bit area specified by d. When 16-bit equivalent constant is specified by s1 or s2, the
exclusive NOR operation is performed internally converting it to 16-bit binary expression. You can
use this instruction to review the number of identical bits in the two 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.
PLC types
Availability of F68_XNR (see page 1326)
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
524
16-bit data exclusive NOR
· · ·
· ·
·
·
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
1 0 1
1
0 0 1
0
1 0 1
Function
16-bit area or 16-bit equivalent constant to be compared
16-bit area for storing NOR 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