| 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
 
| Data type: | The function is available for the following input data types: 
ANY_INTANY_BITANY_REAL 
ANY_DURATIONArrays (ARRAY) of the above data typesStructures (STRUCT) with components of the above data types |  
| Description: | Input data with endianness used on the controller. |   OUT 
 
| Data type: | Same as input data type |  
| Description: | Output data with Big Endian byte order. |  | 
| Example |  Example in ST 
out := TO_BIG_ENDIAN(INT#16#1234);   (* results in 13330 *) | 
| Additional information |  Endianness conversion functions The endiannesss conversion functions  convert to and from the internally used endianness of the controller. They can be used in communication processes to convert incoming and outgoing data into the format that is specified in the communication protocol:  
TO_BIG_ENDIAN and TO_LITTLE_ENDIAN - preparing data for sendingThese functions  convert the input value from the endianness used on the controller to the endianness stated in the function name. This data can then be passed on to a communication protocol.
FROM_BIG_ENDIAN and  FROM_LITTLE_ENDIAN - converting   received dataThese functions  convert the input value from the endianness stated in the function name to that of the controller. They are used to prepare the data received by communication partners for further processing on the controller. EN/ENO behavior 
The POU is only executed if TRUE  is applied to the EN input. If EN = FALSE, the POU is not executed and ENO = FALSE indicates the inactivity. 
 |