Process interfacing via an automation system (PLC, PC)
9.7 Remote client
SIMATIC MV500
Operating Instructions, 06/2018, C79000-G8976-C494-01
163
Note
Structure of the "<File name>" parameter
The file name consists of the name of the optical reader and the firmware version.
The data corresponds to the file content of an xml file that is used to restore the settings and
programs.
Pseudocode example
C# Pseudocode XML Backup
// Create new xml file
FileStream newXml = File.Open("C:\\mv400para.xml", FileMode.Create);
// Create http request
HttpWebRequest myRequest =
(HttpWebRequest)WebRequest.Create("http://192.168.0.42/xml/backup.cgi");
myRequest.Method = "GET";
myRequest.ContentLength = 0;
try
{
// Get response
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myRequest.GetResponse();
// Get response stream
Stream streamResponse = myHttpWebResponse.GetResponseStream();
// Read stream and write to file (stream == xml data)
byte[] readBuffer = new byte[256];
int count = streamResponse.Read(readBuffer, 0, readBuffer.GetLength(0));
while (count > 0)
{
newXml.Write(readBuffer, 0, count);
count = streamResponse.Read(readBuffer, 0, readBuffer.GetLength(0));
}
Console.WriteLine("XML backup succeeded.");
}
catch (System.Net.WebException we)
{
Console.WriteLine("NO PERMISSION FOR XML BACKUP!");
}
Содержание SIMATIC MV540 H
Страница 24: ...Description 1 7 Functional description SIMATIC MV500 24 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 194: ...Service and maintenance 10 3 Replacing a module SIMATIC MV500 194 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 232: ...Appendix A 3 Alternative user interfaces SIMATIC MV500 232 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 236: ...List of abbreviations SIMATIC MV500 236 Operating Instructions 06 2018 C79000 G8976 C494 01 ...
Страница 238: ...Service Support SIMATIC MV500 238 Operating Instructions 06 2018 C79000 G8976 C494 01 ...