Chapter 6 Applied Instructions
6-529
ending character is read, the reading of the characters stops, and whether the
file name is legal is checked. The characters which can be used to constitute a
file name are A~Z, a~z, and 0~9. Besides, the file name extension depends on
the file format. The file which is created is in the default folder. If the file name is
“Test1”, the characters are written into the devices as follows.
The default folder path:
PLC CARD\AH500\UserProg
S
4
: The value in the file which is overwritten is indicated by the value in S
4
.
Value unit
If the file format is 0, 1, 3, or 5, the unit of the value is the word. If the
file format is 2, 4, or 6, the unit of the value is the double word.
The parameter unit is the double word.
Usage
If the function option is 0, S
4
If the function option is 1, the data which is written into the memory
card replaces the values in the file starting from the value indicated by
the value in
4
.
4
should indicate the value in the file.
If the value in
4
is 0, the first value in the file is overwritten.
2. The related flags:
If the memory card is in the CPU module, the flag is ON.
SM451
The write protection switch on the memory card
ON: The memory card is write protected.
OFF: The memory card is not write protected.
SM452
The data is being written from the PLC to the memory card, or the
data is being read from the memory card into the PLC.
SM453
If an error occurs during the operation of the memory card, the flag is
ON. If the flag is ON, users have to reset it to OFF. The erro
stored in SR453.
3. The related error codes (SR453):
An error occurs when the memory card is initialized.
The path is incorrect, or the file does not exist.
The default folder can not be created.
The memory space is insufficient.
The memory card is write protected.
An error occurs when the data is written into the file.
The data can not be read from the memory card.
The file is a read-only file.
4. If the format of the file into which the data is written is 0, the format of the file from which the
data is read is 0. Otherwise, the data can not be read, and SM453 is ON. The same applies to
the other file formats.