7-Segment Decoder - Sdec(78) - Omron SYSMAC C200HS Operation Manual

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

Data Conversion
Example:
16-bit to 4-bit Encoding
00000
IR 010
01000
:
01011
01012
: :
01015
LR 10
LR 1000
LR 1001 1
LR 1002 0
: :
: :
LR 1015 0
5-18-9 7-SEGMENT DECODER – SDEC(78)
Limitations
Description
When 00000 is ON, the following diagram encodes IR words 010 and 011 to the
first two digits of HR 20 and then encodes LR 10 and 11 to the last two digits of
HR 20. Although the status of each source word bit is not shown, it is assumed
that the bit with status 1 (ON) shown is the highest bit that is ON in the word.
IR 011
01100
:
1
01109
1
0
01110
0
:
: :
:
0
01115
0
LR 11
LR 1100
:
LR 1108 1
:
LR 1109 0
:
: :
:
LR 1115 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.
When the execution condition is OFF, SDEC(78) is not executed. When the exe-
cution 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.
Address Instruction
DMPX(77)
00000
LD
010
00001
DMPX(77)
HR 20
#0010
DMPX(77)
00002
DMPX(77)
LR 10
HR 20
#0012
HR 20
B
Digit 0
9
Digit 1
1
Digit 2
8
Digit 3
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
Section 5-18
Operands
00000
010
HR
#
0010
LR
HR
#
0012
S: Source word (binary)
Di: Digit designator
20
10
20
191

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents