AH500 Motion Control Module Manual D : Device which is rotated; n : Number of bits forming a group The bits in D are divided into groups ( n bits as a group), and these groups are rotated rightwards. The n th bit from the right is transmitted to a carry flag. Generally, the pulse instructions RORP and DRORP are used. If the operand D is KnM/KnS, Kn in KnM/KnS must be K4 (16 bits) or K8 (32 bits). 16-bit instruction: 1≤ n ≤16; 32-bit instruction: 1≤ n ≤32 SM1066 is the carry flag in an Ox motion subroutine, and SM970 is the carry flag in O100.
Explanation When X0.0 is turned from OFF to ON, the bits in D10 are divided into groups (four bits as a group), and these groups are rotated rightwards. Example (The bit marked with ※ is transmitted to a carry flag.) X0.0 Rotating the bits in D10 rightwards High byte Low byte Carry flag D10 Rotating the 16 bits in D10 D10 Carry flag Low byte High byte 0 * 5-50 API Instruction code Operand Function Rotating bits rightwards 30 D ROR P D, n Device Xn.n Yn.n M S K 16# F KnM KnS D W T C V Z D n Pulse instruction 16-bit instruction (5 steps) 32-bit instruction (6 steps) RORP D10 K4 1 1 1 1 0 1 1 0 1 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 1 1 0 1 0 0