Omron CS1G/H-CPUxxH Instructions Manual page 467

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Conversion Instructions
Description
446
Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
EM Area without bank
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
DMPX(077) can perform 16-to-4 bit or 256-to-8 bit conversions. Set the left-
most digit of C to 0 to specify 16-to-4 bit conversion and set it to 1 to specify
256-to-8 bit conversion.
16-to-4 bit Conversion
When the fourth (leftmost) digit of C is 0, DMPX(077) finds the locations of the
leftmost or rightmost ON bits in up to 4 source words and writes these loca-
tions to R beginning with the specified digit. (Set the third digit of C to 0 to find
the leftmost ON bits or 1 to find the rightmost ON bits.)
FInds leftmost bit
(Highest bit address)
16-to-4 bit decoding
(Location of leftmost bit (m) is
written to R.)
R
When two or more digits are being converted, DMPX(077) will write the values
to the digits in R from right to left and will wrap around to the rightmost digit
after the leftmost digit, if necessary.
S
H000 to H511
A000 to A959
A448 to A959
T0000 to T4095
C0000 to C4095
D00000 to D32767
E00000 to E32767
En_00000 to En_32767
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
---
---
---
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
C
m
Leftmost bit
n=2 (Start with digit 2.)
Section 3-12
R
C
A000 to A959
Specified values
only
l=1 (Convert
2 words.)

Advertisement

Table of Contents
loading

Table of Contents