Example 2: Program For Archiving Diagnostic Information On A Pc/Pg - Siemens SIMATIC VS120 Operating Instructions Manual

Image processing systems vision sensor
Table of Contents

Advertisement

10.6.2

Example 2: Program for archiving diagnostic information on a PC/PG

Note
The program described here is also available on the documentation CD of the
documentation package in Examples\Diagnostics.
With the "archivedemo.exe" example, you can archive diagnostic data records in the form of
csv files (can be read, for example, with Excel) and diagnostic images as bitmaps on a PC.
In addition to the diagnostic images, a text file is transferred that contains details of the
image.
Process interfacing
The PC / PG is connected to the VS120 processing unit via Ethernet for archiving the
records and/or the diagnostic images.
Adjustment support
Make the following settings in adjustment support:
Example program
• Under "Connection", set the IP configuration of the Ethernet interface of your PC through
• Enter the maximum size of a csv file in "Options". If the current csv file exceeds this size,
• In "Output", you specify the folders in which the diagnostic images and the csv files will be
• Once you have clicked the "Start" button, the program waits for the connection to be
• The file names have the following structure:
Vision Sensor SIMATIC VS120
Operating Instructions, Edition 02/2006, A5E00757507-01
Connections - Interfaces tab
In "Archive", enter the IP address and the port of the PC/PG on which you want to archive
the diagnostic information.
Connections - Integration tab
In "Diagnostic transfer", select what you want to archive.
Only diagnostic data records, only diagnostic images or both
which you want to communication with the VS120 processing unit. The settings must be
identical to the values that you have set on the VS120 processing unit under
"Connections - Interfaces tab" - Archive or with Connect ->Ports - > Archive.
the example program creates a new csv file. In the "Timeout" input box, you can also
specify the time in seconds after which the example program stops itself if it has not
received a response from the VS120 processing unit during this time. This allows you to
check whether the connection to the VS120 processing unit is still established
stored.
established by the VS120 processing unit. The transfer of the diagnostic data begins after
the connection has been established.
– csv files: diagrecs_<date>_<time>.csv
– Bitmaps: diagimg_<date>_<time>.bmp
– Details of the image: diagimg_<date>_<time>.txt
Process interfacing over an automation system (PLC, PC)
dialog:
dialog:
10.6 Sample programs
10-23

Advertisement

Table of Contents
loading

Table of Contents