![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030542.webp)
502
Conversion Instructions
Section 3-12
Description
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.)
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.
The following diagram shows some example values for C and the 16-to-4 bit
conversions that they produce.
R
m
C
Leftmost bit
n=2 (Start with digit 2.)
l
=
1 (Convert
2 words.)
FInds leftmost bit
(Highest bit address)
16-to-4 bit decoding
(Location of leftmost bit (m)
is written to R.)
C: #0032
C: #0011
C: #0030
C: #0013
R
R
R
R
Digit 1
Digit 3
Digit 1
Digit 3
Digit 1
Digit 3
Digit 1
Digit 3
Digit 2
Digit 0
Digit 2
Digit 0
Digit 2
Digit 0
Digit 2
Digit 0
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...