Omron SYSMAC C200H-ASC02 Operation Manual page 102

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

Advertisement

Example Programs
Example 18
PC Program Using the READ Instruction
Start
01000
04000
04002
04001
04001
14001
14308
04002
04002
04004
04003
04003
14001
14308
04005
04006
Purpose:
In this example, the PC initiates the transfer of ASCII data from
the PC to the ASCII Unit on the Remote I/O Unit.
DIFU(13)
04000
04001
(1)
14308
04002
MOV(21)
#0010
140
04005
MOV(21)
#0000
140
04003
14308
04004
(3)
MOV(21)
#0005
141
MOV(21)
#0200
142
04006
(1) (3)
14001
ASCII Unit Program
10 PC PUT 0
20 ON PC 1 GOSUB 100
30 PC 1 ON
40 GOTO 40
100 PC PUT 1
110 FOR I = 1 TO 50: NEXT 1
120 PC READ "514"; A1, A2, A3, A4, A5
130 PRINT A1, A2, A3, A4, A5
140 PC PUT 0
150 RETURN
Note: The time required to complete the
110 PC PUT transfer and to turn
OFF the WRITE flag must be ad-
justed according to the PC scan
time and remote scan time.
Section 6-1
93

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents