Basic I/O Unit Instructions
Precautions
Example
3-22-7 7-SEGMENT DISPLAY OUTPUT – 7SEG(214)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
790
Do not read or write the system word (C) from any other instruction.
MTR(213) will not operate correctly if the system word is accessed by another
instruction. The system word is not initialized by MTR(213) in the first cycle
when program execution starts. If MTR(213) is being used from the first cycle,
clear the system word from the program.
MTR(213) will not operate correctly if I/O refreshing is not performed with the
Input Unit and Output Unit connected to the external matrix after MTR(213) is
executed. Consequently, do not connect the external matrix to the following
Units.
• Communications Slaves (DeviceNet or CompoBus/S Slaves)
In this example, MTR(213) reads the 64 bits of data from the 8
stores the data in W0 to W3. The 8
CIO 102. D32000 is used as the system word.
P_On
Always ON Flag
Converts the source data (either 4-digit or 8-digit BCD) to 7-segment display
data, and outputs that data to the specified output word.
7SEG(214)
S
S: Source word
O: Output word
O
C: Control data
C
D
D: System word
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
Not allowed
OK
8 matrix is connected through CIO 2 and
MTR(213)
I
2
O
102
W0
D
D32000
C
Step program areas
Subroutines
OK
Section 3-22
8 matrix and
7SEG(214)
Not supported.
Not supported.
Interrupt tasks
Not allowed
Need help?
Do you have a question about the CP - PROGRAMMING MANUAL 05-2007 and is the answer not in the manual?
Questions and answers