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
In This method opens a legitimized connec-
tion to the device. Therefore, a password
In A fully-qualified path and filename for the
The hardware identifier of the module
sion
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);
}