Column-To-Line - Line - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Conversion Instructions
5-20-15 COLUMN-TO-LINE – LINE(––)
Limitations
Description
Bit
15
0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1
S
1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1
S+1
0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1
S+2
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
S+3
.
.
.
S+15
0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0
Flags
Example
00000
Ladder Symbols
LINE(−−)
S
C
D
S and S+15 must be in the same data area.
C must be BCD between #0000 and #0015.
DM 6144 to DM 6655 cannot be used for D.
When the execution condition is OFF, LINE(––) is not executed. When the
execution condition is ON, LINE(––) copies bit column C from the 16-word set
(S to S+15) to the 16 bits of word D (00 to 15).
C
.
.
.
.
.
.
ER:
The column bit designator C is not BCD, or it is specifying a non-exis-
tent 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.)
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.
S: First word of 16 word source set
@LINE(−−)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
S
C: Column bit designator (BCD)
C
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
D
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Bit
00
.
.
.
Bit
15
. . .
D
0
Address Instruction
LINE(−−)
00000
100
00001
#0007
DM 0100
Section 5-20
Operand Data Areas
D: Destination word
Bit
00
0 1
1
1
Operands
LD
00000
LINE(−−)
100
#
0007
DM
0100
313

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents