Specifications
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.)