40 findvar! function, 41 convert% function – Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual

Page 107

Advertising
background image

7Ć19

7.40

FINDVAR! Function

This function requires the AutoMax operating system with the

Ethernet option.
Format:

FINDVAR! ( varname$ )

where:

varname$ is a string expression for the name of the

variable to find.

This function accepts a variable name as a string expression and

returns a pointer to that variable. This may then be used in the

SENDL% and RECVL% functions.
@

Booleans

%

Integers

!

Double integers

$

Strings

No suffix

Reals

If specifying an array element, the subscript must be after the data

type character if there is one.
Values Returned:

>0 Pointer to Variable

-22 Variable not found

For example, to find a pointer to XYZ%(10):

VARIABLE_NAME$ = XYZ%(10)"
POINTER! = FINDVAR!( VARIABLE_NAME$ )

7.41

CONVERT% Function

This function requires the AutoMax operating system with the

Ethernet option. This function can be used on the AutoMax PC3000

although the PC3000 does not support the other Ethernet functions.
Format:

CONVERT%

(ăsrc_variable, src_subscript, dest_variable, &

ąąąąąąąădest_subscript, num_of_words, mode )

where:

src_variable

is the variable that selects were to get data

from. This parameter may be a scalar or an

array of any data type. If src_variable is an

array, it should only be the base name and any

data type character.

src_subscript

is only used if the src_variable is an array. It

determines where in the array to begin

reading. If not an array, the value should be 0.

dest_variable

is the variable that selects were to move the

data. This parameter may be a scalar or an

array of any data type. If dest_variable is an

array, it should only be the base name and any

data type character.

Advertising
This manual is related to the following products: