E L C P r o g r a m m i n g M a n u a l
F o r m o r e i nf o r m a t i o n v i sit :
w w w. e a t o n . c o m
MN05003003E
3-92
API Mnemonic
Operands
Function
39
SFRD P
S, D, n
Shift Register Read
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K H KnX
KnY
KnM KnS T
C D E
F
S
*
*
*
*
*
*
D
*
*
*
*
*
*
*
*
n
*
*
SFRD, SFRDP: 7 steps
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P
32 16 P 32 16 P
Operands:
S
: Starting address of data stack
D
: Destination address
n
: Length of data stack
Description:
1.
This instruction defines the data stack of
n
words starting from
S
as a FIFO data stack and
specifies the first device as the pointer (
S
). The contents of the pointer indicates the current
position in the stack. When SFRDP is executed, the first data register (
S+1
) will be moved to
D
and all data in the stack moves up one register. The contents of the pointer is decremented
by 1. When the content in pointer = 0, the instruction stops and carry flag M1022= ON
2.
This instruction works best with the pulse instruction (SFRDP).
3.
Valid range of operand
n
: 2
≤
n
≤
512
Program Example:
1.
When X0 goes from OFF to ON, D9~D2 are all shifted one register to the right and the
pointer content of D0 is decremented by 1 and the content of D1 is moved to D21.
2.
Please refer to the following
n
~
p
steps to perform SFRD instruction.
n
The content of D1 is moved to D21.
o
D9~D2 are all shifted one register to the right.
p
The content of D0 is decremented by 1.
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
D21
X0
SFRDP
D0
K10
D21
n = 10 points
Data read
Pointer
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...