89
Example 15
Purpose:
To transfer data from the ASCII Unit to the PC with the PC
maintaining control.
TIM 000
#0005
PC Program
ASCII Unit Program
DIFU(13/013) 3500
Start Input
3500
3501
3501
READ(88/190)
#0005
DM100
3501
3502
Equals Flag
3502
3501
0009
01
TIM000
0009
100 PC GET I, J
110 K = J AND 2
120 IF K <> 2 THEN GOTO 100
130 PC WRITE “5I4” ; A1, A2, A3, A4,
A5
Execution Sequence:
1. PC:
The self-holding bit (3501) is set on the leading edge of the
Start Input signal.
2. PC:
Turns ON bit 0009 for 0.5 seconds with the TIM command
after the self-holding bit has been turned ON.
3. PC:
Executes READ(88/190)
4. PC:
Turns ON the Equals Flag after READ(88/190) has been
executed and then turns OFF the self-holding bit (3501).
5. ASCII:
Monitors the setting of bit 0009 at lines 100 to 120.
6. ASCII:
Executes the PC WRITE statement.
Example 16
Purpose:
To process data with the ASCII Unit
Remarks:
This program transfers 10 words of data from the PC to the ASCII Unit (starting
from PC DM 100) each time bit 1000 is turned ON. The ASCII Unit performs
some calculations with the data and the results are sent back to the PC and
stored in DM 200 to 214.
Programs in Two-word Mode
Содержание C500-ASC04
Страница 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Страница 5: ...iv ...
Страница 7: ...vi ...