-

TO_BIG_ENDIAN

Type Function
Description Converts the value connected to the IN input from the internal endianness of the controller into Big Endian format.
This value can then be passed on to a communication partner that expects this endianness.
Notes
  • The function can operate on various input data types.
  • The data types of the input and the output shall be of the same type. The data type of the output can be larger than the input data type.
  • If an array or structure is converted, the byte order is reversed for each individual component.
  • Input data that is contained in the array or structure but cannot be converted (e.g. data type STRING) is copied as is.
  • The function supports structures up to a nested level of 10.
Parameters Input

IN

Output

OUT
Example Example in ST
Additional information Endianness conversion functions

EN/ENO behavior