Delta DVP-ES3 — 6.23.2 Explanation of Memory Card / File Register Instructions

Chapter 6 Applied Instructions  S : The data source If the string that the instruction writes into the file is “12345”, the instruction stores the characters in the devices as follows. The basic unit is a byte, and so the instruction stores the first character in the low byte in D300. The instruction stores the second character in the high byte in D300. The same applies to other characters. The instruction stores “16#00” in the high byte in D300+2, and indicates the end of the string. S300 byte 1 byte 4 byte 3 byte 6 byte 5 S300+1 S300+2 byte 2  S 1 : The length of the data that is written into the memory card The basic unit is a byte.

The devices where the instruction stores the data cannot exceed the device range, and the length of the data that the instruction writes into the memory card cannot be more than 255 bytes.  S 2 : The separation mark If the value in S 1 is N, the instruction writes the value in S 2 into the memory card as follows. 6_  ES3 series PLC supports using string (less than 9 characters) in the file name S 3 .  S 3 –S 3 +4: S 3 occupies five devices. The file name contains a maximum of nine characters, including 16#00. If the string does not end with 16#00, an error occurs.

When the instruction reads the ending character, the instruction stops reading characters, and checks if the file name is legal. The characters in the file name can be A–Z, a–z, and 0–9. The file name extension depends on the file format. The file that the instruction creates is in the default folder. If the file name is “Test1”, the instruction writes characters into the devices as follows. 6-741 (Overwriting) file. The size of the file is the size of the new data. If the file does not exist, it is created automatically. 16#32 16#31 16#34 16#33 16#00 16#35 S2Operand Description High byte Low byte 16#00 16#00 or not 16#00 The N-byte data is written into the file.

Not 16#00 16#00 The N+1-byte data is written into the file. The value in the high byte in S2 is the value in the N+1st byte. Not 16#00 Not 16#00 The N+2-byte data is written into the file. The value in the high byte in S2 is the value in the seventh byte, and the value in low byte in S2 is the value in the N+2th byte.