DVP-ES3 Series Programming Manual Symbol S 1 : Data to exchange S 2 : Data to exchange _6 Explanation 1. This instruction exchanges the data in the device specified by S 1 with the data in the device specified by S 2 . 2. Only the 32-bit instructions can use the 32-bit counter, but not the device E. When M0 is switched from OFF to ON, the instruction exchanges the data in D20 with the data in D40.
Example 1 6-136 API Instruction code Operand Function 0306 D XCH P S1, S2 Exchanging data Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 ES3 Bef ore the inst ru ctio n Af t er t he inst ru ctio n is e xecu te d : is e xe cut e d: D 20 120 40 D20 D 40 4 0 120 D 40