FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
11.9
FNC 38 – SFWR / Shift Write [FIFO/FILO Control]
Outline
This instruction writes data for first-in first-out (FIFO) and last-in first-out (LIFO) control.
1. Instruction format
FNC 38
P
SFWR
2. Set data
Operand Type
S
D
n
*1.
"+1" is required for the pointer.
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
n
: This function is supported only in FX
Mnemonic
16-bit Instruction
SFWR
7 steps
SFWRP
Word device number storing data to be put in first
Head word device number storing data (The first word device works as the pointer, and
data is stored in
D
+1 and later)
*1
Number of store points plus "1"
2
Digit Specification
/FX
3U
3UC
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.9 FNC 38 – SFWR / Shift Write [FIFO/FILO Control]
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
n
512
Word Devices
Special
System User
Index
Unit
V
Z Modify K H
PLCs.
Mnemonic
Operation Condition
−
−
Data Type
16-bit binary
16-bit binary
16-bit binary
Others
Con-
Real
Charac-
Pointer
stant
Number
ter String
E
" "
P
311
11
12
13
14
15
16
17
18
19
20