91
13.PC:
Turns ON the Equals Flag after execution of
READ(88/190) has been completed and then turns OFF
the self-holding bit.
Example 17
Purpose:
To transfer data input through the ASCII Unit keyboard to
the PC and then back to the ASCII Unit after computations
have been performed by the PC.
PC Program
ASCII Unit Program
100 INPUT A1, A2, A3
110 PC PUT 1
120 PC WRITE “3I4” ; A1, A2, A3
130 PC READ “4I4” ; B1, B2, B3, B4
140 PC PUT 0
150 PRINT B1, B2, B3, B4
160 GOTO 100
DIFU(13/013) 3200
Start Input
3200
3201
3201
READ(88/190)
#0003
DM100
0008
3202
3201
3202
01
3203
3202
WRIT(87/191)
#0004
DM200
00
3203
6306
Equals Flag
3202
3202
Processing
6306
Equals
Flag
Execution Sequence:
1. ASCII:
Excepts input from the keyboard at line 100.
2. ASCII:
Turns ON bit 0108 with the PC PUT 1 statement and then
writes the entered data to the PC at line 120.
3. PC:
Detects the positive-edge transition of bit 0108 and then
turns ON the self-holding bit (3201).
4. PC:
Executes READ(88/190) after bit 3201 is turned ON and
reads data written from the ASCII Unit. The data is then
transferred to DM 100 through 102.
5. PC:
Turns ON the Equals Flag after execution of
READ(88/190) has been completed. The self-holding bit
(3201) is turned ON and the self-holding bit (3202) is turned
OFF.
6. PC:
Executes WRIT(87/191) after data processing has been
completed and bit 3202 is turned ON. The data is then
transferred to the ASCII Unit.
Programs in Two-word Mode
Содержание C500-ASC04
Страница 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Страница 5: ...iv ...
Страница 7: ...vi ...