Rockwell Automation FactoryTalk View Site Edition Users Guide User Manual
Page 252

F
ACTORY
T
ALK
V
IEW
S
ITE
E
DITION
U
SER
’
S
G
UIDE
11–40
• •
•
•
•
Appending Execute command parameters
Parameters are appended to the Execute command in the same order they are listed in the
Execute Command dialog box.
You can substitute parameters into any position within a command by passing the
parameters to a macro. For details about using parameters with macros, see “Specifying
parameters in a macro” on page 24-14.
Execute command parameters are separated by a space, unless you select the check box,
Separate Parameters with commas.
Adding area names to parameters
To include the area name with parameters for the Execute command, in the Execute
Command dialog box, select the check box, Insert Area name.
At run time, the area of the alarm highlighted in the alarm summary will be inserted
between the first and second word in the Execute Command Text field.
Since you cannot change the position of the area name, when setting up the Execute
command, ensure that the syntax shown at the bottom of the dialog box is correct before
you click OK.
Alternatively, you can use a macro to substitute the parameters into any position within
the command.
Using Execute to run a custom program
If you set up the Execute button to run a custom program, and you copy the alarm
summary from one application to another, you must ensure that the custom program is
available in the new application, otherwise the Execute button will not run the program.
Example: Using AlarmLogRemark with the Execute button
To prompt the operator to add a remark to the alarm log file, in the Execute Command
dialog box, type AlarmLogRemark /P /T in the Execute Command Text box, and then
select the Tag name parameter, as shown in the following illustration.
A space is not added automatically to the end of the command text. If you are using parameters,
to insert a space between the end of a command, macro, or custom program and the first
parameter, be sure to type the space at the end of the command text.
If you add the Tag name parameter to the Execute command, the area name is always included,
even if the area is not shown in the alarm summary.