Chapter 6 Applied Instructions S 2 : The separation mark If the value in S 1 is 6, the value in S 2 is written into the memory card as follows. S 3 ~S 3 +4: S 3 occupies five devices. Nine characters at most constitute a file name, including 16#00. If the string does not end with 16#00, the error occurs. If the 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 2. The related flags: 3. The related error codes (SR453): 6-537 S 2 Description High byte Low byte 16#00 16#00 or not 16#00 The 6-byte data is written into the file. Not 16#00 16#00 The 7-byte data is written into the file. The value in the high byte in S is the value in the seventh byte. 2 Not 16#00 Not 16#00 The 8-byte data is written into the file. The value in the high byte in S is the value in the seventh byte, and the value in low byte 2 in S is the value in the eighth byte.
2 Model name Folder path AHCPU530-RS2 PLC CARD\AH500\UserProg AHCPU530-EN AHCPU530-EN/RM AHCPU533-EN Flag Description SM450 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 error code is stored in SR453. Error code Description 16#005E An error occurs when the memory card is initialized.
16#005F The path is incorrect, or the file does not exist. 16#0060 The default folder can not be created. 16#0061 The memory space is insufficient. 16#0062 The memory card is write protected. 16#0063 An error occurs when the data is written into the file. 16#0064 The data can not be read from the memory card. 16#0065 The file is a read-only file.