2.7 Starting Up User Programs
You may start up user programs (application programs) in the BHT in several ways. This section outlines
those ways.
Starting from the EXECUTE PROGRAM menu in System Mode
If you select a desired user program as an execution program in the EXECUTE PROGRAM menu, then
the selected program will immediately start running. The selected program will always start from the
beginning.
For details, refer to Section 2.5.3, "[ 1 ] Program Execution."
Starting the auto-start execution program selected in the SET SYSTEM menu in System
Mode, by turning the power on
If you have selected a desired user program as an auto-start execution program on the SET EXECUTE
PROGRAM screen in the SET SYSTEM menu and turned the BHT off, then turning the BHT on will
automatically run the selected program. If the resume function is activated, turning the BHT on will
resume the program at the current point that had been running before the BHT was turned off.
For details, refer to Section 2.5.3, "[4.1] Setting an auto-start execution program."
Starting the first registered execution program, by turning the power on--with Directory
Manager
If no auto-start execution program has been selected on the SET EXECUTE PROGRAM screen in the
SET SYSTEM menu, then turning the BHT on will transfer the control to Directory Manager that starts a
first-registered one out of user programs (.PD4) loaded in the BHT.
If the resume function is activated, turning the BHT on will resume the program at the current point that
had been running before the BHT was turned off.
When downloading more than one user program after system initialization, you should download first a
desired program to be run as an auto-start execution program since downloaded programs will be
registered in the system in the downloading order.
At the time of updating programs, use the same program names in downloading, and the registration
order of programs will not change so that the same execution program will be able to run.
NOTE:
Directory Manager in system manages also files other than program files (.PD4). If you delete a
non-program file (e.g., .DAT) registered preceding the first-registered execution program and download
a new user program, then the newly downloaded program will be registered into the position of the
deleted non-program file. To prevent such a problem, it is recommended that after initialization you first
download an execution program to be run first when the BHT is turned on.
On the next page are downloading examples and Directory Manager control. In those samples, the
following file names are used:
MAIN.PD4
Program to be run by pressing the
PW
key
SUBMAIN.PD4 Program
chained
from the MAIN.PD4 with the CHAIN statement in BHT-BASIC
USER.PD4 New
user
program
AAAAAAAA.DAT
Data file 1 to be used by user programs
BBBBBBBB.DAT
Data file 2 to be used by user programs
116