This function is used to read or set (Instruction) the current value (Elapsed Time) of the timer.
Reading:
WARNING: The value is readable only after the timer is started (e.g., after calling the tm_int() function for the first time), otherwise alarm 9901 is generated.
Syntax |
real tm_et (timer name) |
---|---|
name |
Name of the timer of type timer |
Result |
Returns the value, in milliseconds, of the current timer time |
Validity |
Rule, Task |
Note |
All timers, except the integral timer (tm_int()), reset their current value the first time they are called |
Writing (Instruction):
WARNING: The value can only be set before the timer is started (e.g., before calling the tm_int() function for the first time), otherwise alarm 9901 is generated.
Syntax |
tm_et (timer name, real valueEt) |
---|---|
name |
Name of the timer of type timer |
valueEt |
Value of the time, in milliseconds, to be set |
Validity |
Rule, Task |
Note |
Example of use:
|