319
4
4 Instructions 4.12.3 7-segment LED Display
Example:
X10
0
0
1
0
010
10
1
10
b15
00001000
1
1
000000000000
0
b15
Invalid data
7 6 5 4 2 1 0
Ĺ
4
ĸ
ķ
D0
b0
b0
1
2 1
M17 M
16
M
15
M
14
M
13
M
12
M
11
M10
7 6 5 3 2 1 0
00000000000000
b15
D10
b0
Cleared
Cleared
ǒENCOP M10 D10 K3Ǔ
S D n
X11
ǒENCOP D0 D1 K3Ǔ
S D n
0
0
0
ĺ
ĺ
4.12.3 7-segment LED Display
7-segment LED display
SEGD 7-segment decoding
SEGL Seven segment with latch
SEGD: 7-segment decoding
◆
Overview
When driving conditions are met, the lower four bits of S1 are decoded into 7-segment display codes. The
result is stored in the lower eight bits of D1.
SEGD S D
7-segment
decoding
Applicable model:
H3U
S
Data
source
Data source to be decoded (the lower four bits b0 to b3 of
the BIN content are taken)
16-bit instruction (5
steps)
SEGD: Continuous
execution
SEGDP: Pulse
execution
D
Decoding
result
Variable that stores the 7-segment display codes after
decoding
◆
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
Note: The elements in gray background are supported.
◆
Function
The lower four bits of the data source are decoded into 7-segment display codes. The result is stored in the
lower eight bits of the destination variable. Example:
When X20 = ON, the lower four bits of D0 are decoded. The result is output to ports Y10 to Y17.
The following table is used for decoding. The table is provided by the PLC and does not need to be
prepared manually.