TIMER


PLBCMP GUI Only

square.png Properties

square.png Events

square.png Instructions

 

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:

 

(1)

[label]

TIMER

[%]

(2)

[label]

TIMER

(arraysize)

(3)

[label]

TIMER

^

(4)

[label]

TIMER

^,{target}

(5)

[label]

TIMER

^(arraysize)

(6)

[label]

TIMER

^(arraysize),({target}),...,({target})

 

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:

  1. A TIMER contains only one item that is the timer.

  2. The TIMER is always referenced as item number zero.

  3. The item is accessible through the SETITEM or GETITEM instructions. The value specified is in tenths of a second.

  4. Multi-dimension arrays are supported up to a maximum of fourteen dimensions.

  5. The ^ denotes Pointer Variable.

  6. Although a TIMER may be defined as Global, it is DESTROYed during a CHAIN instruction.

 

 

See Also: Example Code, Object Definitions, Object Output Instructions

 



PL/B Language Reference TABCONTROL TOOLBAR