EasyManua.ls Logo

Omron CJ - INSTRUCTIONS - Page 451

Omron CJ - INSTRUCTIONS
1308 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
413
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Conversion Instructions
3
COLM
Flags
Function
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.
Name Label Operation
Error Flag ER ON if N is not within the specified range of 0000 to 000F.
OFF in all other cases.
Equal Flag = ON if bit N is 0 in all 16 words D to D+15 after execution.
OFF in all other cases.
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).
0
00001110001 00001
15 00
D
11010010011 10001
D+1
00011011001 00111
D+2
.
.
.
.
.
.
.
.
.
.
0 1 1 1 0 0 0 1 100 0 1 0 10
D+15
10000011000 00111
D+3
0 1 1
S
1
15 00
. . . . . .
.
.
.
Bit Bit
Bi
Bit Bit
S: D200
D: D100
D101
D102
D115
0.00
D200
D100

Table of Contents

Related product manuals