Delta AH500 Programming Manual page 386

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
0901
D
RCR
Device X
Y
M
D
n
Symbol:
Explanation:
1.
The values of the bits in the device specified by D are divided into groups (n bits as a group),
and these groups are rotated to the right with the carry flag SM602.
2.
Only the 32-bit instructions can use the 32-bit counter.
3.
The operand n used in the 16-bit instruction should be within the range between 1 and 16. The
operand n used in the 32-bit instruction should be within the range between 1 and 32.
4.
Generally, the pulse instructions RCRP and DRCRP are used.
Example:
When X0.0 is switched from OFF to ON, the values of the bits in D10 are divided into groups (four
bits as a group), and these groups are rotated to the right with the carry flag SM602. (The value of
the bit marked ※ is transmitted to the carry flag SM602.)
Carry flag
0
6 - 2 1 8
Operand
P
D, n
S
T
C
HC
D
Pulse instruction
AH500
D : Device which is rotated
Number of bits forming a
n :
group
b 15
0 0 0 0 1 1 1 1 0 0 0 0 0 1 1 0
After the rotation is executed
b 15
1 1 0 1
0 0 0 0 1 1 1 1 0 0 0 0
Rotating to the right with the carry
flag
L
SM SR
E
PR
16-bit instruction (5 steps) 32-bit instruction (5 steps)
AH500
Carry flag
b 0
b 0
Function
K
16# "$"
DF
AH500
Word/Double word
Word/Double word
1

Advertisement

Table of Contents
loading

Table of Contents