Delta AH500 — 6.3.2 Explanation of Data Conversion Instructions

AH500 Programming Manual API 0219 Symbol: S : Data source Word/Double word n : Number of bits Word/Double word D : Data destination Word/Double word Explanation: 1. The operand D used in the 16-bit instruction occupies sixteen 16-bit registers, i.e. D ~ D +15. 2. The operand D used in the 32-bit instruction occupies thirty-two 32-bit registers, i.e. D ~ D +31. 3. The operand n indicates that the values of the bits in the operand S are stored in the n th bits in the operand D . Besides, the operand n used in the 16-bit instruction should be within the range between 0 and 15, and the operand n used in the 32-bit instruction should be within the range between 0 and 31. 4.

The operand n used in the 16-bit instruction indicates that the values of the bits in S are stored in the n th bits in D ~ D +15 in order. 5. The operand n used in the 32-bit instruction indicates that the values of the bits in S are stored in the n th bits in D ~ D +31 in order. 6. Only the 32-bit instructions can use the 32-bit counter. 7. Take the 16-bit instruction for example. b15 b0 S . .. . . . . . 0 D D+1 D+2 . . . . . . . . . . . .

D+13 D+14 D+15 6-110 Instruction code Operand Function D COLM P S, n, D Converting a line of data into a column of data Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S             n            D          Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (7 steps) AH500 AH500 AH500 0 1 0 1 0 1 15 b0 1 0 1 0 1 0