Line-To-Column - Colm - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Conversion Instructions
Example
00000
5-19-16 LINE-TO-COLUMN – COLM(––)
Limitations
Description
Flags
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
S and S+15 are not in the same data area.
EQ:
ON when the content of D is zero; otherwise OFF.
The following example shows how to use LINE(––) to move bit column 07
from the set (IR 100 to IR 115) to DM 0100.
Ladder Symbols
COLM(––)
@COLM(––)
S
D
C
This instruction is available in the CQM1 only.
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.
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).
S
D
D+1
D+2
D+3
.
.
.
D+15
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).
Address Instruction
LINE(––)
00000
100
00001
#0007
DM 0100
S
D: First word of the destination set
D
C
C: Column bit designator (BCD)
IR, SR, AR, DM, HR, TC, LR, #
Bit
15
.
.
.
.
.
.
0
Bit
15
0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1
1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1
0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
.
.
.
.
.
.
0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0
Section 5-19
Operands
LD
00000
LINE(––)
#
0007
DM
0100
Operand Data Areas
S: Source word
IR, SR, AR, DM, HR, TC, LR
IR, SR, AR, DM, HR, TC LR
Bit
00
.
0 1
1
1
C
Bit
00
.
.
.
100
281

Advertisement

Table of Contents
loading

Table of Contents