AH500 Programming Manual 
6-530 
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. MWRITP the pulse 
instruction, cannot be used continuously. If executing this pulse instruction to write data into the 
memory card continuously, it may exceed its written limitation and may lead to memory card broken. 
 
 
D0  16#0011 
The file into which the data is written 
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. 
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. 
Ten values are written into every line. 
D20 
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. 
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.