Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual
Page 43
6Ć3
LOCAL variable [CURRENT=val1, HIGH=val2, LOW=val3, &
ăăăăă ăĂ STEP=val4]
where:
variable =
simple variable of double integer, integer, or real
type
val1 =
a constant of integer, double integer, or real
type representing the value of the variable when
the task is first downloaded to the Processor; if
the variable is modified when the task is
running, it assumes the new value as the
CURRENT" value. If the task is reconstructed
(uploaded from the Processor to the personal
computer), instead of val1, the CURRENT"
value at the time will be printed following the
keyword CURRENT".
val2 =
a constant of integer, double integer, or real
type representing the highest value that the
operator can assign to the variable
val3 =
a constant of integer, double integer, or real
type representing the lowest value that the
operator can assign to the variable
val4 =
a constant of integer, double integer, or real
type representing the amount (step) by which
the operator can adjust the value by
decrementing or incrementing the variable
examples:
50 LOCAL TENSION_GAIN%[ăCURRENT=25,HIGH=50, &
ąąąąąąąąăLOW=10,STEP=5]
60 LOCAL RANGE%[ CURRENT=2500,HIGH=3500, &
ąąąąăLOW=2000,STEP=50]
6.1.2
COMMON Statement
The COMMON or (GLOBAL) statement is used to define two kinds of
variables, both of which will be, common, i.e., accessible to all tasks
in the rack. The value of the variable is made accessible to all tasks
by defining it in the configuration task for the rack and then
declaring the same variable common in tasks that need to reference
the variable. If you are using AutoMax Version 2.1 or earlier, see
JĆ3649 for more information. If you are using AutoMax Version 3.0 or
later, see the AutoMax Programming Executive for more information.
A change in the value of a common variable in one application task
will be seen by all application tasks that reference that variable
name as a common variable. The following variables are defined
using the COMMON (or GLOBAL) statement:
1. Memory variables (variables that are assigned to memory
locations) that must be accessible to all tasks in the rack. These
variables can be of any data type. They can be read to or written
from.
2. I/O variables (variables that that refer to actual physical I/O
locations). These variables can be double integer, integer, or
boolean variables. Common I/O variables that represent inputs
may be read but not written to. Common I/O variables that
represent outputs may be read or written to.