Conversion Instructions
00000
IR 010
01000
:
01011
01012
: :
01015
LR 10
LR 1000
LR 1001 1
LR 1002 0
: :
: :
5-20-7 7-SEGMENT DECODER – SDEC(78)
Limitations
Description
298
IR 011
01100
:
1
01109
1
0
01110
0
:
: :
:
0
01115
0
LR 11
LR 1100
:
LR 1108 1
:
LR 1109 0
:
: :
:
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
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
Address Instruction
DMPX(77)
00000
010
00001
HR 10
#0010
DMPX(77)
00002
LR 10
HR 10
#0012
HR 10
B
Digit 0
9
Digit 1
1
Digit 2
8
Digit 3
Operand Data Areas
S: Source word (binary)
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
S
IR, SR, AR, DM, EM, HR, TIM/CNT, LR, #
Di
D: First destination word
D
IR, SR, AR, DM, EM, HR, LR
Section 5-20
Operands
LD
00000
DMPX(77)
010
HR
#
0010
DMPX(77)
LR
HR
#
0012
Di: Digit designator
10
10
10
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?