Conversion Instructions
7-20-7 7-SEGMENT DECODER – SDEC(78)
Limitations
Description
Digit Designator
446
Ladder Symbols
SDEC(78)
@SDEC(78)
S
Di
D
Di must be within the values given below.
All destination words must be in the same data area.
DM 6144 to DM 6655 cannot be used for D.
When the execution condition is OFF, SDEC(78) is not executed. When the
execution condition is ON, SDEC(78) converts the designated digit(s) of S into
the equivalent 8-bit, 7-segment display code and places it into the destination
word(s) beginning with D.
Any or all of the digits in S may be converted in sequence from the designated
first digit. The first digit, the number of digits to be converted, and the half of D to
receive the first 7-segment display code (rightmost or leftmost 8 bits) are desig-
nated in Di. If multiple digits are designated, they will be placed in order starting
from the designated half of D, each requiring two digits. If more digits are desig-
nated than remain in S (counting from the designated first digit), further digits will
be used starting back at the beginning of S.
The digits of Di are set as shown below.
Digit number: 3 2 1 0
Operand Data Areas
IR, SR, AR, DM, HR, TC, LR
S
IR, SR, AR, DM, HR, TC, LR, #
Di
D: First destination word
D
IR, SR, AR, DM, HR, LR
Specifies the first digit of S to be converted (0 to 3).
Number of digits to be converted (0 to 3)
0: 1 digit
1: 2 digits
2: 3 digits
3: 4 digits
First half of D to be used.
0: Rightmost 8 bits (1st half)
1: Leftmost 8 bits (2nd half)
Not used; set to 0.
Section
7-20
S: Source word (binary)
Di: Digit designator
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?