-

INVERT_BIT

Type Function
Description Inverts a bit in the bit string connected to the IN input and returns the resulting bit string. The bit to be inverted is selected with the BIT input. 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.
  • The OUT value remains unchanged and no error is generated in the MESSAGES window if the above conditions are not met.
Parameters Inputs

IN

BIT

Output

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