beautypg.com

A.5 constants, A.6 about initializing variables – Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 287

background image

AĆ15

A.5

Constants

Use constants to specify:

D unchanging values within ladder instruction input parameters
D an element of an array (array[2])
D a bit within an integer or double integer variable (pump.15)
D a bit within an element of an integer or double integer array (array[2].31)

You can include the plus (+) and minus (ć) signs for constants entered in the ladder

instruction parameters.
I

MPORTANT

To enter a hexadecimal value that begins with a letter as a ladder instruction input

parameter, you must enter the value using a leading 0; end the value with an  h or H."

For example, enter 0A5A5H not A5A5H.

A.6

About Initializing Variables

You can choose the value that a variable contains when a program is downloaded to

the Processor or while the program is running. This is useful for loading a preĆdefined

value into a variable for calculations, modifying parameters, or changing a timer's or

counter's preset value. You can change the value of a variable and/or its initial value by:

D setting or forcing the variable
D changing a preset value for a timer or counter via inline editing
D changing the initial value via the Variable Properties dialog box