![background image](http://html1.mh-extra.com/html/omron/c500-asc04/c500-asc04_operation-manual_743033098.webp)
88
Example 14
Purpose:
To transfer data from the PC to the ASCII Unit with the PC
maintaining control.
10 ON PC 1 GOSUB 100
20 PC 1 ON
90 GOTO 20
100 PC READ SUBROUTINE
110 PC READ “5I4” ; A1, A2, A3, A4, A5
120 PRINT A1, A2, A3, A4, A5
130 RETURN
PC Program
ASCII Unit Program
DIFU(13/013) 3300
Start Input
3300
3301
3301
WRIT(87/191)
#0005
DM200
00
3301
3302
Equals Flag
3302
Execution Sequence:
1. PC:
The self-holding bit (3301) is set on the leading edge of the
start statement signal.
2. PC:
WRIT(87/191) is executed.
3. PC:
When execution of WRIT(87/191) is complete, the Equals
Flag is turned ON and the self-holding bit is turned OFF.
4. ASCII:
When the PC interrupts the ASCII Unit, execution
branches to line 100 of the BASIC program and the data is
read by the PC READ statement.
5. ASCII:
Displays the data and processing returns to line 20 to await
the next interrupt.
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 ...