Omron SYSMAC C200H-ASC02 Operation Manual page 98

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

Example Programs
Example 12
PC Program
Start
Example 13
1
DM0000
Lot size
Purpose:
To print PC data and the time of data transfer
10300
MOV
#0002
ASCII busy
101
MOV
#0100
102
10001
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
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.
2
DM0010
Lot size
DM0011
Lot size
ASCII Unit Program
10
OPEN #2,"LPRT:(47)"
20
PC READ "2I4";D1,D2
30
PRINT #2,"DATA1 = ";D1,
"DATA2=";D2,"TIME= ";TIME$
40
GOTO 20
WRITE flag
DATA2 = 9876
TIME = 13:45:03
DATA2 = 12
TIME = I4:02:51
Section 6-1
2
DM0100
Lot size
DM0101
Lot size
DM0102
Lot size
89

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents