![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429100.webp)
91
110
OPEN #2,“COMU:”
120
ON COM1 GOSUB 1000
130
ON COM2 GOSUB 2000
I40
COM1 ON:COM2 ON
150
GOTO 150
1000
A = LOC(1)
1010
IF A<>0 THEN
A$ = A$+INPUT$(A,#1)
1020 RETURN
2000
B = LOC(2)
2010
IF B<>0 THEN
B$ = B$+INPUT$(B,#2)
2020 RETURN
Example 16
Purpose:
To initiate data transfer with the START switch using the WAIT
statement
MOV
#0005
101
10001
MOV
#0000
102
PC Program
ASCII Unit Program
Start
10300
ASCII busy
WRITE flag
100
PRINT “START”
110
WAIT “10:00.0”,1000
120
PC READ “5I4”;A,B,C,D,E
130
PRINT A,B,C,D,E
I40
END
1000
PRINT “ERROR READY? Y/N”
1010
F$ = INKEY$
1020
IF F$ = “Y” THEN 100
1030
IF F$ = “N” THEN END
ELSE 1010
Remarks:
Pressing the PC START switch will cause specified PC data to be transferred
to the ASCII Unit and displayed on the monitor. When the program is ex-
ecuted the message “Ready” will be displayed on the screen. If the START
switch is not pressed within ten minutes, an error message will be displayed.
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 ...