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

Programmable controllers; inner boards
Table of Contents

Advertisement

Advanced I/O Instructions

Example
00000

5-31 Advanced I/O Instructions

5-31-1 7-SEGMENT DISPLAY OUTPUT – 7SEG(88)
Limitations
Description
424
The port specifier was not 1 or 2.
PMCR(––) executes communications sequence 101 when IR 00000 is ON
and SR 20708 (the Port 1 Protocol Macro Executing Flag) is OFF. DM 0100
contains 0003, so the next two words (DM 0101 and DM 0102) are used as
the send data.
Received data is stored in the range of words beginning at DM 0201 and the
number of words received is automatically written to DM 0200 (the first
receive word.)
Note The symbol read option, R( ), in the send message, or the symbol write
option, W( ), actually sends/receives data.
20708
PMCR
#1101
DM 0100
DM 0200
DM 0100
DM 0101
DM 0102
2 words
DM 0200
DM 0201
1 word
Ladder Symbols
7SEG(88)
S
O
C
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.
Address Instruction
00200
LD
00201
AND NOT
00202
PMCR(−−)
Communications sequence number (101)
Port specifier
(1:Port 1 of the Serial Communications Board)
R(1),2: 2 bytes sent
Used as
from DM 0101
send area
Received
W(1),2: 2 bytes received
data
starting from DM 0201
Operand Data Areas
S: First source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
O: Output word
IR, SR, AR, HR, LR,TIM/CNT, DM, EM
C: Control data
Section 5-31
Operands
00000
20708
#
1101
DM
0100
DM
0200
Sent
Received
000 to 007

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents