![background image](http://html1.mh-extra.com/html/omron/c500-asc04/c500-asc04_operation-manual_743033108.webp)
98
0000
0001
0002
0003
0004
0005
DM0100
(1)
(3)
(5)
(7)
(2)
(4)
(6)
A$ =” (1)(2)(3)(4)(5)(6)(7).......”
Data length
Data
Pointer
First cycle
Second cycle
1 cycle
00315
01000
00302
01001
00102
01002
00101
01003
DM
Indirect designation
Example 8
Purpose: To transfer multi-word data from the PC to the ASCII Unit in
four-word mode by using the PC READ statement continu-
ously.
1, 2, 3...
1. Data transfer from the PC starts when the PC turns ON bit 15 of Wd(n+1),
and continues until the program reaches PC GET.
2. When bit 15 of Wd(n+1) is turned ON, PC READ is executed and the charac-
ter string is continued.
3. The PC is informed of PC READ completion by PC WRITE. From word 2 on,
PC READ and PC WRITE are repeated until bit 15 of Wd(n+1) is turned
OFF.
4. Transfer is complete when bit 15 of Wd(n+1) is turned OFF.
ASCII Unit Program
800 ’
*****
*****
810 ’
***** Reads word-by-word from the PC when four-word mode is set on the
*****
820 ’
***** ASCII Unit. Data read is stored in A$.
*****
830 ’
*****
DM0100 0004
The length of the number of characters
*****
840 ’
*****
DM0101 3132
Data 1 and 2 –––> A$=”1234ABCD”
*****
850 ’
*****
DM0102 3334
Data 3 and 4
*****
860 ’
*****
DM0103 4142
Data 5 and 6
*****
870 ’
*****
DM0104 4344
Data 7 and 8
*****
880 ’
*****
*****
890
A$=” ”
’Initialization of the parameters to be stored.
900
PC GET H, I
’Check bit 15 of Wd(n+1).
910
IF I AND 128 <> 128 GOTO 900
’Transfer start?
920
PC READ ”A3”; B$
’One word read.
930
PC WRITE ”A3”; B$
’Inform the PC of the completion of READ.
940
A$=A$+B$
’Edit read data.
Programs in Four-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 ...