TIMER
PLBCMP GUI Only
The TIMER instruction defines an timer object variable. TIMERs provide routine activation at prescribed time intervals. To define a TIMER, use one of the following statement formats:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Data Label.
%
Optional. Denotes the item as being GLOBAL.
arraysize
Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.
^
Optional. Denotes the item as being a POINTER.
target
Required. The name of a previously defined data item of the same type.
Flags Affected: NONE
Note the following:
A TIMER contains only one item that is the timer.
The TIMER is always referenced as item number zero.
The item is accessible through the SETITEM or GETITEM instructions. The value specified is in tenths of a second.
Multi-dimension arrays are supported up to a maximum of fourteen dimensions.
The ^ denotes Pointer Variable.
Although a TIMER may be defined as Global, it is DESTROYed during a CHAIN instruction.
See Also: Example Code, Object Definitions, Object Output Instructions
![]() |