
284
Sample Programs
Appendix F
4) Transferring ASCII Unit Data from the ASCII Unit to the PC
Ladder Program
A ladder program is not required.
Basic Program
100 PC WRITE “@D,10,3,3I4”; A,B,C
The 3 variables A, B, and C (4-digit data) is converted to BCD data and transferred (written) to the correspond-
ing 4 digits (16 bits) of 3 words in the CPU Unit, beginning with the first transfer word (DM 0010).
5) Transferring Data Asynchronously from PC to ASCII Unit:
C200HX/HG/HE PCs Only
Ladder Program
Basic Program
100 PC QREAD “@D,0,5,5I4”; A,B,C,D,E
The 5 words of data that were transferred using the IOWR(FD00) command are converted to BCD and stored
in the 5 variables A, B, C, D, E as 4-digit (16-bit) data.
6) Transferring Data Asynchronously from ASCII Unit to PC:
C200HX/HG/HE PCs Only
Ladder Program
Basic Program
100 PC QWRITE “@D,0,3,3I4”; A,B,C
The 3 variables A, B, and C (4-digit data) is converted to BCD data and is ready for transferring to the 3 words
in the CPU Unit, beginning with DM 0000.
IOWR Request Flag
@IOWR
#FD00
D0000
#0005
10515
10500
ASCII Busy Flag
5 words of data beginning with
DM 0000 are transferred (writ-
ten) to the ASCII Unit of Unit
No. 0.
IORD Request Flag
10514
@IORD
#FD00
#0003
D0000
10500
ASCII Busy Flag
3 words of data beginning with
DM 0000 are transferred (read)
from the ASCII Unit of Unit No.
0.
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...