Chapter 14. Statement Reference
292
Syntax:
Syntax 1 (Turning off the power according to the power-off counter):
POWER counter
Syntax 2 (Turning off the power immediately):
POWER {OFF|0}
Syntax 3 (Disabling the automatic power-off facility):
POWER CONT
Parameter:
counter
A numeric expression which returns a value from 0 to 32767.
Description:
■
Turning off the power according to the power-off counter
POWER
counter
turns off the power after the length of time specified by
counter
from execution of the
POWER
statement.
•
counter
is a setting value of the power-off counter in seconds. Shown below is
a sample program for turning off the power after 4800 seconds from execution of
POWER
statement.
POWER 4800
• If no
POWER
statement is issued, the default counter value is 180 seconds.
• If any of the following operations and events happens while the power-off counter
is counting, the counter will be reset to the preset value and start counting again:
- Any key is pressed.
- The trigger switch is pressed.
- The BHT sends or receives data via a communications device file. (If a com-
munications device file is closed, this operation does not reset the power-off
counter.)
I/O statement
POWER
Controls the automatic power-off facility.
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...