![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429098.webp)
89
DM0000
DM0010
DM0011
DM0100
DM0101
DM0102
1
2
2
Lot size
Lot size
Lot size
Lot size
Lot size
Lot size
Example 12
Purpose:
To print PC data and the time of data transfer
MOV
#0002
101
10001
MOV
#0100
102
PC Program
ASCII Unit Program
Start
10300
ASCII busy
WRITE flag
10
OPEN #2,“LPRT:(47)”
20
PC READ “2I4”;D1,D2
30
PRINT #2,“DATA1 = “;D1,
“DATA2=“;D2,”TIME= “;TIME$
40
GOTO 20
Remarks:
PC data and the time of transfer are output to a printer connected to port 2 of
the ASCII Unit. The PC read statement is used to obtain the data from the
PC.
Output:
DATA1 = 5678
DATA1 = 3249
DATA2 = 9876
DATA2 = 12
TIME = 13:45:03
TIME = I4:02:51
Example 13
Purpose:
To display the state of PC bit 1000 on a display device con-
nected to port 2
•
This example does not require a PC data transfer routine.
Example Programs
Section 6-1
Содержание 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 ...