Panasonic FP Series Programming Manual page 541

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Bitwise Boolean instructions
F132_BTI
Inverts [1 (ON)  0 (OFF) or 0 (OFF)  1 (ON)] the bit at bit position n in the 16-bit data area
Description
specified by d if the trigger EN is in the ON-state. Bits other than the bit specified do not change.
The range of n is 0 to 15.
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 F132_BTI (see page 1321)
PLC types
Data types
Variable
Data type
ANY16
d
INT
n
Operands
For
d
n
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
ST
When programming with structured text, enter the following:
IF
DF(start)
F132_BTI( n:= 1,
d=> output_value);
END_IF;
540
16-bit data bit invert
Function
16-bit area
specify bit position to be inverted
Relay
-
WY
WR
WL
WX
WY
WR
WL
THEN
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