Chapter 6 Applied Instructions 
6-109 
API 
Instruction code
Operand  Function 
0219  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
16-bit instruction (7 steps) 
32-bit instruction (7 steps) 
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. 
...... ..
0
1 0 1
1
0
.
.
.
1
0
1
1
0
0
.
.
.
.
.
.
.
.
.
b15 b0
S
D
D+1
D+2
D+13
D+14
D+15
N
b0b15