6 I/O Processing of Data Files
6 - 10
3)" Read the data into the file buffer using the GET instruction if data is to be read.
GET #n, <record number>
Random File
MEMORY CARD
Read the data in the file buffer to variables.
D1#= CVD ( A$) • • • • • • • •
X1$= B$
4) Close the file.
CLOSE #n
• Always execute the CLOSE instruction after data input/output is complete.
• After the CLOSE instruction is executed,
input/output operation can no longer be performed in the file.
Furthermore, input/output operation cannot be performed in the file buffer.
GET
The numeric data is converted back to numeric
data using CVI, CVS, or CVD function.
Data
MELSEC-Q
File Buffer
File buffer
6 - 10