Omron SYSMAC C200H-ASC02 Operation Manual page 107

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

Advertisement

Execution Sequence
1, 2, 3... 1.
Example 3b
PC Program
Start
04000
04001
04001
10001
10300
04002
98
Execution Sequence:
PC: The self-holding circuit is set on the positive edge transition of bit
04001. An interrupt number is then generated for execution of the ON
PC 1 GOSUB statement, and the WRITE flag (10001) is set.
2.
ASCII: Branches to an interrupt service routine (statements 100 to 120)
when the interrupt from the PC is enabled by the ON PC statement, and
then waits until the PC READ statement is processed by the PC.
3.
PC: Sets interrupt number 0 when the interrupt enabled by the ON PC
statement is being processed (i.e., when the ASCII busy flag (10300)
has been set) and disables all other interrupts. Also specifies the PC
READ parameters, sets the WRITE flag (10001), and initiates process-
ing of the PC READ statement.
4.
ASCII: Executes the PC READ statement on direction from the PC and
displays the data. Processing then returns to the main routine and the
ASCII Unit waits for the next interrupt.
5.
PC: Returns to its initial status after execution of the PC READ state-
ment (i.e. when the ASCII busy flag (10300) has been cleared).
Purpose:
To transfer data from the PC to the ASCII Unit with the PC main-
taining control
DIFU 04000
04002
04001
10300
04002
MOV
#0010
100
10001
MOV
#0000
100
ASCII Unit Program
10
ON PC 1 GOSUB 100
20
PC 1 ON
30
(ordinary processing)
90
GOTO 30
2
100
PC READ "@D,200,5,5I4,";A1,A2,A3,A4,A5
110
PRINT A1,A2,A3,A4,A5
1
120
RETURN
3
Section 6-2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents