Mitsubishi Electric MELSEC Q Series Programming Manual page 201

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

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU
(2) Right rotation of 16-bit data (Include the carry flag) (RCR)
• Rotates 16-bit data of the device designated by (D), including the carry flag, n-
bits to the right. The carry flag is ON or OFF depending on the status prior to
the execution of the RCR instruction.
Carry flag
(SM12)
• Specify any of 0 to 15 as n. If the value specified as n is out of range, the
remainder of n / 16 is used for rotation. (As n is BIN 16 bits unsigned value.) For
example, when n=18, the contents are rotated two bits to the right since the
remainder of 18 / 16 = 1 is "2".
(D)
b15
b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
n-bit rotation
5 - 60

Advertisement

Table of Contents
loading

Table of Contents