D/
- 101 -
Execution conditions
The execution conditions for D/ are as shown below.
D/
ON
Executed per scan
Division command OFF
Executed per scan
Program example
(1) Program to multiply the D10 data by 3.14 when X3 turns ON, and output the worth of low-order
16-bit of the results to Y30 to 3F.
Coding
No. of
steps
Com-
mand
Device
10 LD X3
11 * D10 K314 D0
15 D/ D0 K100 D2
21 MOV D2 K4Y30
*
K314D10 D0
X3
10
D/
K100D0
D2
D2
MOV
K4Y30
24
Point
The source and destination sides of the above program are as follow.
*
K314D10
D0
D/
K100
D0
D2
Possesses D2 to D5
D3, D2...Redundant
D5, D4...Quotient
Possesses D0, D1
D2
MOV
K4Y30
The details of D2 are
output to Y30 to 3F.
Possesses D0, D1