Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 556

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Conversion Instructions
Description
Flags
Example
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.
Bit
15
S
0
Bit
15
D
0 0 0 0 1 1 1 0 0 0 1 0 0 0 0 1
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
Name
Label
Error Flag
ER
Equals Flag
=
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.
.
.
.
.
.
.
.
Bi
.
.
.
.
.
.
Operation
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.
S: D00200
D:
to
Section 3-12
Bit
00
0 1
1
1
Bit
00
.
.
.
to
517

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents