Mitsubishi MELSEC-A Series Programming Manual page 264

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

7. APPLICATION INSTRUCTIONS
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.)
K
>
D38
8
0
X00B Y060
6
FIFW
• Coding
0
LD>
D38
K8
5
OUT
Y060
6
LD
X00B
7
ANI
Y060
8
FIFWP
K4X020 D38
15
END
Pointer
When pointer (D38) is 9 or more,
)
(
Y060
Y60 is turned on.
P
K4
Data of X20 to 2F is stored into
X020 D38
FIFO table.
Before execution
7 − 62
MELSEC-A
After execution

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents