![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429088.webp)
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
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Содержание SYSMAC C200H-ASC02
Страница 1: ...Cat No W165 E1 04 ASCII Unit SYSMAC C200H ASC02 ...
Страница 2: ...C200H ASC02 ASCII Unit Operation Manual Revised September 2002 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 7: ...TABLE OF CONTENTS viii Glossary 159 Index 163 Revision History 165 ...
Страница 122: ...Appendix B Specifications 115 130 35 100 5 ...
Страница 167: ...Cat No W165 E1 04 Note Specifications subject to change without notice Printed in Japan Authorized Distributor ...
Страница 168: ...Cat No W165 E1 04 C200H ASC02 ASCII Unit OPERATION MANUAL ...