177
Outline Divides the 16-bit data by the divisor and stores the result in the specified
area and the remainder in special data register DT9015.
Program example
■ Operands
■ Explanation of example
• Divides the contents of data register DT100 by decimal constant K10 when trigger X0 turns ON. The quotient is
stored in data register DT0 and the remainder is stored in special data register DT9015.
Bit position
K10
0000
0000
11 8
0000
1010
30
Divisor [S2]: K10
X0: ON
15 ••12 •• ••
74
••
Bit position
DT0
0000
0000
11 8
0001
0010
30
Quotient [D]: K18
15 ••12 •• ••
74
••
Bit position
DT100
0000
0000
11 8
1011
0111
30
Dividend [S1]: K183
15 ••12 •• ••
74
••
Bit position
DT9015
0000
0000
11 8
0000
0011
30
Remainder: K3
15 ••12 •• ••
74
••
–
Timer/Counter
EV
Relay
SVWRWYWX
Operand
S1
AAA A
A:
N/A: Not Available
Register
DT
A
IYIX
AA
HK
AA
Constant
Index
modifier
A
Index
register
Available
A
S2
AAA A A A A A A AA
N/A A A A A A A N/A N/A AA
D
F32
(%)
16-bit data
[S1/S2 → D... (DT9015)]
Availability
All series
Step
7
6-3. Description of High-level Instructions
16-bit equivalent constant or 16-bit area (for dividend)
16-bit equivalent constant or 16-bit area (for divisor)
16-bit area (for quotient), (remainder is stored in special data register DT9015)
Ladder Diagram
Boolean Non-ladder
Address Instruction
20
X0
F32 % , DT 100 , K10 , DT 0
D
Trigger
S2S1
20
21
ST X 0
F32(% )
DT 100
K10
DT 0
S1
S2
D