Chapter 4. Ladder Diagram (LD) ProgrammingGFK-2950C February 2018 1234.6.4 Convert BCD4, UINT, DINT, or REAL to INTBDC4, UINT, and DINTWhen this function receives power flow, it converts the input data into the equivalent single-precision signed integer (INT) value, which it outputs to Q. This function does not change the originalinput data. The output data can be used directly as input for another program function, as in theexamples.The function passes power flow when power is received, unless the data is out of range.REALWhen REAL_TO_INT receives power flow, it rounds the input REAL data up or down to the nearestsingle-precision signed integer (INT) value, which it outputs to Q. REAL_TO_INT does not change theoriginal REAL data.Note: The output data can be used directly as input for another program function.The function passes power flow when power is received, unless the data is out of range or NaN (Nota Number).WarningConverting from REAL to INT may result in Overflow. Forexample, REAL 7.4E15, which equals 7.4 × 1015, convertsto INT OVERFLOW.Tip: To truncate a REAL value and express the result as an INT, i.e., to remove the fractional partof the REAL number and express the remaining integer value as an INT, use TRUNC_INT.OperandsParameter Description Allowed Operands OptionalIN The value to convert to INT. All except S, SA, SB, and SC NoQ The INT equivalent value of the original value in IN. All except S, SA, SB, and SC No