Script files – Rockwell Automation ControlFLASH Firmware Upgrade Kit User Manual User Manual
Page 30

30
Rockwell Automation Publication 1756-UM105E-EN-E - October 2012
Chapter 5 Use the Command Line
is determined by FactoryTalk Services Platform instead of
ControlFLASH..
If FactoryTalk Services Platform is not installed on your machine, then
parameter
O is regarded as an invalid parameter with an error message
Invalid combination of switches displayed on the screen and written to log
file.
If a correct version of FactoryTalk Services Platform is installed, but you do
not input parameter
O in the command-line mode, then the message
Insufficient inputs, FactoryTalk Scope was not found. is displayed on the
command-line window.
You can use ControlFLASH.exe with the required and optional
parameters at the command line:
C:\Program Files\ControlFLASH\Controlflash
followed by the appropriate parameters.
A status window is displayed to indicate the progress. Both the command
line and scripting versions provide a switch ( [-S] ) option to disable this
function and run in Silent mode.
Script Files
With ControlFLASH software, you can create script files or execute your own
C#, Java, or other language to have the ControlFLASH software push firmware
to your devices. Your application can interact directly with ControlFLASH
software through a command line with status and diagnostics available in the
ControlFLASH log or echoed back to your application directly.
Each device that you want to flash must have a unique Device#. ControlFLASH
software begins flashing devices with [Device1], [Device2], and so forth. The
software flashes the number of devices as indicated by the NumberDevices field.
When you number your devices, do not skip a number and do not use [Device0].
The order of the file is not important, as long as each number exists once in the
file. In this example, the NumberDevices is 4, so [Device5] will not be flashed.
Parameter
Description
-O
Required
This parameter specifies FactoryTalk scope. Example: "-O Network" or "-O Local"
ATTENTION: If you disable the status window, there will be no visual
indication that a flash operation has failed or is in progress. In this case,
Rockwell Automation recommends that you provide some other forms of
user interaction through your own application, which indicates the status
information.