BIT_TST block
Short summary
Name |
|
→POU type |
|
Category |
|
Conform to →IEC-standard |
not defined in IEC-standard |
Graphical interface |
|
Available since |
|
Functionality
The block returns the result for the determination of a bit value (as value TRUE
or FALSE
– or alternatively equivalents for them).
At input IN
, enter a value. At input N
, enter the bit number (0-based) that should be tested.
Inputs, return value
|
Identifier |
Description |
|
---|---|---|---|
Inputs: |
|
|
input value |
|
|
the bit number (0-based) to test |
|
Return value: |
– |
|
|
Input EN
and output ENO
are available when →calling the block. See "Execution control: EN, ENO" for information on input EN
and output ENO
.
See:
-
"Blocks for safe logic" whether this block is supported for developing safety-relevant applications.
-
"Highlighting safe logic in the FBD-editor" for the effects when using the block as a block for safe logic.
Example for usage within ST-editor
|
When creating your application within the ST-editor, enter a call of a block by typing the text as requested by the syntax or use Content Assist.