![background image](http://html1.mh-extra.com/html/omron/c500-asc04/c500-asc04_operation-manual_743033096.webp)
86
Equals Flag
To next process
PC Program
ASCII Unit Program
READ(88/190)
#0005
DM000
10 OPEN #2, “COMU:(22)”
20 A$ = INPUT$ (1, #2)
30 IF A$ = CHR$(2) GOTO 50
40 GOTO 20
50 B$ = INPUT$(11, #2)
60 IF CHR$(3) = RIGHT$ (B$, 1)
THEN B$ = MID$(B$, 1, 10)
ELSE GOTO 20
70 PC WRITE “5A3” ; B$
80 GOTO 20
DM000
DM001
Data 1
Data 3
DM002
DM003
Data 5
Data 7
DM004
Data 9
Data 2
Data 4
Data 6
Data 8
Data 10
01
Number of words to be transferred
First word to transfer
Destination word address
#0005:
01:
DM000:
Example 12
Purpose:
To transfer data from the PC to the ASCII Unit with the
ASCII Unit maintaining control
PC Program
ASCII Unit Program
DIFU(13/013) 3200
0108
3200
3201
3201
100 PC PUT 1
110 PC READ “5I4” ; A1, A2, A3, A4, A5
120 PC PUT 0
130 PRINT A1, A2, A3, A4, A5
WRIT(87/191)
#0005
DM100
00
3201
3202
Equals Flag
3202
Execution Sequence:
1. ASCII:
The PC PUT 1 statement turns ON bit 0108
2. PC:
The self-holding bit (3201) is set on the positive edge tran-
sition of bit 0108.
3. PC:
WRIT(87/191) is executed.
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 ...