320
4
4 Instructions4.12.3 7-segment LED Display
Internal Decoding Table Value
HEX BIN
7-segment LED
Display Combination
%
%
%
% %
% % %
$
%
&
'
(
)
%
%
%
%
%
%
%
Each bit corresponding
to one segment
1 = Segment ON
0 = Segment OFF
Data
Decoded
Character
SEGL: Seven segment with latch
◆
Overview
The SEGL instruction drives 4- or 8-digit latched 7-segment LED displays by using 8 or 12 Y ports. The
display mode is scan-driven.
SEGL S D n
Seven segment with
latch
Applicable model:
H3U
S Data source
Data to be displayed (The value is converted to a BCD
equivalent before being sent to a 7-segment LED display.)
16-bit instruction
(7 steps)
SEGL:
Continuous
execution
D
Driver port
head address
Head address of Y ports for display driving
n
Related
setting
Setting based on the number of displayed data sets as well
as signal positive and negative logic
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
n X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
Eight or 12 Y ports are used to drive 4- or 8-digit latched 7-segment LED displays. The display mode is scan-driven.
Example: