5/16/2014 12:22 PM | |
Joined: 9/23/2005 Last visit: 12/5/2023 Posts: 4281 Rating:
|
Hi, I attached here a very simple sample program for Data Logging with S7-1500. As didactical propose, I just call the related blocks and mount a Watch Table to manual command. The block FB1 is used just to evaluate diagnose, it has no influence on the data log functions. I suggest the follow sequence of commands in the Watch Table: – Create a File: “Create”=1, and after “Create”=0 – Give values for the logged variables, for example: “My_Datalog_vars”.MyCurrent = 10; “My_Datalog_vars”.MyTemperature = 20.0; “My_Datalog_vars”.MyPressure = 30.0 – Write the open values to the File: “Write”=1, and after “Write”=0 – repeat these last two step as desired – Open the Internet Browser and give the Ethernet address of the PLC as Address (10.1.15.1; user admin, pass admin). – Browse in Data Logs, in Filebrowser, DataLogs, open it if you wish.The command clear, clears the contends of the Data log; the command delete, deletes it, new file create a new file TIPs: 1 – You can found a complete example about Data Log with S7-1500 in the SIMATIC S7-1500 /ET 200MP Library (http://support.automation.siemens.com/WW/view/en/86140384), manual “Memory usage and application examples”, chapter “3.2.4 Example program for data logging” 2 – Create or create new file open the file automatically (i.e. it is not necessary to open the file after created). AttachmentE:\to pg\S7 1500 data log.zip (3876 Downloads) |
Denilson Pegaia |
|
This contribution was helpful to
16 thankful Users |
5/16/2014 3:39 PM | |
Posts: 784 Rating:
|
Thanks Pegaia |
11/18/2014 8:44 PM | |
Posts: 123 Rating:
|
Is there a way to copy the data log(s) to a PC without using the web browser? Be it a command from the PLC or a script in WinCC. |
11/26/2014 10:41 AM | |
Posts: 2 Rating:
|
Thanks Pegaia, great example! |
4/17/2017 2:15 PM | |
Posts: 1 Rating:
|
Sir, i used your sample program.it works perfectly,but when i enter values on same file again it overwrites the first one.can we do anything for this. |
11/30/2017 12:39 PM | |
Posts: 16 Rating:
|
Hello SERVICE_168 I do not see an attached file |
8/29/2019 7:27 PM | |
Joined: 1/5/2015 Last visit: 1/27/2023 Posts: 1 Rating:
|
hi, Can you please convert the program to tia v15 ? Thanks in advance RahulPathak |
Follow us on