428
7 APPLICATION INSTRUCTIONS
7.5 Data Processing Instructions
• If (D) is a bit device, indicates the head number of the devices storing the 7-segment display data; if it is a word device,
indicates the number of the device storing the data.
• There is no operation error in the SEG(P) instruction.
• 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]
Y4F
00100111
8 points
Y48
SEG K7 K2Y48
After execution
Before execution
b15
0000000
0
b8
SEG K7 D8
Bit device
Word device
00
1
00
11
1
b7
b0
D8
7-segment display data is
stored in lower 8 bits.
Upper 8 bits are
always filled with 0s.
X0
Y38 to Y3F
*1: The data Y38 to Y3F will not change until the next data is output.
* 1