Advanced I/O Instructions; 7-Segment Display Output - 7Seg(88) - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Advanced I/O Instructions

5-28 Advanced I/O Instructions

5-28-1 7-SEGMENT DISPLAY OUTPUT – 7SEG(88)
Limitations
Description
Flags
354
Ladder Symbols
7SEG(88)
S
O
C
This instruction is available in the CQM1 only.
Do not use 7SEG(88) more than twice in the program.
When the execution condition is OFF, 7SEG(88) is not executed. When the
execution condition is ON, 7SEG(88) reads the source data (either 4 or 8-
digit), converts it to 7-segment display data, and outputs that data to the 7-
segment display connected to the output indicated by O.
The value of C indicates the number of digits of source data and the logic for
the Input and Output Units, as shown in the following table.
Source data
Display's data input logic
4 digits (S)
Same as Output Unit
Different from Output Unit
8 digits
Same as Output Unit
(S, S+1)
Different from Output Unit
If there are 8 digits of source data, they are placed in S and S+1, with the
most significant digits placed in S+1. If there are 4 digits of source data, they
are placed in S.
7SEG(88) displays the 4 or 8-digit data in 12 cycles, and then starts over and
continues displaying the data.
Refer to page 127 for more information on 7SEG(88) and its applications.
ER:
S and S+1 are not in the same data area. (When set to display 8-digit
data.)
Indirectly addressed DM word is non-existent. (Content of *DM word
is not BCD, or the DM area boundary has been exceeded.)
There is an error in operand settings.
SR 25409:
ON while 7SEG(88) is being executed.
Section 5-28
Operand Data Areas
S: First source word
IR, SR, AR, DM, HR, TC, LR
O: Output word
IR, SR, AR, HR, LR,TC, DM
C: Control data
000 to 007
Display's latch input logic
Same as Output Unit
Different from Output Unit
Same as Output Unit
Different from Output Unit
Same as Output Unit
Different from Output Unit
Same as Output Unit
Different from Output Unit
C
0000
0001
0002
0003
0004
0005
0006
0007

Advertisement

Table of Contents
loading

Table of Contents