![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429107.webp)
98
Execution Sequence:
1, 2, 3... 1.
PC: The self-holding circuit is set on the positive edge transition of bit
04001. An interrupt number is then generated for execution of the ON
PC 1 GOSUB statement, and the WRITE flag (10001) is set.
2.
ASCII: Branches to an interrupt service routine (statements 100 to 120)
when the interrupt from the PC is enabled by the ON PC statement, and
then waits until the PC READ statement is processed by the PC.
3.
PC: Sets interrupt number 0 when the interrupt enabled by the ON PC
statement is being processed (i.e., when the ASCII busy flag (10300)
has been set) and disables all other interrupts. Also specifies the PC
READ parameters, sets the WRITE flag (10001), and initiates process-
ing of the PC READ statement.
4.
ASCII: Executes the PC READ statement on direction from the PC and
displays the data. Processing then returns to the main routine and the
ASCII Unit waits for the next interrupt.
5.
PC: Returns to its initial status after execution of the PC READ state-
ment (i.e. when the ASCII busy flag (10300) has been cleared).
Example 3b
Purpose:
To transfer data from the PC to the ASCII Unit with the PC main-
taining control
10
ON PC 1 GOSUB 100
20
PC 1 ON
30
(ordinary processing)
90
GOTO 30
100
PC READ “@D,200,5,5I4,”;A1,A2,A3,A4,A5
110
PRINT A1,A2,A3,A4,A5
120
RETURN
MOV
#0010
100
10001
MOV
#0000
100
PC Program
ASCII Unit Program
10300
04002
04001
DIFU 04000
Start
04000
04001
04001
10001
10300
04002
04002
2
1
3
Execution Sequence
Section 6-2
Содержание SYSMAC C200H-ASC02
Страница 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Страница 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Страница 122: ...Appendix B Specifications 115 130 35 100 5 ...
Страница 167: ...Cat No W165 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor ...
Страница 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...