99
Execution Sequence:
1, 2, 3... 1.
PC: The self-holding circuit (04001) is set on the leading edge of the
start statement pulse. The PC then sets an interrupt number and sets
the WRITE flag (10001).
2.
ASCII: Branches to an interrupt routine (statements 100 to 120) after the
interrupt is enabled by the ON PC statement and then reads the data
with the PC READ “@...” statement.
3.
PC: Changes the interrupt number to 0 to disable further interrupts after
all the data has been transferred to the ASCII Unit (i.e. when the ASCII
busy flag (10300) has been cleared).
Example 4a
Purpose:
To transfer data from the ASCII Unit to the PC with the PC main-
taining control
10
ON PC 2 GOSUB 100
20
PC 2 ON
30
(ordinary processing)
40
GOTO 30
100
PC WRITE “@D,400,5,5I4,”;A1,A2,A3,A4,A5
110
PRINT A1,A2,A3,A4,A5
120
RETURN
MOV
#0020
100
10001
MOV
#0000
100
PC Program
ASCII Unit Program
10300
04002
04001
DIFU 04000
Start
04000
04001
04001
10001
10300
04002
04002
3
1
2
Execution Sequence:
1, 2, 3... 1.
PC: The self-holding circuit (04001) is set on the leading edge of the
start statement pulse. The PC then sets an interrupt number and sets
the WRITE flag (10001).
2.
ASCII: Branches to an interrupt routine (statements 100 to 120) after the
interrupt has been enabled by the ON PC statement and then writes
data to the PC with the PC WRITE “@...” statement.
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 ...