Time stamp or data log in STEP 7

spandy16

Member
Join Date
Dec 2012
Location
Germany
Posts
58
I have two sensors and their process data is constantly read on the HMI screen. Is there a possibility for time stamp at the desired interval or a possibility of saving a log file where all the readings from the sensor are recorded at a sampling interval (just like a .csv file)
 
Hi,

By means of using the following functions u can achieve ur time stamp concept

1) RTC set & read

2) Datalog Create, write function

Check the below link for sample code,

http://www.automation.siemens.com/W...ow.aspx?PageIndex=1&PostID=279240&Language=en

Still not successful then i will give u my sample code as i already did for time stamp recording

Regards,

Nelliyan.G

Sorry, I didn't mention that I'm using IM 151-8 PN/DP CPU which is based on S7-300 CPU and STEP 7 V11 TIA Portal.

So will it be possible to use these instructions?
 
How accurate must the timestamp be ?
If accurate to the millisecond, then you have to involve code in the PLC.
If accurate to the second, then just make a regular datalog in the HMI. The timestamp will be based on the PCs or Panels internal clock.
 
How accurate must the timestamp be ?
If accurate to the millisecond, then you have to involve code in the PLC.
If accurate to the second, then just make a regular datalog in the HMI. The timestamp will be based on the PCs or Panels internal clock.
Thanks. Not needed to be so accurate to millisecond. But I doubt the availability of datalog function in the basic panel which I'm using along with WINCC Basic V11.
 
How accurate must the timestamp be ?
If accurate to the millisecond, then you have to involve code in the PLC.
If accurate to the second, then just make a regular datalog in the HMI. The timestamp will be based on the PCs or Panels internal clock.

Can you tell me the general structure of code if I have to implement the data log function in the PLC code. It would be very helpful.
 

Similar Topics

So all the rockwell examples I have been pointed to or found to log data in a compactlogix and write to SD in .csv format have been for...
Replies
3
Views
2,012
Hello everyone, I have a water treatment skid that uses an Allen Bradley Micrologix 1500 PLC and the Red Lion data logger model CSMSTRSX. I had...
Replies
0
Views
5,866
Does anybody know how 'timestamp output' functionality internally works in a controller? I do not mean the instructions you use as a programmer...
Replies
0
Views
67
Hello Everyone, I hope we are all good! I have a strange one, and wondering if anyone has seen this before. When I look at the CSV Export Logs...
Replies
3
Views
1,602
So I've got an issue I have yet to figure out. I have a PVPlus standard HMI runtime v12. I've gone into the system and set the date and time and...
Replies
7
Views
4,806
Back
Top Bottom