IDEC MICROSmart FC6A Series Ladder Programming Manual page 466

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

23: F
D
P
ILE
ATA
ROCESSING
Example: FIFOF, FIEX, and FOEX
This program demonstrates a user program of the FIFOX, FIEX, and FOEX instructions to use an FIFO data file.
File number:
Quantity of data registers per record:
Quantity of records:
FIFO Data file:
FIFO status outputs:
Ladder Diagram
MOV(W)
M8120
FIFOF(W)
S1
2
3
SOTU
I0
SOTU
I1
SOTU
I2
FIFO Data File
The table below shows the data stored in FIFO data file 2 when inputs I0, I1, and I2 are turned on in this order. Only valid data
managed by the FIFOF, FIEX, and FOEX instructions are shown in the table.
Function
FI Pointer
FO Pointer
Record 0
Record 1
Record 2
Record 3
23-4
I
NSTRUCTIONS
2
3
4
D100 through D113 (3×4+2 data registers)
M100 through M102
S1 –
D1 R
REP
0
D100
2
S2
D1
D2
4
D100
M100
FIEX(W)
S1
2
D10
FIEX(W)
S1
2
D20
FOEX(W)
D1
2
D50
Device Address
D100
D101
D102 through D104
D105 through D107
D108 through D110
D111 through D113
FC6A S
MICROS
ERIES
MART
M8120 is the initialize pulse special internal relay.
When the CPU starts, MOV sets 0 to FI and FO pointers, and FIFOF initializes
FIFO data file 2.
When input I0 is turned on, the data in D10 through D12 are stored to the
FIFO data file 2.
When input I1 is turned on, the data in D20 through D22 are stored to the
FIFO data file 2.
When input I2 is turned on, the first data is retrieved from the FIFO data file 2
and stored to D50 through D52.
Input I0
1
0
D10, D11, D12
L
P
M
ADDER
ROGRAMMING
ANUAL
Input I1
2
0
D10, D11, D12
D20, D21, D22
FC9Y-B1726
Input I2
2
1
D20, D21, D22

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents