Chapter 6 Applied Instructions Symbol C : Control parameter S : Data source 6_ S 1 : Data length S 2 : Separation mark S 3 : File name Explanation 1. This instruction writes a string into the memory card. The operands are described as follows. C :
The control parameter 6-759 API Instruction code Operand Function 2302 MTWRIT P C, S, S1, S2, S3 Writing a string into the memory card Device X Y M S T C HC D FR SM SR E K 16# “$” F C S S1 S2 S3 BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type C S S1 S2 S3 Pulse instruction 16-bit instruction 32-bit instruction AS AS - Parameter Description value 0 (Appending) If the file exists, the data that is written into the memory card is appended after the last byte in the file. If the file does not exist, it is created automatically.