![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429096.webp)
87
10
OPEN #2,“LPRT:(47)”
20
PC READ “2I4” ;X,Y
30
PC GET I, J
40
IF J = 1 THEN GOTO 100
50
IF J = 2 THEN GOTO 200
60
GOTO 30
100
PRINT #2,“DATA1 = “;X
200
PRINT #2,“DATA2 = “;Y
MOV
#0002
101
10001
MOV
#0000
102
PC Program
ASCII Unit Program
10300
ASCII busy
WRITE flag
MOV
#0100
100
MOV
#0200
100
SW1
Start
SW1
Remarks:
Two lot size areas, stored in PC DM words 0000 and 0001, are retrieved and
printed.
Connect the printer to port 2 and set the baud rate to 4,800 bps.
Example 11
Purpose:
To use PC interrupts to direct execution of the ASCII Unit
Example Programs
Section 6-1
Summary of Contents for SYSMAC C200H-ASC02
Page 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Page 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Page 122: ...Appendix B Specifications 115 130 35 100 5 ...
Page 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...