Time Processing - Omron C200H-ASC11 Manual

Ascii units
Hide thumbs Also See for C200H-ASC11:
Table of Contents

Advertisement

Time Processing

5-4

Time Processing

Process
Storing a time in T$ (HH:MM:SS)
Storing hours in H$ (HH)
Storing minutes and seconds in MS$ (MM:SS)
Executing
Using TIME$ interrupt, interrupt
process A at
subroutine is executed every
fixed intervals
minute (HH:MM:00) when the
seconds equal zero.
Using TIMER interrupt, interrupt
subroutine executes process A
after every sixty seconds.
Standby
If response is not received within
processing
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.
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.
T$ = TIME$
H$ = LEFT$(TIME$, 2) or H$ = MID$(TIME$, 1, 2)
MS$ = MID$(TIME$, 4, 5)
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
Section 5-4
Program
63

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents