FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
23-1
23: F
ILE
D
ATA
P
ROCESSING
I
NSTRUCTIONS
Introduction
This chapter describes the file data processing instructions that handle the FIFO (first-in first-out) data structure. FIFOF (FIFO
Format) instructions initialize the FIFO data files storing the data. FIEX (First-In Execute) instructions store new data to the FIFO
data files, and FOEX (First-Out Execute) instructions retrieve the stored data from the FIFO data files. The first data to be stored to
the FIFO data files by FIEX instructions will be the first data to be retrieved by FOEX instructions.
NDSRC (N Data Search) instructions search a designated value through a specified range.
FIFOF (FIFO Format)
Valid Devices
For valid device address ranges, see "Device Addresses" on page 2-1.
Special internal relays cannot be designated as D2.
Since the FIFOF instruction is executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should be used.
Valid Data Types
When input is on, FIFOF instruction initializes an FIFO data file. Each data
file has unique number 0 through 9. A maximum of 10 data files can be used
in a user program.
FIFOF(W)
*
S1
***
S2
***
D1
*****
D2
*****
Device
Function
I
Q
M
R
T
C
D
P
Constant
Repeat
N (File Number)
File Number
—
—
—
—
—
—
—
—
0-9
—
S1 (Source 1)
Quantity of data registers per record
—
—
—
—
—
—
—
—
1-255
—
S2 (Source 2)
Quantity of records
—
—
—
—
—
—
—
—
2-255
—
D1 (Destination 1)
First data register to store FIFO data file
—
—
—
—
—
—
X
—
—
—
D2 (Destination 2)
FIFO status output
—
—
—
—
—
—
—
—
—
W (word)
X
When an M (internal relay) is assigned as the D2, three internal relays starting with the device assigned by D2
are used.
I (integer)
—
D (double word)
—
When a D (data register) is assigned as the D1, S1
×
S2+2 data registers starting with the device assigned by D1
are used.
L (long)
—
F (float)
—
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...