![Omron CJ1G-CPUxx Instructions Manual Download Page 850](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491850.webp)
829
Basic I/O Unit Instructions
Section 3-23
Description
SDEC(078) regards the data specified by S as 4-digit hexadecimal data, con-
verts the digits specified in S by Di (first digit and number of digits) to 7-seg-
ment data and outputs the results to D in the bits specified in Di.
Flags
Precautions
If more than one digit is specified for conversion in Di, digits are converted in
order toward the most-significant digit. Digit 0 is the next digit after digit 3.
Results are stored in D in order from the specified portion toward higher-
address words. If just one of the bytes in a destination word receives con-
verted data, the other byte is left unchanged.
Examples
When CIO 000000 turns ON in the following example, the contents of the 3
digits beginning with digit 1 in D00100 will be converted from hexadecimal
data to 7-segment data, and the results will be output to the upper byte of
D00200 and both bytes of D00201. The specifications of the bytes to be con-
verted and the location of the output bytes are made in CIO 0100.
Indirect DM/EM
addresses in binary
@D00000 to @D32767
@E00000 to @E32767
@En_00000 to @En_32767
(n = 0 to C)
Indirect DM/EM
addresses in BCD
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
Constants
---
Specified values
only
---
Data Registers
DR0 to DR15
---
Index Registers
---
Indirect addressing
using Index Registers
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
S
Di
D
Number of digits
First digit to convert
Rightmost 8 bits (0)
Di
7-segment
Name
Label
Operation
Error Flag
ER
ON if settings in Di are not within the specified ranges.
OFF in all other cases.
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...