6 Application Instructions API 00-49
DVP-PLC Application Manual
6-55
API Mnemonic
Operands
Function
38
SFWR P
Shift Register Write
Controllers
ES/EX/SS SA/SX/SC EH/SV
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
*
*
SFWR, SFWRP: 7 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
S
: Device of stack data written in
D
: Start No. of stack data
n
: Length of stack data
Explanations:
1. Range
of
n
: 2 ~ 512
2.
See the specifications of each model for their range of use.
3.
Flag: M1022 (carry flag)
4.
The stack data of
n
words starting from
D
are defined as “first-in, first-out” stack data and designate the first
device as the pointer. When the instruction is executed, the content in the pointer pluses 1, and the content in
the device designated by
S
will be written into the designated location in the “first-in, first-out” stack data
designated by the pointer. When the content in the pointer exceeds
n
- 1, this instruction will not process any
new value written in and the carry flag M1022 = On.
5.
This instruction adopts pulse execution instructions (SFWRP)
Program Example:
1.
Pointer D0 is reset as 0. When X0 = Off
→
On, the content in D20 will be sent to D1 and the content in pointer D0
becomes 1. After the content in D20 is changed, make X0 = Off
→
On again, and the content in D2 will be sent to
D2 and the content in D0 becomes 2.
2.
The figure below illustrates the shift and writing in 1~2 execution of the instruction.
n
The content in D20 is sent to D1.
o
The content in pointer D0 becomes 1.
X10
RST
D0
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
D20
X0
SFWRP
D20
K10
D0
pointer
n = 10 points
D0 = 3 2 1
Reset the content of D0 as 0 in advance
Remarks:
This instruction can be used together with API 39 SFRD for the reading/writing of “first-in, first-out” stack data.
Содержание DVP-PLC
Страница 1: ...PLC PLC...
Страница 28: ...1 Basic Principles of PLC Ladder Diagram DVP PLC Application Manual 1 24 MEMO...
Страница 192: ...4 Step Ladder Instructions DVP PLC Application Manual 4 22 MEMO...
Страница 250: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 38 X0 DIV D0 D10 D20 D0 D10 K4Y0 DIV...
Страница 270: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 58 RST M0 X0 RST T0 RST Y0 FMOV K0 D10 K5...
Страница 337: ...7 Application Instructions API 50 99 DVP PLC APPLICATION MANUAL 7 53 X10 STMR T10 K50 Y0 Y3 X10 Y1 Y2 5 sec 5 sec...
Страница 458: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 56 or relay itself See 2 3 for more information...
Страница 472: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 70 MEMO...
Страница 574: ...9 Application Instructions API 150 199 DVP PLC Application Manual 9 102 MEMO...