Chapter 2. Development Environment and Procedures
45
2.6 Executing a User Program
2.6.1 Starting
To run a user program, start System Mode and select the desired program in the EXECUTE
PROGRAM menu.
If you have selected a user program as an auto-start execution program in the SET SYSTEM
menu of System Mode, then the BHT will automatically run the program when turned on.
If no user program has been selected as an auto-start execution program, turning the BHT on
will transfer the control to Directory Manager that starts a first-loaded one out of user
programs (.PD3) loaded in the BHT which will appear on the top of the EXECUTE PROGRAM
menu.
For the operating procedure of System Mode, refer to the BHT User’s Manual.
2.6.2 Execution
The Interpreter interprets and executes a user program from the first statement to the next,
one by one.
2.6.3 Termination
The BHT system program terminates a running user program if
• the END, POWER OFF, or POWER 0 statement is executed in a user program,
• the power switch is pressed,
• no valid operations are performed within the specified time length (Automatic
powering-off),
Valid operations: - Entry by pressing any key
- Bar-code reading by pressing the trigger
switch
- Data transmission
- Data reception
Specified time length:
Length of time specified by the POWER
statement in the user program. If not
specified in the program, three minutes will
apply.
or
• the battery voltage level becomes low.
Low battery: If the voltage level of the rechargeable
battery cartridge or that of the dry cells
drops below the specified level, the BHT
displays the low battery warning message on
the LCD and powers itself off.
If the resume function is activated in System Mode, only the execution of the END, POWER OFF,
or POWER 0 statement can terminate a running user program. Other cases above merely turn
off the power, so turning it on again resumes the program.
Comentarios a estos manuales