
63
Time Processing
Section 5-4
5-4
Time Processing
Note
If a BASIC interrupt occurs during the wait state caused by the WAIT com-
mand, the wait monitor timer will be suspended throughout the time of the
interrupt.
Process
Program
Storing a time in T$ (HH:MM:SS)
T$ = TIME$
Storing hours in H$ (HH)
H$ = LEFT$(TIME$, 2) or H$ = MID$(TIME$, 1, 2)
Storing minutes and seconds in MS$ (MM:SS)
MS$ = MID$(TIME$, 4, 5)
Executing
process A at
fixed intervals
Using TIME$ interrupt, interrupt
subroutine is executed every
minute (HH:MM:00) when the
seconds equal zero.
Using TIMER interrupt, interrupt
subroutine executes process A
after every sixty seconds.
Standby
processing
If response is not received within
three seconds after COMMAND
(C$) transmission, process A is
executed.
If data is not completely trans-
ferred from CPU Unit within ten
seconds after execution of PC
READ, process A is executed.
100 ON TIME$ "**:**:00" GOSUB *A
110 TIME$ ON
500 *A
Process A
100 ON TIMER 600 GOSUB 500
110 TIMER ON
500
Process A
100 PRINT #1, C$
110 WAIT "3.0", 200
120 A$ = INPUT$(1, #1)
200
Process A
100 WAIT "10.0", 200
110 PC READ . . .
200
Process A
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...