19:
F
ILE
D
ATA
P
ROCESSING
I
NSTRUCTIONS
19
‐
4
FC5A
M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y
‐
B1273
Valid
Data
Types
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:
2
Quantity
of
data
registers
per
record:
3
Quantity
of
records:
4
FIFO
Data
file:
D100
through
D113
(3
4+2
data
registers)
FIFO
status
outputs:
M100
through
M102
FIFO
Data
File
The
table
blow
shows
the
data
stored
in
FIFO
data
file
2
when
inputs
I0,
I1,
and
I2
are
turned
on
in
this
order.
Only
the
valid
data
managed
by
the
FIFOF,
FIEX,
and
FOEX
instructions
are
shown
in
the
table.
W
(word)
X
I
(integer)
—
D
(double
word)
—
L
(long)
—
F
(float)
—
Function
Device
Address
Input
I0
Input
I1
Input
I2
FI
Pointer
D100
1
2
2
FO
Pointer
D101
0
0
1
Record
0
D102
through
D104
D10,
D11,
D12
D10,
D11,
D12
—
Record
1
D105
through
D107
—
D20,
D21,
D22
D20,
D21,
D22
Record
2
D108
through
D110
—
—
—
Record
3
D111
through
D113
—
—
—
When
a
D
(data
register)
is
designated
as
the
destination,
data
registers
as
many
as
the
value
stored
in
device
S1
of
the
corresponding
FIFOF
instruction
are
used.
I0
S1
D10
FIEX(W)
2
M8120
SOTU
Ladder
Diagram
M8120
is
the
initialize
pulse
special
internal
relay.
When
the
CPU
starts,
MOV
sets
0
to
FI
and
FO
pointers,
and
FIFOF
ini
‐
tializes
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.
REP
2
S1
–
0
D1
R
D100
MOV(W)
D2
M100
S1
3
D1
D100
FIFOF(W)
2
S2
4
I1
S1
D20
FIEX(W)
2
I2
D1
D50
FOEX(W)
2
SOTU
SOTU
Содержание MICROSmart FC5A Series
Страница 1: ...FC5A SERIES FC9Y B1273 1 User s Manual Advanced Volume ...
Страница 2: ......
Страница 8: ...Preface 6 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 14: ...TABLE OF CONTENTS vi FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 52: ...4 DATA COMPARISON INSTRUCTIONS 4 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 72: ...5 Binary Arithmetic Instructions 5 20 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 88: ...7 SHIFT ROTATE INSTRUCTIONS 7 12 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 112: ...8 DATA CONVERSION INSTRUCTIONS 8 24 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 138: ...11 PROGRAM BRANCHING INSTRUCTIONS 11 14 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 178: ...13 PULSE INSTRUCTIONS 13 32 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 202: ...14 PID INSTRUCTION 14 24 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 206: ...15 DUAL TEACHING TIMER INSTRUCTIONS 15 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 214: ...16 INTELLIGENT MODULE ACCESS INSTRUCTIONS 16 8 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 248: ...21 COMPUTER LINK COMMUNICATION 21 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 272: ...23 MODBUS TCP COMMUNICATION 23 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 332: ...25 EXPANSION RS232C RS485 COMMUNICATION 25 16 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 341: ...NOTE FC5A MICROSMART USER S MANUAL FC9Y B1273 1 ...
Страница 342: ...NOTE 2 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...