Chapter 4. Ladder Diagram (LD) ProgrammingGFK-2950C February 2018 1194.6 Conversion FunctionsThe Conversion functions change a data item from one number format (data type) to another. Manyprogramming instructions, such as math functions, must be used with data of one type. As a result,data conversion is often required before using those instructions.Function DescriptionConvert AnglesDEG_TO_RAD Converts degrees to radiansRAD_TO_DEG Converts radians to degreesConvert to BCD4 (4-digit Binary-Coded-Decimal)UINT_TO_BCD4 Converts UINT (16-bit unsigned integer) to BCD4INT_TO_BCD4 Converts INT (16-bit signed integer) to BCD4Convert to BCD8 (8-digit Binary-Coded-Decimal)DINT_TO_BCD8 Converts DINT (32-bit signed integer) to BCD8Convert to INT (16-bit signed integer)BCD4_TO_INT Converts BCD4 to INTUINT_TO_INT Converts UINT to INTDINT_TO_INT Converts DINT to INTREAL_TO_INT Converts REAL to INTConvert to UINT (16-bit unsigned integer)BCD4_TO_UINT Converts BCD4 to UINTINT_TO_UINT Converts INT to UINTDINT_TO_UINT Converts DINT to UINTREAL_TO_UINT Converts REAL to UINTConvert to DINT (32-bit signed integer)BCD8_TO_DINT Converts 8-digit Binary-Coded-Decimal (BCD8) to DINTUINT_TO_DINT Converts UINT to DINTINT_TO_DINT Converts INT to DINTREAL_TO_DINT Converts REAL (32-bit signed real or floating-point values) to DINTLREAL_TO_DINT Converts REAL (64-bit signed real or floating-point values) to DINTConvert to REAL (32-bit signed real or floating-point values)BCD4_TO_REAL Converts BCD4 to REALBCD8_TO_REAL Converts BCD8 to REALUINT_TO_REAL Converts UINT to REALINT_TO_REAL Converts INT to REALDINT_TO_REAL Converts DINT to REALLREAL_TO_REAL Converts LREAL to REALConvert to LREAL(64-bit signed real or floating-point values)DINT_TO_LREAL Converts DINT to LREALREAL_TO_LREAL Converts REAL to LREALTruncateTRUNC_DINT Rounds a REAL number down to a DINT (32-bit signed integer) numberTRUNC_INT Rounds a REAL number down to an INT (16-bit signed integer) number