Chapter 6 Applied Instructions Symbol ctrl : Control parameter fname : Data source Explanation 1. This instruction writes data from the PLC to the memory card. The operands are described as follows. ctrl : The control parameter 6_ You can use strings (less than 9 characters) in the in fname (file name). fname 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, it stops 6-745 API Instruction code Operand Function 2304 MDEL P ctrl, fname Deleting files on the memory card Device X Y M S T C HC D FR SM SR E K 16# “$” F ctrl fname BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type ctrl fname Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 - Item Code Description File format 0 The file name extension is .dmd. 1, 2, 7 The file name extension is .cvs. 3, 4, 5, 6 The file name extension is .txt. Reserved - The values of bit 8–bit 15 are 0.