Chapter 5. Function Block Diagram (FBD)260 PACSystems* RX7i, RX3i and RSTi-EP CPU Programmer's Reference Manual GFK-2950C5.9.3 DivideDivides the operand IN1 by the operand IN2 of the same data type as IN1 and storesthe quotient in the output variable assigned to Q, also of the same data type as IN1and IN2.The result is output to Q when DIV is performed without Overflow, unless one of thefollowing invalid conditions occurs:▪ 0 divided by 0 (Results in an application fault.)▪ IN1 and/or IN2 is NaN (Not a Number).If an Overflow occurs, the result wraps around.Notes:▪ DIV rounds down; it does not round to the closest integer. For example, 24 DIV 5 = 4.▪ Be careful to avoid overflows.Operands for DIV_UINT, DIV_INT, DIV_DINT, and DIV_REALParameter Description Allowed Types Allowed Operands OptionalSolve Order Calculated by the FBD editor. NA NA NoIN1 Dividend: the value to be divided; shown tothe left of DIV in the equation IN1 DIV IN2=Q.INT, DINT, UINT,REAL, LREALAll except S, SA, SB,SCNoIN2 Divisor: the value to divide into IN1; shown tothe right of DIV in the equation IN1 DIVIN2=Q.INT, DINT, UINT,REAL, LREALAll except S, SA, SB,SCNoQ The quotient of IN1/IN2. If an Overflowoccurs, the result is the largest value with theproper sign.INT, DINT, UINT,REAL or LREALvariableAll except S, SA, SB,SC and constantNo