Mitsubishi Electric MELSEC Q Series Programming Manual page 203

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

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU
(2) Right rotation of 32-bit data (Include the carry flag) (DRCR)
• Rotates 32-bit data, including carry flag, at device designated by (D) n bits to
the right.
The carry flag goes ON or OFF depending on its status prior to the execution of
the DRCR instruction.
Carry flag
(SM12)
• Specify any of 0 to 31 as n. If the value specified as n is out of range, the
remainder of n / 32 is used for rotation. (As n is BIN 16 bits unsigned value.) For
example, when n=34, the contents are rotated two bits to the right since the
remainder of 34 / 32 = 1 is "2".
(D)+1
b31
b30b29
b16b15
n-bit rotation
5 - 62
(D)
b2 b1 b0

Advertisement

Table of Contents
loading

Table of Contents