
283
Appendix F
Sample Programs
1) Transferring PC Data from the ASCII Unit
Ladder Program
Basic Program
100 PC WRITE “5I4”; A,B,C,D,E
The 5 words of data starting with the first transfer word DM 0000 are read as BCD data and stored (read) in the
5 variables A, B, C, D, E.
2) Transferring PC Data from the PC to the ASCII Unit
Ladder Program
A ladder program is not required.
Basic Program
100 PC READ “@D,0,5,5I4”; A,B,C,D,E
Five words of data starting with DM 0000 from the CPU Unit are read as BCD data and each fourth digit (16-
bit) of data are stored (read) in the 5 variables A, B, C, D, E.
3) Transferring ASCII Unit Data from the ASCII Unit to the PC
Ladder Program
Basic Program
100 PC WRITE “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 above first transfer word (DM 0010).
ASCII Busy
Flag
No. of transfer words
DM Area: 5 words
First transfer word
DM 0000
Execution
command
Write Bit
MOV
#0005
103
10001
MOV
#0000
104
(PC READ)
Execution com-
mand
ASCII Busy Flag
Read Bit
No. of transfer words
DM Area: 3 words
First transfer word
DM 0010
MOV
#0010
104
MOV
#0003
103
10500
10002
(PC WRITE)
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...