Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 447

Table of Contents

Advertisement

Flags
Name
Error Flag
Equal Flag
Function
COLM(064) copies the 16 bits from S to the
16 bits with bit number N in the 16-word range
D to D+15. Bit m of S is copied to bit N of
D+m, i.e., bit 00 of S is copied to bit N of D
and bit 15 of S is copied to bit N of D+15.
Data other than the specified bits of the
conversion result output word are held (kept
the same as before).
Example Programming
When CIO 0.00 is ON in the following example, COLM(064) copies the 16 bits in D200 (bits 00 through
15) to bit 5 in D100 through D115.
0.00
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Label
ER
• ON if N is not within the specified range of 0000 to 000F.
• OFF in all other cases.
=
• ON if bit N is 0 in all 16 words D to D+15 after execution.
• OFF in all other cases.
D200
D100
S: D200
D: D100
D101
D102
D115
Operation
Bit
15
.
.
.
.
.
S
0
Bit
15
0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1
D
D+1
1 1 0 1 0 0 1 0 0 1 1 1 0 0 0 1
D+2
0 0 0 1 1 0 1 1 0 0 1 0 0 1 1 1
D+3
1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1
.
.
.
.
.
.
D+15
0 1 1 1 0 0 0 1 1 0 0 0 1 0 1 0
3. Instructions
Bit
00
.
.
0 1
1
1
Bi
Bit
00
.
.
.
.
.
.
411
3

Advertisement

Table of Contents
loading

Table of Contents