Explanation Of Shift Instructions - Delta AH500 Programming Manual

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

6.12.2 Explanation of Shift Instructions

API
Instruction code
1100
SFTR
Device
X
Y
M
S
D
n
1
n
2
Symbol:
Explanation:
1.
The states of the n
these groups are shifted to the right. The states of the n
to the devices starting from D to fill the vacancy.
2.
Generally, the pulse instruction SFTRP is used.
3.
The operand n
should be within the range between 1 and 1024. The operand n
1
within the range between 1 and n
Example 1:
1.
When X0.0 is switched from OFF to ON, the states of the sixteen bit devices starting from M0
are divided into groups (four bits as a group), and these groups are shifted to the right.
2.
The shift of the states of the bit devices to the right during a scan is illustrated as follows.
M3~M0
M7~M4
M11~M8
M15~M12
X0.3~X0.0
Operand
P
S, D, n
S
T
C
HC
D
Pulse instruction 16-bit instruction (9 steps) 32-bit instruction
AH500
S : Initial device in which the value is shifted
D : Initial device in which the value is shifted
: Length of the data which is shifted
n
1
: Number of bits forming a group
n
2
bit devices starting from D are divided into groups (n
1
.
1
→ Being carried
→ M3~M0
→ M7~M4
→ M11~M8
→ M15~M12
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Shifting the states of the
, n
1
2
devices to the right
L
SM SR
E
PR
AH500
bit devices starting from S are shifted
2
Function
K
16# "$"
DF
Bit
Bit
Word
Word
bits as a group), and
2
should be
2
6 - 2 3 5

Advertisement

Table of Contents
loading

Table of Contents