Mitsubishi Electric MELSEC Q Series Programming Manual page 205

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

Advertisement

5 SEQUENCE INSTRUCTIONS FOR MOTION CPU
(2) Left rotation of 16-bit data (Include the carry flag) (RCL)
• Rotates 16-bit data of the device designated by (D), including the carry flag, n-
bits to the left. The carry flag is ON or OFF depending on the status prior to the
execution of the RCL instruction.
Carry flag
(SM12)
b15
b14b13b12b11b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
• 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 left since the
remainder of 18 / 16 = 1 is "2".
(D)
n-bit rotation
5 - 64

Advertisement

Table of Contents
loading

Table of Contents