Mitsubishi Electric MELSEC Q Series Programming Manual page 176

Motion controller
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU
(2) BIN 16-bit division operation (/)
• Divides BIN 16-bit data designated by (S1) and BIN 16-bit data designated by
(S2), and stores the result in the device designated by (D), (D) +1.
• Result of the division operation is stored as 32 bits, and both the quotient and
remainder are stored;
Quotient ............... Stored at the (D) lower 16 bits
Remainder .......... Stored at the ((D)+ 1) upper 16 bits
• Values for (S1) and (S2) can be designated between -32768 and 32767 (BIN 16
bits).
• Judgment whether values for (S1), (S2), (D) and (D)+1 are positive or negative
is made on the basis of the most significant bit (b15).
(Sign is attached to both the quotient and remainder.)
0: Positive
1: Negative
5 - 35

Advertisement

Table of Contents
loading

Table of Contents