
385
Syntax:
Syntax 1 (Retrieving the current value of a specified timer):
TIMEA
TIMEB
TIMEC
Syntax 2 (Setting a specified timer):
TIMEA=count
TIMEB=count
TIMEC=count
Parameter:
count
A numeric expression which returns a value from 0 to 32767.
Description:
■
Syntax 1
TIMEA
,
TIMEB
, or
TIMEC
returns the current value of timer-A, -B, or -C, respec-
tively, as a 2-byte integer.
■
Syntax 2
TIMEA
,
TIMEB
, or
TIMEC
sets the count time specified by
count
.
•
count
is a numeric value in units of 100 ms.
• Upon execution of this function, the Interpreter starts a specified timer counting
down in decrements of 100 ms (equivalent to -1) until the timer value becomes 0.
Run-time errors:
TIMER-A/TIMER-B/TIMER-C
I/O function
TIMEA/TIMEB/TIMEC
Returns the current value of a specified timer or sets a specified timer.
Error code
Meaning
05h
Parameter out of the range
(
count
is a negative value.)
06h
The operation result is out of the allowable range.
(
count
is greater than 32767.)
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...