424
Advanced I/O Instructions
Section 5-31
The port specifier was not 1 or 2.
Example
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.
5-31 Advanced I/O Instructions
5-31-1 7-SEGMENT DISPLAY OUTPUT – 7SEG(88)
Limitations
Do not use 7SEG(88) more than twice in the program.
Description
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.
00200
LD
00000
00201
AND NOT
20708
00202
PMCR(
−−
)
#
1101
DM
0100
DM
0200
Address Instruction
Operands
PMCR
#1101
DM 0200
00000
20708
DM 0100
Communications sequence number (101)
Port specifier
(1:Port 1 of the Serial Communications Board)
2 words
1 word
Used as
send area
Received
data
Sent
Received
R(1),2: 2 bytes sent
from DM 0101
W(1),2: 2 bytes received
starting from DM 0201
DM 0100
DM 0101
DM 0102
DM 0200
DM 0201
S
:
First source word
IR, SR, AR, DM, EM, HR, TIM/CNT, LR
Ladder Symbols
Operand Data Areas
7SEG(88)
S
O
C
C
:
Control data
000 to 007
O
:
Output word
IR, SR, AR, HR, LR,TIM/CNT, DM, EM
Содержание SYSMAC CQM1H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ......
Страница 11: ......
Страница 15: ...xvi...
Страница 87: ...62 Calculating with Signed Binary Data Section 1 7...
Страница 169: ...144 Serial Communications Board Section 2 6...
Страница 537: ......
Страница 565: ......
Страница 569: ......
Страница 573: ......
Страница 577: ......