Omron SYSMAC C200H-ASC02 Operation Manual page 109

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

Execution Sequence
Example 4b
PC Program
Start
04000
10009
10009
10002
10300
1, 2, 3... 1.
100
3.
PC: Changes the interrupt number to 0 to disable further interrupts after
the data has been transferred from the ASCII Unit (i.e. when the ASCII
busy flag (10300) has been turned OFF).
Purpose:
To transfer data from the ASCII Unit to the PC with the PC main-
taining control
DIFU 04000
04002
10009
10300
04002
MOV
#0005
101
MOV
#0400
102
10002
Execution Sequence:
PC: The self-holding circuit (10009) is set on the leading edge of the
start statement signal. The WRITE flag is then set to initiate execution of
the PC WRITE statement.
2.
ASCII: Executes the PC WRITE statement
3.
PC: Clears the self-holding bit after the PC WRITE statement has been
executed (i.e. when the ASCII busy flag (10300) has been cleared).
ASCII Unit Program
100
PC GET I,J
110
K=J AND 2
2
120
IF K<>2 THEN 100
130
PC WRITE "5I4";A1,A2,A3,A4,A5
I40
END
3
1
Section 6-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents