![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h-asc02/sysmac-c200h-asc02_operation-manual_742429103.webp)
94
6-2
Execution Sequence
This section presents several additional programs with the emphasis on ex-
plaining the actions of the PC and the ASCII Unit during execution of their
respective programs.
Example 1a
Purpose:
To transfer data from the PC to the ASCII Unit with the ASCII
Unit maintaining control
MOV
#0005
101
10001
MOV
#0100
102
PC Program
ASCII Unit Program
10300
04002
04001
DIFU 04000
10308
04000
04001
04001
10001
10300
04002
100
PC PUT 1
110
PC READ “5I4”;A1, A2, A3, A4, A5
120
PC PUT 0
130
PRINT A1, A2, A3, A4, A5
1
2/5
7
8
3
4
Execution Sequence:
1, 2, 3... 1.
ASCII: The PC PUT 1 statement sets bit 10308
2.
ASCII: Executes the PC READ statement
3.
PC: The self-holding circuit is set on the positive edge transition of bit
10308.
4.
PC: Sets the transfer base word number and the number of words to be
transferred to the ASCII Unit when contact 04001 is set and sends the
data to the ASCII Unit when the WRITE flag (10001) is set.
5.
ASCII: Sets the BUSY flag (10300) when the data has been received.
6.
PC: Clears the WRITE flag when the BUSY flag is set and the ASCII
Unit starts transferring the data. It also clears the self-holding circuit
(04001).
Execution Sequence
Section 6-2
Содержание 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 ...