Delta AH500 — 6.12.2 Explanation of Shift Instructions

Chapter 6 Applied Instructions Symbol: S : Initial device Word D : Data which is inserted Word n : Device into which the data is inserted Word Explanation: 1. The value in the device specified by S indicates the length of the data, and the data is in the devices specified by S +1~ S +(The value in S ). When the instruction is executed, the data in D is inserted into S + n , the original data in the devices specified by S + n ~ S +(The value in S ) is shifted to the left, and the value in the device specified by S increases by one.

When the value in the device specified by S is equal to 32767, the instruction does not process the writing of the data, the value in the device specified by S does not increase, and the carry flag SM602 is ON. 2. Generally, the pulse instruction SFINSP is used. 3. The operand n should be within the range between 1 and 32767. Example: Suppose the value in D0 is 8, and n is 4. When X0.0 is ON, the data in D200 is inserted into D4, the original data in D4~D8 is shifted to D5~D9, and the value in D0 increases by one. S D n=4 D200 D8 D7 D6 D5 D4 D3 D2 D1 D0 22 The data is inserted.

The length of the data D200 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 22 The length of the data 6-251 API Instruction code Operand Function 1108 SFINS P S, D, n Inserting the data into the data list Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S         D            n            Pulse instruction 16-bit instruction (7 steps) 32-bit instruction AH500 AH500 - 4712 857 123 100 111 48 5 799 8 4712 857 123 100 111 22 48 5 799 9