Delta DVP-ES3 — 6.12.2 Explanation of Shift Instructions

Chapter 6 Applied Instructions Symbol S : First device D : Data to be inserted n : Device where the data is inserted Explanation 1. For this instruction, the length of the data is the value in the device specified by S , and the data itself is in the 6_ devices specified by S +1 – S +(the value in S ). This instruction inserts the data in D into S + n , shifts the original data in the devices specified by S + n – S +(the value in S ) to the left, and increments the value in the device specified by S by one.

When the value in the device specified by S is equal to 32767, the instruction stops writing the data, stops incrementing the value in the device specified by S , and sets the carry flag SM602 is ON. 2. In general, the SFINSP pulse instruction is used. 3. The operand n must be between 1 – 32767. Example Suppose the value in D0 is 8, and n is 4. When M0 is ON, the instruction inserts the data in D200 into D4, shifts the original data in D4 – D8 to D5 – D9, and increments the value in D0 by one.

6-325 API Instruction code Operand Function 1108 SFINS P S, D, n Inserting data into a data list 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 -