2 Instruction Descriptions
Sample Programming
Here, four bytes of data are written from the second byte from the beginning of the file 'ABC.bin.' The
contents of the BYTE array variable OutDat[] is written to the file. The processing procedure is as fol-
lows:
1
The FileOpen instruction is used to open the file 'ABC.bin.'
2
The FileSeek instruction is used to set a file position indicator at the second byte from the begin-
ning of the file.
3
The FileWrite instruction is used to write four bytes from array variable OutDat[] to the position
of the file position indicator.
4
The FileClose instruction is used to close the file 'ABC.bin.'
2-1276
NY-series Instructions Reference Manual (W560)