Delta DVP-ES3 — 6.23.2 Explanation of Memory Card / File Register Instructions

DVP-ES3 Series Programming Manual Symbol S : The first address of the data source D : The first address where the data is stored n : Data length _6 Explanation 1. This instruction writes data into the file register. The description of the operands is as follows. • S : The initial address of the data source; it is suggested that you declare an array type variable. • D : The initial address where the instruction stores data. It is suggested that you assign an address for the file register and declare an array type variable. • n : The length of the data that the instruction writes into the file register, between 1 – 2048.

If the value exceeds the range, the instruction is not executed, SM0 is ON, and the error code in SR0 is 16#200B. • If the device S or D exceeds the allowed range, SM0 is ON, and the error code in SR0 is 16#2003. 2. Since it takes 60–120 ms for the instruction to write the data, it is suggested that you use this instruction when the PLC is idle. For example, when there is no external interrupt task, no high-speed output, or any immediate events for the PLC to process. 3. The instruction writes only when the contact switches from OFF to ON and writes only once. NOTE: You can write into this file register a maximum of 100,000 times.

6-744 API Instruction code Operand Function 2303 MEMW P S, D, n Writing data into the file register Device X Y M S T C HC D FR SM SR E K 16# “$” F S    D  n       BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S  D  n  Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 -