Kaiyi — 6.23.2 Explanation of Memory Card Instructions

Chapter 6 Applied Instructions Example: SM450 is ON when the memory card is inserted into the CPU module; SM452 is ON when MWRIT is executed; SM452 is OFF when the execution of MWRIT is complete. Additional remark: 1. If the value in C exceeds the range, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 2. If the value in S 1 exceeds the range, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 3. If the value in S 2 exceeds the range, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 4.

If the value in S 3 exceeds the range, the operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003. 6-534 Operand Setting value Description D0 16#0011 The file into which the data is written The file format: The values are separated by a comma. The unit of the value is the word. The file name extension is .cvs. The ASCII codes are adopted. D1 - The data which is written into the file D10, D11 16#00000030 The size of the data which is written into the file is 48 words. D300 16#000A Ten values are written into every line. D20 D20=16#6554 D21=16#7473 D22=16#0031 The file name is “Test1”.

D30、D31 16#00000000 The data which is written into the memory card replaces the values in the file starting from the first value.