Omron SYSMAC C200H-ASC02 Operation Manual page 108

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

Advertisement

Execution Sequence
1, 2, 3... 1.
Example 4a
PC Program
Start
04000
04001
04001
10001
10300
04002
1, 2, 3... 1.
Execution Sequence:
PC: The self-holding circuit (04001) is set on the leading edge of the
start statement pulse. The PC then sets an interrupt number and sets
the WRITE flag (10001).
2.
ASCII: Branches to an interrupt routine (statements 100 to 120) after the
interrupt is enabled by the ON PC statement and then reads the data
with the PC READ "@..." statement.
3.
PC: Changes the interrupt number to 0 to disable further interrupts after
all the data has been transferred to the ASCII Unit (i.e. when the ASCII
busy flag (10300) has been cleared).
Purpose:
To transfer data from the ASCII Unit to the PC with the PC main-
taining control
DIFU 04000
04002
04001
10300
04002
MOV
#0020
100
10001
MOV
#0000
100
Execution Sequence:
PC: The self-holding circuit (04001) is set on the leading edge of the
start statement pulse. The PC then sets an interrupt number and sets
the WRITE flag (10001).
2.
ASCII: Branches to an interrupt routine (statements 100 to 120) after the
interrupt has been enabled by the ON PC statement and then writes
data to the PC with the PC WRITE "@..." statement.
ASCII Unit Program
10
ON PC 2 GOSUB 100
20
PC 2 ON
30
(ordinary processing)
40
GOTO 30
2
100
PC WRITE "@D,400,5,5I4,";A1,A2,A3,A4,A5
110
PRINT A1,A2,A3,A4,A5
1
120
RETURN
3
Section 6-2
99

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents