7. APPLICATION INSTRUCTIONS
7
−
62
MELSEC-A
Program Examples FIFW
Program which uses D38 to 47 as a FIFO table and temporarily stores the data of
X20 to 2F when XB turns on. When the data exceeds 9, this program turns on Y60 to
disable the execution of FIFW instruction.
(The data storage location is as shown below when the pointer value is 5.)
•
Coding
0 LD
>
D38 K8
5 OUT
Y060
6 LD
X00B
7 ANI
Y060
8 FIFWP K4X020 D38
15
END
Pointer
Before execution
After execution
Data of X20 to 2F is stored into
FIFO table.
When pointer (D38) is 9 or more,
Y60 is turned on.
(
)
0
6
K
>
D38 8
Y060
X00B Y060
P
K4
FIFW X020
D38
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......