314
Conversion Instructions Section 5-20
5-20-16 LINE-TO-COLUMN – COLM(––)
Limitations D and D+15 must be in the same data area.
DM 6129 to DM 6655 cannot be used for D.
C must be BCD between #0000 and #0015.
Description When the execution condition is OFF, COLM(––) is not executed. When the
execution condition is ON, COLM(––) copies the 16 bits of word S (00 to 15)
to the column of bits, C, of the 16-word set (D to D+15).
Flags ER: The bit designator C is not BCD, or it is specifying a non-existent bit
(i.e., bit specification must be between 00 and 15).
Indirectly addressed EM/DM word is non-existent.
(Content of *EM/*DM word is not BCD, or the EM/DM area boundary
has been exceeded.)
D and D+15 are not in the same data area.
EQ: ON when the content of S is zero; otherwise OFF.
Example The following example shows how to use COLM(––) to move the contents of
word DM 0100 (00 to 15) to bit column 15 of the set (DM 0200 to DM 0215).
S: Source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
C: Column bit designator (BCD)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Ladder Symbols
Operand Data Areas
D: First word of the destination set
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
COLM(−− )
S
D
C
@COLM(−− )
S
D
C
0
0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1
Bit
15
Bit
00
D
C
1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1
D+1
0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1
D+2
.
.
.
.
.
.
.
.
.
.
0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0
D+15
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
D+3
0 1 1
S
1
Bit
15
Bit
00
. . . . . .
.
.
.
COLM(−−)
DM 0100
DM 0200
#0015
00000
Address Instruction Operands
00000 LD 00000
00001 COLM(−− )
DM 0100
DM 0200
# 0015