Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 212

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

Advertisement

Processing details
• These instructions divide the 16-bit binary data in the device specified by (s1) by the 16-bit binary data in the device
specified by (s2), and store the division result in the device specified by (d).
(s1)
b15
b0
···
5678 (BIN)
÷
(d): Quotient
(d)+1: Remainder
• For the division result, 32-bit is used for word device to store the quotient and remainder and 16-bit is used for bit device to
store quotient only.
• Quotient...... Stored in the lower 16 bits.
• Remainder...... Stored in the upper 16 bits. (This data can be stored for word device only.)
Operation error
Error code
Description
(SD0/SD8067)
2820H
The range of the device specified by (d) exceeds the range of said device.
3400H
0 is specified for (s2) value.
7 BASIC INSTRUCTIONS
210
7.2 Arithmetic Operation Instructions
(s2)
(d)
b15
b0
b15
···
···
1234 (BIN)
4 (BIN)
(d)+1
b0 b15
b0
···
742 (BIN)

Hide quick links:

Advertisement

loading