
90
PC Program
ASCII Unit Program
DIFU(13/013) 3200
Start Input
3200
0008
3201
WRIT(87/191)
#0010
DM100
0008
3203
6306
Equals Flag
0108
3200
3201
00
3202
3201
100 PC GET J, K
110 L = K AND 1
120 IF L=1 THEN GOSUB 1000
( other processing )
990 GOTO 100
1000 SUBROUTINE
1010 PC PUT 1
1020 PC READ “10H4” ; A1, A2, . . . . , A10
1030 (computation processing: assigns the
values to B1 through B10 )
1090
1100 PC WRITE “15H4” ; B1, B2, . . . , B15
1110 PC GET J, K
1120 L = K AND 1
1130 IF L = 0 THEN GOTO 1150
1140 GOTO 1110
1150 PC PUT 0
1160 RETURN
3201
3202
3202
READ(88/190)
#0015
DM200
01
3202
6306
Equals
Flag
3203
Execution Sequence:
1. PC:
Detects the positive edge transition of Start Input and turns
ON bit 0008.
2. PC:
Executes WRIT(87/191) when bit 3201 is turned ON.
3. PC:
Turns ON the Equals Flag after the execution of
WRIT(87/191) is completed.
4. ASCII:
Reads the status of bit 0008 with the PC GET statement.
5. ASCII:
If bit 0008 has been turned ON, execution branches to the
subroutine beginning at line 1000.
6. ASCII:
Turns ON bit 0108 with the PC PUT 1 statement at line
1010 and the self-holding bit (0008) is turned OFF.
7. ASCII:
Executes the PC READ statement at line 1020 which as-
signs the PC data to variables A1 through A10.
8. ASCII:
Performs computations on variables A1 through A10 and
assigns the results to B1 through B15.
9. ASCII:
Writes B1 through B15 to the PC at line 1100.
10.ASCII:
Waits for bit 0008 to be cleared at lines 1110 through 1140.
11. ASCII:
Turns OFF bit 0108 with the PC PUT 0 statement at line
1150.
12.PC:
Transfers data written from the ASCII Unit to DM 200
through 214 using the READ(88/190).
Programs in Two-word Mode
Summary of Contents for C500-ASC04
Page 1: ...C500 ASC04 ASCII Unit Operation Manual Revised February 2001 ...
Page 5: ...iv ...
Page 7: ...vi ...