beautypg.com

12 jumping to another rack, 13 substituting variable names – Rockwell Automation 47C626 AutoMax Programming Executive V4.2 User Manual

Page 101

background image

6Ć15

6.12

Jumping to Another Rack

Select Jump from the Commands menu in the Rack Configurator to

jump to another rack without leaving the Rack Configurator. When

you select Jump, the System, Section, Racks dialog box will be

displayed. Select the destination rack and press OK to jump to that

rack.

6.13

Substituting Variable Names

Select Substitute Variables from the Commands menu in the Rack

Configurator to substitute variable names from within the Rack

Configurator. This command brings up the Substitute Variables

dialog box. It then performs all of the requested substitutions and

returns to the Substitute Variables dialog box until you choose Exit.

Use the following procedure to substitute variable names.
Step 1.

Select Substitute Variables from the Commands menu.

The Substitute Variables dialog box is displayed (see

figure 6.7).

Step 2.

Enter information for the following fields:
Search Ć The variable search string specifies the criteria

which are used to locate variables. This field can contain

from 1 to 16 characters, and can contain up to three

wildcard groups (?, which represents a single character, or

*, which represents a string of indeterminate length). The

data type character or array dimensions must not be

included in the search string.
Substitute Ć The variable substitute string determines how

the original variable name is modified to produce the

result string. It can contain from 1 to 16 characters. It can

also contain either up to three wildcards (?, which

represents a single character, or *, which represents a

string of indeterminate length) or up to 3 placeholders.
A placeholder is a designator which marks the location in

the substitute string where the substring that matches the

corresponding wildcard group in the search string is to be

inserted. The format for the placeholder is '\n', where n

identifies the ordinal number of the corresponding group

of wildcard characters in the search string.
Placeholders must be used in the substitute string instead

of the actual wildcard characters when either a group is to

be omitted or the relative positions are to change.

Wildcards and placeholders cannot be mixed within the

same substitute string.
Example: If the search string = "A??*F?H", and the target

string = "ABCDEFGH", then the wildcard group "??*"

matches the substring "BCDE" and the second wildcard

group "?" matches substring "G".
Wildcard format Ć If the substitute string = "L??*Q?S",

then the first wildcard group '??*' identifies the location

where substring "BCDE" is to be placed and the second

wildcard group '?' identifies where the substring "G" is to

be placed.