Chapter 4. Ladder Diagram (LD) ProgrammingGFK-2950C February 2018 1274.6.6 Convert BCD8, UINT, INT, REAL or LREAL to DINTBCD8, UINT, and INTWhen this function receives power flow, it converts the data into the equivalent signed double-precision integer (DINT) value, which it outputs to Q. The conversion to DINT does not change theoriginal data.The output data can be used directly as input for another program function. The function passespower flow when power is received, unless the data is out of range.REAL and LREALWhen REAL_TO_DINT or LREAL_TO_DINT receives power flow, it rounds the input data to the nearestdouble-precision signed integer (DINT) value, which it outputs to Q. These functions do not changethe original REAL or LREAL data.The output data can be used directly as input for another program function. The function passespower flow when power is received, unless the conversion would result in an out-of-range DINTvalue.WarningConverting from LREAL or REAL to DINT may result inOverflow. For example, REAL 5.7E20, which equals 5.7 ×1020, converts to DINT OVERFLOW.Tip: To truncate a REAL value and express the result as a DINT, i.e., to remove the fractional partof the REAL number and express the remaining integer value as a DINT, use TRUNC_DINT.OperandsParameter Description Allowed Operands OptionalIN The value to convert to DINT. All except S, SA, SB, and SC NoQ The DINT equivalent value of the original input value in IN. All except S, SA, SB, and SC No