298
Conversion Instructions
Section 5-20
5-20-7 7-SEGMENT DECODER – SDEC(78)
Limitations
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.
Description
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
designated 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
00000
DMPX(77)
010
HR 10
#0010
LR 10
HR 10
#0012
IR 010
01000
:
01011
1
01012
0
: :
:
01015
0
LR 10
LR 1000
LR 1001 1
LR 1002 0
: :
:
: :
:
Digit 0
IR 011
01100
:
01109
1
01110
0
: :
:
01115
0
Digit 1
Digit 2
Digit 3
B
9
1
8
LR 11
LR 1100
:
LR 1108 1
LR 1109 0
: :
:
HR 10
DMPX(77)
Address Instruction
Operands
00000
LD
00000
00001
DMPX(77)
010
HR
10
#
0010
00002
DMPX(77)
LR
10
HR
10
#
0012
S
:
Source word (binary)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Di
:
Digit designator
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Ladder Symbols
Operand Data Areas
D
:
First destination word
IR, SR, AR, DM, EM, HR, LR
SDEC(78)
S
Di
D
@SDEC(78)
S
Di
D