Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 451

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Conversion Instructions
Description
Flags
418
Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
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
=
S
H0 to H511
H0 to H496
A0 to A959
A448 to A944
T0000 to T4095
T0000 to T4080
C0000 to C4095
C0000 to C4080
D0 to D32767
D0 to D32752
@ D0 to @ D32767
*D0 to *D32767
#0000 to #FFFF
---
(binary)
DR0 to DR15
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Bit
00
.
.
.
0 1
1
1
Bi
Bit
00
.
.
.
.
.
.
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.
Section 3-11
D
N
H0 to H511
A0 to A959
T0000 to T4095
C0000 to C4095
D0 to D32767
#0000 to #000F
(binary) or &0 to
&15
DR0 to DR15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents