EasyManua.ls Logo

Siemens SIMATIC S7 - Firmwareupdate Method

Siemens SIMATIC S7
134 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SIMATIC Automation Tool API for .NET framework
6.7 The IProfinetDevice interface
SIMATIC Automation Tool V2.1 user guide
88 Manual, V2.1.1 07/2016, A5E33042676-AC
6.7.2.2
FirmwareUpdate method
Return type
Method name
Result
FirmwareUpdate
Parameters
Name
Data type
Parameter type
Description
password
EncryptedString
In This method opens a legitimized connec-
tion to the device. Therefore, a password
may be required.
strFile
string
In A fully-qualified path and filename for the
update file.
hardwareID
uint
In
The hardware identifier of the module
bUpdateSameVer-
sion
Bool
In If true, the method will proceed with the
update, even if the update file indicates
that it is the same version as the current
firmware version of the module.
This method will update the firmware version for the specified hardware item (hardwareID)
on the device. The hardwareID may specify either the device itself, or a module on the same
rack.
Not all devices support the firmware update feature. The property
FirmwareUpdateAllowed can
be checked to ensure that the current device supports this feature.
The following example searches for a device at a specific IP address and updates the
firmware in that device.
Result retVal = myNetwork.ScanNetworkDevices(out scannedDevices);
uint targetIPAddress = 0xC0A80001; // 192.168.0.1
string updateFile = @"c:\myUpdates\6ES7 221-1BF32-0XB0 V02.00.00.upd";
if (!retVal.Succeeded)
return;
IProfinetDevice dev = scannedDevices.FindDeviceByIP(targetIPAddress);
if (dev != null)
{
Result retVal = dev.FirmwareUpdate(new EncryptedString(""),
updateFile, dev.ID, true);
}

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals