
83
Example 8
Purpose: To retrieve and print several types of data from the PC us-
ing the PC GET statement and WRIT(87/191)
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
PC Program
ASCII Unit Program
MOV(21/030)
#0100
00
SW1
MOV(21/030)
#0200
00
SW1
Start
3200
Equals Flag
WRIT(87/191)
#0002
DM000
00
Start
3200
3200
Remarks:
The two MOV(21/030) instructions place the data in the memory locations that
will be read by the PC READ statement. After the MOV(21/030) instructions are
executed, the Start flag is turned ON and WRIT(87/191) is executed.
Two lot size areas, stored in PC DM 000 and 001, are retrieved and printed.
Programs in Two-word Mode
Summary of Contents for C500-ASC04
Page 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Page 5: ...iv ...
Page 7: ...vi ...