beautypg.com

Rockwell Automation 9301 Series RSView32 Users Guide User Manual

Page 548

background image

15–8

RSView32 User’s Guide

Instead of using macros to set tag values, you can also set tag values
using the tag collections in the RSView32 Object Model’s
WritePendingValues method. For more information about using the
RSView32 Object Model, see Help.

To create a macro:

1.

In the Project Manager, open the Logic and Control folder.

2.

Open the Macro editor by doing one of the following:

double–click the Macro icon

right–click the Macro icon and then click New

3.

Type your macro commands and, if required, add command
parameters.

When entering commands, follow these guidelines:

Separate each identifier, specification, or string with a space or

a tab.

Start each command on a new line, or separate commands on

the same line with a semicolon (;).

Precede comments with an exclamation mark (!). The comment

lasts until the next semicolon (;) or line break.

To replace a tag name with its current value when the

command is evaluated, enclose the tag name in dollar signs ($)
to create a placeholder in the command.

To indicate a percent in a macro, use two percent signs (%%)

because a single percent sign indicates a parameter.

For information about parameters, see “Using parameters” on
page 15-10. F
or more information about command syntax, see
“How to use commands” on page A-1.

For assistance while typing macro commands, double–click
anywhere in the Macro editor to open the Command Wizard. For