Delta DVP-ES3 — 6.12.2 Explanation of Shift Instructions

Chapter 6 Applied Instructions Symbol S : First device D : Device where the data is shifted n : Data length Explanation 1. This instruction defines the data in the n word devices starting from the device specified by S as a first in-first out list 6_ type, and takes the device specified by S as a pointer. This instruction decrements the value in the device specified by S by one, writes the data in the device specified by S + 1 into the device specified by D , shifts the data in the devices specified by S + n -1– S +2 to the right, and leaves the data in the device specified by S + n -1 unchanged.

When the value in the device specified by S is equal to 0, the instruction stops reading the data, and sets the zero flag SM600 is ON. 2. In general, the SFRDP pulse instruction is used. 3. The operand n must be between 2–512. Example 1. When M0 switches from OFF to ON, the instruction writes the data in D21 into D0, shifts the data in D29–D22 to the right, leaves the data in D29 unchanged, and the decrements the value in D20 by one. 2. The data in the word device is shifted and read as shown below.  The data in D21 is read and shifted to D0.

6-319 API Instruction code Operand Function 1105 SFRD P S, D, n Shifting the data and reading it from a word device 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 -