7-
55
TIME
TIME=hh:mm:ss
sets the real time clock in the 5A-1MP. The time is entered in
hours (
hh
), minutes (
mm
), and seconds (
ss
), with each separated
by a delimiter (
.
, : - or /).
TIME=
is compatible with the
Time$ function of IBM BASICA and HP Rocky Mountain
BASIC. Note that seconds are optional and will default to
:00
if
not specified.
TIME?
returns the time in
hh:mm:ss
format.
IBM BASICA Example (assuming com1 is initialized to #1 and 5A-1MP
ECHO
is
OFF
):
.
.
.
100
PRINT #1, "TIME="; TIME$
'Synchronize to IBM clock.
.
.
.
200
PRINT #1, "TIME?"
'Get time.
210
INPUT #1, A$
220
PRINT "5A-1MP TIME IS "; A$
'Display on monitor.
.
.
.
TERMINAL Example (assuming
ECHO
is
ON
):
TIME?
Get time.
16:15:21
It's 4:15 p.m.
TIME=8:11
Set to 08:11:00.
TIME?
08:11:04
Took me 4 seconds to type
TIME?
IEEE 488 Example (HP Rocky Mountain BASIC syntax):
.
.
.
100
OUTPUT 705; "TIME="; TIME$(TIMEDATE)
!Sync to HP.
.
.
.
300
OUTPUT 705; "TIME?"
!Get 5A-1MP time.
310
ENTER 705; T$
320
DISP "5A-1MP TIME IS "; T$
!Display time.
.
.
Содержание 5A-1MP
Страница 3: ...5A 1MP Laboratory Reference Psychrometer...
Страница 45: ...7 18 110 ENTER 705 X 120 DISP X Display it RELATED COMMANDS DSPAn DZERo PROBE RESTore SAVE...
Страница 67: ...7 40 ________________________________________________________________________ RELATED COMMANDS AUTO PRINt...
Страница 71: ...7 44 ________________________________________________________________________ RELATED COMMANDS RESTore SAVE...
Страница 83: ...7 56 ________________________________________________________________________ RELATED COMMANDS DATE...