Chapter 6 Applied Instructions Example: SM450 is ON when the memory card is inserted into the CPU module; SM452 is ON when the MTWRIT instruction executes; SM452 is OFF when the MTWRIT instruction completes. 6_ Additional remarks 1. If the value in C exceeds the range, an 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, an 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 3 exceeds the range, an operation error occurs, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#2003.
6-743 Operand Setting value Description D0 16#0001 The file into which the data is written The file format: The unit of the character is a byte. The file name extension is .txt. Use ASCII codes. The data in D300 is written to the file. D300 - The data that is written to the file D10 16#000A The size of the string that is written to the file is 10 bytes. D1 16#0A00 After the data is written to the file, the separation mark is appended after the last byte in the file. D30 D30=16#6554 D31=16#7473 D32=16#0031 The file name is “Test1”.