Mitsubishi Electric MELSEC-Q/L Programming Manual page 430

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• 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.
Before execution
Bit device
SEG K7 K2Y48
Word device
SEG K7
Operation error
• There is no operation error in the SEG(P) instruction.
Program example
• 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]
[Timing Chart]
X0
* 1
Y38 to Y3F
*1: The data Y38 to Y3F will not change until the next data is output.
7 APPLICATION INSTRUCTIONS
428
7.5 Data Processing Instructions
After execution
Y4F
0 0 1 0 0 1 1 1
8 points
b15
D8
0 0 0 0 0 0 0 0
Upper 8 bits are
always filled with 0s.
Y48
D8
b8
b7
b0
0 0 1 0 0 1 1 1
7-segment display data is
stored in lower 8 bits.
[List Mode]
Step
Instruction
Device

Advertisement

Table of Contents
loading

Table of Contents