-

BIT_TEST

Note
The function is only available for Safety PLCs.

Type Function
Description Reads the bit of the IN input value that is selected with the BIT_NO input and returns the value of the selected bit. The function can operate on various input data types.
Notes
  • The output must have the same length or must be larger than the input.
  • The value applied to the BIT input must be greater than or equal to 0 or less than the length of the IN bit string.
  • If the BIT_NO value is greater or equal than the length of the IN bit string, the function returns the value FALSE (there is no error generated in the MESSAGES window).
  • The function does not support execution control with EN/ENO.
Parameters Inputs

IN

BIT_NO

Output

OUT
Error behavior Error behavior