B - using timer variables in basic programs, Appendix b, Using timer variables in basic programs – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 297

Advertising
background image

BĆ1

Appendix B

Using Timer Variables in BASIC Programs

You can use timer elements in BASIC programs. To do this, you must declare the timer

as a global, double integer array. For example, COMMON TIMER! (4). The elements of

the timer data structure can be accessed as follows:

Element:

Description:

0

Elapsed

1

Reserved for system

2

TPreset

3

bit 15

Q

bit 23

T

bit 31

TR

4

Reserved for system

WARNING

DO NOT MODIFY TIMER ELEMENTS 0, 1, 3, AND 4 FROM A BASIC PROGRAM.

THIS WILL CAUSE THE TIMER TO OPERATE INCORRECTLY, RESULTING IN

UNPREDICTABLE MACHINE OPERATION.

Advertising