7.5 Data Processing Instructions
7.5.5 7-segment decode
7-69
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
SEG
SEG
7.5.5
7-segment decode
SEG
Function
(1) Decodes the data from 0 to F specified for the lower 4 bits of
to 7-segment display data,
and stores to
.
(2) If
is a bit device, indicates the start number of the devices storing the 7-segment display
data, and if it is a word device, indicates the number of the device storing the data.
SEG(P)
P: Executing condition
:
indicates any of the following
instructions.
SEG
SEGP
Input argument,
EN:
Executing condition
:Bit
s:
Decoding data, or start number of the device that stores
decoding data
:ANY16
Output argument,
ENO:
Execution result
:Bit
d:
Start number of the device that stores the decoding result
:ANY16
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
−
−
−
Universal
UD
High
Performance
Structured ladder
ST
SEG
EN
ENO
s
d
SEG
(EN,
s
, d);
ENO:=
s
d
s
d
d
Y4F
0 0 1 0 0 1 1 1
8
po
i
nts
Y48
A
fter
execut
i
on
Before
execut
i
on
b15
0 0 0 0 0 0 0 0
b8
B
i
t
d
ev
i
ce
W
or
d d
ev
i
ce
0 0 1 0 0 1 1 1
b7
b0
D
8
7-
segment
di
sp
l
a
y d
ata
are
store
d i
n
l
o
w
er
8 bi
ts
.
Upper
8 bi
ts
are
a
lw
a
y
s
f
ill
e
d wi
th
0
s
.
SEG
EN ENO
s
d
K2Y48
7
SEG
EN ENO
s
d
D
8
7
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......