-

GET_BIT

Type Function
Description Reads the bit of the IN input value that is selected with the BIT 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 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).
Parameters Inputs

IN

BIT

Output

OUT
Error behavior Error behavior
Additional information EN/ENO behavior
ExampleExample in ST