Operator - Performs a division of inputs.
IN1 : ANY_NUM
IN2 : ANY_NUM Second input
Q : ANY_NUM Result: IN1 / IN2
All inputs and the output must have the same type. In LD language, the input rung (EN) enables the operation, and the output rung keeps the same value as the input rung. In IL language, the DIV instruction performs a division between the current result and the operand. The current result and the operand must have the same type.
Q := IN1 / IN2;
(* The division is executed only if EN is
(* ENO is equal to EN *)
Op1: LD IN1
ST Q (* Q is equal to: IN1 / IN2 *)
Op2: LD IN1
ST Q (* Q is equal to: IN1 / IN2 / IN3 *)
+ - *