Panasonic FP Series Programming Manual page 546

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F84_INV
Inverts each bit (0 or 1) of the 16-bit data specified by d if the trigger EN is in the ON-state. The
Description
inverted result is stored in the 16-bit area specified by d. This instruction is useful for controlling an
external device that uses negative logic operation.
Destination
Bit position
15
0 1 0
d
Destination
Bit position
15
d
1 0 1
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 F84_INV (see page 1326)
PLC types
Data types
Variable
Data type
ANY16
d
Operands
For
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.
Body
When the variable start changes from FALSE to TRUE, the function is carried out.
LD
16-bit data invert (one's complement)
12
11
8
7
4
3
· · ·
· ·
· ·
· ·
1
1 1 1
0
1 0 1
1
1 1 0
start: ON
12
11
8
7
4
3
· · ·
· ·
· ·
· ·
0
0 0 0
1
0 1 0
0
0 0 1
Function
16-bit area to be inverted
Relay
-
WY
WR
WL
SV
0
1
0
0
T/C
Register
EV
DT
LD
FL
Bitwise Boolean instructions
Const.
-
545

Advertisement

Table of Contents
loading

Table of Contents