TYPE
IN
DISPLAY READS
NOTES
Every minute:
********
*
*1*
*
*
*:
* *
sounds every minute
Every
10
minutes:
*******5
*
*1*
*
*
*:
*5
whenever the 5 matches i.e.
at
05, 15,
25
minutes etc
Every hour:
******21
*
*1*
*
*
*:21
sounds
at
21
mins past
every
hour
Every
24
hours:
****1730
*
*1*
*
1 7
:30
at
17:30 every day
Every minute for ten
****093
*
*
*1*
*
09:3
*
from 9.30 am to 9.39 am
minutes:
Every minute for
an
****14**
*
*1*
*
1 4 : * *
from 14.00 to 14.59
hour:
Every minute for ten
******3
*
*
*1*
*
*
*:3
*
from 30 minutes to
39
minutes ten every hour:
minutes ten past the hour
every hour:
Once a month:
**151015
* *
II
5
1 0
:1
5
On
the 15th
of
the month
at
10.15 am
Every day for a month:
06**1415
061*
*
1 4
:1
5
At
14.15 every day in June
A specific time:
11111111
1 1
II
1
1 1 : 1 1
On
Nov
11
at
11.11
NOTE:
Only the asterisk or question mark should be used
as
a wildcard character.
The time should be checked before exiting from the System Display
as
the PX-8
carries out a comparison between your string and the string output by the clock.
If
the alarm does not go
off
when you expect it to, check the System Display
to
see
that the time you entered was correct.
iii)
Setting the WAKE junction
The wake function makes it possible to automatically turn on the power
and/or
start a program
or
execute a command
at
any desired time.
Note that the WAKE or ALARM cannot be used together.
The procedure for setting the WAKE time
is
the same
as
that for setting the
ALARM time, except that option 3
is
taken instead
of
option 2 (Fig 2.17). All
the wildcard options can be used in the same way.
2-30
The message string (option 4 Fig 2.17)
is
used
to
name a program which
is
to
be run.
It
is
used in a similar way
to
the AUTO START string (see the next
module). The string input into the WAKE message
is
used as
if
the characters
were typed from the keyboard when the WAKE function switches the PX-8
on. Thus the message
"A:PROG"M"
will run the
CP/M
COM file
"PROG"
on
drive A: when WAKE switches the PX-8 on. The two characters
at
the end
are a CTRL-M written as
""M".
This
is
the carriage return character. Just
as nothing will happen
if
you do not press the I
RETURN
I key when typing in
a file name, so missing the
""M"
from the end
of
a file name in a message
string
will
normally cause the PX-8
to
wait until the auto power
off
time
is
reached and then switch off.
For
the options and rules
to
be followed in setting up a WAKE string,
see
the
next module (the AUTO START string). Note
that
the WAKE string
is
entered
as a message under the ALARM/WAKE option and NOT under the AUTO
START string. The AUTO START string does not operate
if
the WAKE
is
ex-
ecuted.
When you
tryout
the WAKE function, remember that it won't work unless
you switch
off
the PX-8 before the WAKE time
is
reached. Set
aWAKE
time
for a couple
of
minutes ahead and then enter a WAKE string. As an example
you could use
"DIR"M"
to display a directory
of
the current drive. Make sure
you have switched
off
the MENU for this experiment
or
one
of
two error con-
ditions will arise. First,
if
BASIC
is
resident when you switch off, it will still
be there when the PX-8 WAKEs up. When the string
"DIR"M"
is
encoun-
tered it will not be recognised by BASIC
'Ok'
prompt.
Refer to the rules in the next section on setting the AUTO START string for
details
of
how
to
overcome this.
IMPORTANT: In adding the" "M" to the end
of
the message string in WAKE,
the
"M"
must be upper case.
If
the message string following
the"
< WAKE
STRG>"
label has a
"-"
character
at
the end you have entered
"m"
and
not
""M"
.
The action taken when the WAKE time
is
reached differs according
to
the state
of
the PX-8 when the wake time
is
reached.
•
If
the power
is
turned on:
The WAKE behaves as
if
it were
an
ALARM. This is
to
prevent the program
initiated by the WAKE string from interrupting the task in hand when the WAKE
2-31