/
EDIV (FLOAT)
EDIV (FLOAT)
EDIV, EDIVP (FLOAT)
EDIV instruction divides S1 by S2 and save the result in the Destination (assigned device address).
(It supports only in XP and PLCS CPU series.)
| |
S1 | Value of the dividend |
S2 | Value of the Divisor |
D | Destination |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
EDIV(P) | S1 | o | o | o | o | o | - | - | - | - | o | o | o | - | 4 | o | - | - |
S2 | o | o | o | o | o | - | - | - | - | o | o | o | - | |||||
D | o | - | o | o | o | - | - | o | - | o | o | o | - |
EDIV
Function
Divide S1(Float value) by S2(Float value) and save the result to D and the remainder to D+1.
Example)
If X02 is ON, divide D0 by D4 and save the result to Y40.