![background image](http://html1.mh-extra.com/html/ls-industrial-systems/xbc-dn10e/xbc-dn10e_user-manual_1943831345.webp)
Chapter 6 Instruction and Flag List
XBC E-Type Main Unit
6-228
Ver. 1
6.33.2 FIFRD, FIFRDP
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
FIFRD(P)
S
O O O O O O O
-
O
-
-
O O O O O
2~4
O
0
-
D
O O O
-
O
-
-
-
-
-
-
-
-
O O O
Operand
Description
Data Type
S
Start position of data table
WORD
D
Position to save in the value read from data table
WORD
[Flag Setting]
Flag
Description
Device Number
Error
If data table’s range exceeds applicable device’s range
F110
Zero
If no data is available in data table
F111
1) FIFRD (First File Read)
(1) Reads the 1
st
data from specified data table S to D. The number of data in table decreases by 1, and the
other data is moved to the device position with a decrease of 1.
(2) The specified S is number of effective data in data table.
(3) If number of data is decreased by 1, the value is filled by 0 in data table size +1.
(4) If the number of data is 0, 0 is saved at D, and zero flag is set
2) Program Example
(1) When P1000=3, P1001=1111, P1002=2222, and P1003=3333, if input signal P00000 is Off ->On, 1111, first
data of data table, is saved P1100, and data table decreases by 1. P1000=2, P1001=2222, P1002=3333,
P1003=0 is saved.
P00000
FIFRDP P1000 P1100
FIFRD
means FIFRD
P S
D
FIFRDP
S
D
2
2345
3456
0
0
S
S+1
S+2
S+3
. . . .
1234
D
3
1234
2345
0
3456
S
S+1
S+2
S+3
. . . .
0
Executed
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...