7-76
SEG(P)
7-segment decode display
Program Example
(1) The following program converts the data from XC to XF to 7-segment display data and
outputs it to Y38 to Y3F when X0 is turned ON.
[Ladder Mode] [List Mode]
[Timing Chart]
Configuration of 7
Segments
Display Data
Hexa-
decimal
Bit Pattern B7 B6 B5 B4 B3 B2 B1 B0
0 0000 00111111
1 0001 00000110
2 0010 01011011
3 0011 01001111
4 0100 01100110
5 0101 01101101
6 0110 01111101
7 0111 00100111
8 1000 01111111
9 1001 01101111
A 1010 01110111
B 1011 01111100
C 1100 00111001
D 1101 01011110
E 1110 01111001
F 1111 01110001
Head number of bit device
Lowest bit of word device
S
D
B0
B6
B3
B
5 B1
B
4B
2
Step
Instruction
Device
X0
Y38 to Y3F
*1: The data Y38 to Y3F will not change until the next data is output.
* 1