7-Segment Decoder: Sdec(112) - Omron CVM1D Operation Manual

Hide thumbs Also See for CVM1D:
Table of Contents

Advertisement

Conversion Instructions
Example
0000
00
0010
01000
:
01011
01012
: :
01015
0015
001500
001501
001502
: :
: :
001515

5-17-10 7-SEGMENT DECODER: SDEC(112)

Ladder Symbol
(112)
SDEC
S
Variations
j SDEC(112)
Description
When CIO 000000 is ON in the following example, the bit positions of the highest
ON bits in CIO 0010 and 0011 are written to the first two digits of CIO 0020 and
the bit positions of the highest ON bits in CIO 0015 and CIO 0016 are written to
the last two digits of 0020.
(111)
DMPX
0010
0020
#0010
(111)
DMPX
0015
0020
#0012
0011
01100
:
1
01109
1
0
01110
0
:
: :
:
0
01115
0
0016
001600
1
:
0
001608
1
:
001609
0
:
: :
:
0
001615
0
Operand Data Areas
S: Source word
Di
D
Di: Digit designator
D: 1
When the execution condition is OFF, SDEC(112) is not executed. When the
execution condition is ON, SDEC(112) converts the designated digit(s) of S into
an 8-bit, 7-segment display code and places it into the destination word(s) be-
ginning 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.
0020
B
Digit 0
9
Digit 1
1
Digit 2
8
Digit 3
CIO, G, A, T, C, DM, DR, IR
CIO, G, A, T, C, #, DM, DR, IR
st
destination word CIO, G, A, DM
Section 5-17
Address Instruction
Operands
00000
LD
000000
00001
DMPX(111)
#0010
00002
DMPX(111)
#0012
0010
0020
0015
0020
219

Advertisement

Table of Contents
loading

Table of Contents