Uploadservicedata Method - Siemens SIMATIC S7 User Manual

Simatic automation tool v2.1
Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

6.9.3.12

UploadServiceData method

Return type
Method name
Result
UploadServiceData
Name
Data type
password
EncryptedString
strPath
string
This method can upload the service data from a defective CPU.
The following example searches the
address. It then checks the current
the service data is uploaded.
uint targetIPAddress = 0xC0A80001; // 192.168.0.1
string strDiagFolder = @"c:\Diagnostics";
IProfinetDeviceCollection devices = new IProfinetDeviceCollection();
Result retVal = myNetwork.ScanNetworkDevices(out devices);
if (retVal.Succeeded)
{
IProfinetDevice dev = devices.FindDeviceByIP(targetIPAddress);
if (dev != null)
{
}
}
SIMATIC Automation Tool V2.1 user guide
Manual, V2.1.1 07/2016, A5E33042676-AC
ICPU devAsCpu = dev as ICPU;
if (devAsCpu != null)
{
devAsCpu.RefreshStatus(new EncryptedString(""));
if (devAsCpu.GetOperatingState() == OperatingState.Defective)
{
retVal = devAsCpu.UploadServiceData(new EncryptedString(""),
}
}
SIMATIC Automation Tool API for .NET framework
Parameters
Parameter type
In
In
IProfinetDeviceCollection
of the CPU. If the CPU is defective, then
OperatingState
strDiagFolder);
6.9 The ICPU interface
Description
This method opens a legitimized connec-
tion to the device. Therefore, a password
may be required
A fully-qualified path to the folder contain-
ing the program card contents.
for a CPU at a specific IP
111

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents