Vous êtes sur la page 1sur 2

SIMATIC S7 S7-1200 Programmable controller

Working with data logs

Working with data logs


The data log files are stored as comma separated value format (*.csv) in persistent flash
memory. You can view the data logs by using the PLC Web server feature or by removing the
PLC memory card and inserting it in a standard PC card reader.

Viewing data logs with the PLC Web server feature


If the PLC PROFINET port and a PC are connected to a network, then you can use a PC web
browser like Microsoft Internet Explorer or Mozilla Firefox to access the built-in PLC Web
server. The PLC may be in run mode or stop mode when you operate the PLC Web server. If
the PLC is in run mode, then your control program continues to execute while the PLC Web
server is transferring log data through the network.
Web server access:
1.

Enable the Web server in the Device Configuration for the target CPU.

2.

Connect your PC to the PLC through the PROFINET network.

3.

Log in to the built-in Web server.

4.

Download the recent records, all records, clear records, or delete log files with the "Data Log"
standard web page.

5.

After a copy of a data log file is downloaded to your PC, you can open the .csv file with a spreadsheet
application like Microsoft Excel.

Viewing data logs on a PLC memory card


If the S7-1200 CPU has a "Program" type S7-1200 memory card inserted, then you can remove
the memory card and insert the card into a standard SD (Secure Digital) or MMC
(MultiMediaCard) card slot on a PC or PG. The PLC is in stop mode when the memory card is
removed and your control program is not executed.
Use the Windows file explorer and navigate to the \DataLog directory on the memory card. All
your \*.csv data log files are located in this directory.
Make a copy of the data log files and put the copies on a local drive of your PC. Then, you can
use Microsoft Excel to open a local copy of a *.csv file and not the original file that is stored on
the memory card.

This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims
all liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties. The complete
documentation can be found at:
https://www.automation.siemens.com/mdm/default.aspx?DocVersionId=37249085323&Language=en-US&TopicId=32906679947
9/6/2014

SIMATIC S7 S7-1200 Programmable controller


Working with data logs

Notice
You can copy, but do not modify or delete data log files on a S7-1200 memory card using a
PC card reader
The standard Web server data log page is the recommended tool for viewing, downloading
(copying), clearing (delete the data), and deleting data log files. The Web server manages the
memory card files for you and helps prevent accidental modification or deletion of data.
Direct browsing of the memory card file system by the Windows Explorer has the risk that you
can accidentally delete/modify data log or other system files which may corrupt a file or make
the memory card unusable.

Viewing data logs from a Web browser


Even if you do not use the Web server feature, you can view data logs directly from a Web
browser such as Internet Explorer or Mozilla Firefox. Simply enter the following text into the
address bar of your browser using the IP address of your CPU and the actual name of the data
log file you provided in STEP 7 instead of "MyDataLog":
http://192.168.0.1/DataLog.html?FileName=MyDataLog.csv
The fixed addresses of data log files also make it possible to access them through third party
file collection tools.

This document constitutes a free excerpt compiled by the user himself/herself from the documentation provided by Siemens for this product. Siemens disclaims
all liability for the completeness of this document. It shall only be used for the user's own internal purposes. It shall not be passed on to third parties. The complete
documentation can be found at:
https://www.automation.siemens.com/mdm/default.aspx?DocVersionId=37249085323&Language=en-US&TopicId=32906679947
9/6/2014

Vous aimerez peut-être aussi