
Process interfacing via an automation system (PLC, PC)
10.9 Sample programs
SIMATIC MV420 / SIMATIC MV440
332
Operating Instructions, 04/2013, A5E02371045-06
10.9.3
Example 2: Program for archiving diagnostic information on a PC/PG
You will find the program described here on the manual/commissioning CD in
Examples\Diagnostics.
With the "mmidiag" example, you can archive diagnostics data records in the form of csv
files and diagnostics images as bitmaps on a PC. In addition to the diagnostics images, a
text file containing details of the image is also transferred.
Process interfacing
The configuration is based on the configuration described in the section on reading codes or
grading quality in a PROFINET environment and output via Ethernet. It is characteristic of
this configuration that the PC or programming device for archiving of the diagnostics data
records and/or diagnostics images is connected to the reader not over RS-232 but over
Ethernet.
Setup support
Make the following settings in the setup support:
●
"Connections" task, "Interfaces" tab: In "Archiving/MMI", enter the IP address and the port
of the PC/programming device on which you want to archive the diagnostics information.
●
"Connections" task, "Interfaces" tab: Select what you want to archive in "Diagnostics
transfer": Only diagnostics data records, only diagnostics images or both.
Sample program
Make sure that you set the same values in the example under "Connections" as in the
adjustment support on the "Interfaces" tab of the "Connections" task.
Specify the maximum size of a csv file under "Options". If the current csv file exceeds this
size, the sample program creates a new csv file. In the "Timeout" input box, you can also
specify the time in seconds after which the sample program stops itself if it has received no
response from the reader during this time. This allows you to recognize whether or not the
connection to the reader is still established.
In "Output", you specify the folders in which the diagnostics images and the csv files will be
stored.
When you click the "Start" button, the program waits for the connection to be established by
the reader. Transfer of the diagnostics data begins after the connection is established.
Summary of Contents for SIMATIC MV420
Page 2: ......
Page 418: ...Glossary SIMATIC MV420 SIMATIC MV440 416 Operating Instructions 04 2013 A5E02371045 06 ...
Page 423: ......