Bitwise Boolean instructions
541
Part III FP Instructions
F133_BTT
16-bit data test
The specified bit is checked by special internal relay R900B.
When specified bit is 0 (OFF), special internal relay R900B (=flag) turns ON.
When specified bit is 1 (ON), special internal relay R900B (=flag) turns OFF.
n specifies the bit position to be checked in decimal data.
Range of n: 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.
PLC types
Availability of F133_BTT (see page 1321)
Variable Data type Function
d ANY16 16-bit area
n INT specifies bit position to be tested
For Relay T/C Register Constant
d - WY WR WL SV EV DT LD FL -
n WX WY WR WL SV EV DT LD FL dec. or hex.
Description
Checks the state [1 (ON) or 0 (OFF)] of bit position n in the 16-bit data specified by d if the trigger
EN is in the ON-state.
Data types
Operands
Example
In this example the function has been programmed in ladder diagram (LD) and structured text
(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.