79
SECTION 6
Program Examples
This section presents examples of data transfer routines written for both the PC and the ASCII Unit. In some cases, both
a PC and an ASCII Unit Program are necessary for data transfer. In other cases only an ASCII Unit Program is necessary.
Both PC and ASCII Unit Programs necessary:
•
Whenever the PC PUT or PC GET statements are used.
•
Whenever the PC READ and PC WRITE statements are used without the Memory Area Designator (@).
Only ASCII Unit Program is necessary:
•
Whenever the PC READ and PC WRITE statements are used with the Memory Area Designator (@).
In some of the program examples, there are two versions of the ASCII Unit Program; one runs in conjunction with a PC
data transfer routine and the other runs independently of a PC program.
The purpose of the second part of this section is to give a step-by-step explanation of what the ASCII Unit and PC are
doing during execution of their respective programs. This is presented under the heading “execution sequence.”
The last part of this section presents an Assembly Language program example.
Refer to Appendix G Reference Tables for a table listing all the program examples and their page numbers.
6-1
Example Programs
80
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2
Execution Sequence
94
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3
Assembly Language Example
102
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Summary of Contents for SYSMAC C200H-ASC02
Page 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Page 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Page 122: ...Appendix B Specifications 115 130 35 100 5 ...
Page 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...