Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual

Page 42

Advertising
background image

6Ć2

3. Tunable variables. These variables can be double integer,

integer, or real type and can be read from, but cannot be written

to by any means except through the Programming Executive

software running on the personal computer. Note that tunable

variables used to define gain parameters affected by autoĆtuning

on the Universal Drive Controller (UDC) module will also be

written to by the operating system on the UDC. See instruction

manual SĆ3006 for more information on UDC tasks.

LOCAL Simple Variable Format

LOCAL variable
where:

variable =

simple variable of any type, i.e., double integer,

integer, real, string, or boolean; more than one

variable can be defined with one statement by

separating the variables with commas

examples:

10 LOCAL START_BUTTON@

20 LOCAL LIMIT%, TEMPERATURE, MESSAGE$

LOCAL Subscripted (Array) Variable Format

LOCAL variable(size_list)
where:

variable =

simple variable of any type, i.e., double integer,

integer, real, string, or boolean

size_list =

up to five integer constants or integer variables

separated by commas, each value defining the

limit of the dimension of the array; expressions

that result in integer values are also permitted;

see section 4.1.2 for more information about

memory allocation for arrays; note that the first

item in every dimension is indicated in location

0, not 1

examples:

10 LOCAL A%(25) [reserves space for 26 integer

ąĂelements]

20 LOCAL B@(2,5) [reserves space for 18 boolean

ąĂelements]

LOCAL Tunable Variable Format

Tunable variables provide a method of adjusting values within a

certain range through the Programming Executive software while the

application task is running. Tunable variables can only be read by

the application task itself. They cannot be written to, except in the

case of tunable variables in UDC tasks, which are also written to by

the operating system on the UDC. Tunable variables can never

occur on the left side of a LET (assignment) statement.

Advertising
This manual is related to the following products: