Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 237

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Processing details
• These instructions divide the BCD 8-digit data specified by (s1) by the BCD 8-digit data specified by (s2), and store the
results of division in the device specified by (d).
(s1)+1
(s1)
5
6
7
8
9
1
2
Quotient
(d)+1
0
0
0
(d)+1, (d)+3
Upper 4 digits
• The results of division are stored as quotient and remainder using 64 bit(s) binary.
• Quotient (BCD 8-digit): Stored in lower 32 bit(s).
• Remainder (BCD 8-digit): Stored in upper 32 bit(s).
• If (d) is specified by bit device, remainder of division results is not stored.
Operation error
Error code
Description
(SD0/SD8067)
2820H
Device specified by (d) exceeds the allowable device range
3400H
0 is specified for (s2) value.
3405H
BCD data in the device specified by (s1) is outside of the valid range (0 to 99999999).
BCD data in the device specified by (s2) is outside of the valid range (0 to 99999999).
(s2)+1
3
÷
0
1
2
3
0 is entered.
(d)
Remainder
0
0
0
4
5
(s2)
4
5
6
7
(d)+3
(d)+2
0
1
2
3
3
6
0
(d), (d)+2
Lower 4 digits
7.2 Arithmetic Operation Instructions
8
7 BASIC INSTRUCTIONS
7
235

Hide quick links:

Advertisement

loading