
285
Sample Programs
Appendix F
ASCII Unit Processing as PC Coprocessor
Ladder Program
Basic Program
100 ON PC 1 GOSUB *PINT
110 PC ON
:
:
200 *PINT
210 PC EGET #0,2,”2I4”; A,B
220 C%=A+B
230 PC EPUT #0,1,”I4”; C%
240 RETURN
Execution
command
ASCII Busy Flag
Execution
command
PC Interrupt Subroutine
Completed Flag
DM 1006 = 0010
DM 1007 = 0050
Inputting data to ASCII Unit
2 words of data beginning with DM 0000 are transferred to the leading address
+00 of the IOWR Area in the shared memory of the ASCII Unit of Unit No. 0
PC interrupt No.
Interrupt No. 0 (same No. as the ON PC command)
PC interrupt
Interrupt from the CPU Unit to the ASCII Unit
(interrupt No. as the ON PC command)
PC interrupt subroutine completion check
Processing result
00100
00101
10501
10500
@IOWR
#0000
D0000
#0002
@IOWR
#CC00
000
#0001
IORD
#0000
#0001
D0100
MOV
#0001
000
DIFU
00100
DIFD
00101
PC Interrupt Failed Flag
10509
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...