Specifications
SIMATIC Instructions
9-133
S7-200 Programmable Controller System Manual
C79000-G7076-C233-01
Segment
The Segment instruction uses the character specified by
IN to generate a bit pattern (OUT) that illuminates the
segments of a seven-segment display. The illuminated
segments represent the character in the least significant
digit of the input byte (IN).
Error conditions that set ENO = 0: SM4.3 (run-time),
0006 (indirect address)
Figure 9-45 shows the seven segment display coding
used by the Segment instruction.
Inputs/Outputs Operands Data Types
IN VB, IB, QB, MB, SMB, LB, AC, Constant, *VD, *AC, SB, *LD BYTE
OUT VB, IB, QB, MB, SMB, LB, AC, *VD, *AC, SB, *LD BYTE
0 0 0 1 1 1 1 1 1
(IN)
LSD
Segment
Display
(OUT)
8 0 1 1 1 1 1 1 1
(IN)
LSD
Segment
Display
1 0 0 0 0 0 1 1 0
9 0 1 1 0 0 1 1 1
2 0 1 0 1 1 0 1 1
A 0 1 1 1 0 1 1 1
3 0 1 0 0 1 1 1 1
B 0 1 1 1 1 1 0 0
4 0 1 1 0 0 1 1 0
C 0 0 1 1 1 0 0 1
5 0 1 1 0 1 1 0 1
D 0 1 0 1 1 1 1 0
6 0 1 1 1 1 1 0 1
E 0 1 1 1 1 0 0 1
7 0 0 0 0 0 1 1 1
F 0 1 1 1 0 0 0 1
(OUT)
- g f e d c b a- g f e d c b a
a
b
c
d
e
f
g
Figure 9-45 Seven Segment Display Coding
L
A
D
SEG
EN
IN OUT
F
B
D
ENO
S
T
L
SEG IN, OUT
222 224
333
221