beautypg.com

Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 291

background image

AĆ19

A.6.4

About Initializing Timer and Counter Variables

You can define the initialization mode for timer and counter preset variables. Choose

between a User Specified Value or Retained Value. The Retained Value is the default

initialization mode. You cannot define an initialization method for the Elapsed timer

element or the Current counter element. These elements are usually reset to 0 at the

start of program scan, unless the timer or counter data structure is defined as global

and nonĆvolatile. If you reference a timer or counter element in a program whose data

structure is not used in a timer or counter instruction within the same program, the

variable uses the No Initialization method. You cannot change it to User Specified Value

or Retained Value. However, if you later add that timer or counter data structure on a

newly added timer or counter instruction, the initialization type of the timer or counter

elements becomes Retained Value. You can then choose either a Retained Value or

User Specified Value initialization. The value contained in the Initial Value field is the

timer's or counter's preset value.

A.6.5

About Initializing Arrays

You can define an initial value for individual elements of an array. The list of available

elements and their current values appears in the Array Index list box.