![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268556.webp)
517
Conversion Instructions
Section 3-12
Description
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.
Flags
Example
When CIO 000000 is ON in the following example, COLM(064) copies the 16
bits in D00200 (bits 00 through 15) to bit 5 in D00100 through D00115.
0
0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1
15
00
D
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
15
00
.
.
.
.
.
.
.
.
.
Bit Bit
Bi
Bit Bit
Name
Label
Operation
Error Flag
ER
ON if N is not within the specified range of 0000 to 000F.
OFF in all other cases.
Equals Flag
=
ON if bit N is 0 in all 16 words D to D+15 after execution.
OFF in all other cases.
S: D00200
D:
to
to
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...