High−level Instructions
3 − 689
Outline Divides real number data by the divisor and stores the divided result in
the specified 32-bit area.
For the FP0R/FPΣ/FP−X/FP0/FP−e, the P type high−level instruction
“P313 (PF%)” is not available.
Program example
Boolean
Ladder Diagram
Address Instruction
S1
Trigger
S2 D
F313 F%, DT10, DT20, DT3010
R0
10
11
ST R 0
F313 (F%)
DT 10
DT 20
DT 30
S1 Real number data (2 words) or lower 16-bit area of 32-bit data (for dividend)
S2 Real number data (2 words) or lower 16-bit area of 32-bit data (for divisor)
D Lower 16-bit area of 32-bit data (for result)
Operands
O
WX WY WR WL SV EV DT LD FL I K H f
modifier device
S1 A A A A A A A A A A A A A A* A
S2 A A A A A A A A A A A A A A* A
D N/A A A A A A A A A A N/A N/A N/A A A
* Index modification of a real number is not possible.
Description
The real number data (2 words) specified by S1 is divided by the real number data (2 words) specified by S2
when the trigger turns on. The result is stored in D+1 and D.
[S1+1, S1] ÷ [S2+1, S2] → [D+1, D]
Specifying the integer device with [S1] and [S2], the integer data is internally converted to real numbers
before operations continue.
F313 F%, % DT 0, % DT 2, DT4
R0
F313
P313
(PF%)
(F%)
Floating point data division