S7-1500 milliseconds on data log file

DLMUK

Member
Join Date
Jun 2013
Location
Southampton
Posts
311
Hi,

I have an S7-1500 CPU which is data logging using DataLogCreate and DataLogWrite. I am logging at 5Hz so I want the ms value to be in the log file.

Looking at the instructions, and from memory, I should get a time such as 10:52:16.567 where the .[567] is a ms value. However on my log I do not get this. I just get 5 instances of 10:52:16, no ms value.

On my program, in my DataLogCreate I have a value of 1 in the Time Stamp parameter, which I believe should have a value in ms. However, the Siemens material does say it is optional, but I cannot see how you enable/disable this.

https://support.industry.siemens.com/cs/mdm/109773506?c=119438206987&lc=en-WW

I'm sure it's simple but I can't see what I'm doing wrong.

Thanks
 
However, the Siemens material does say it is optional, but I cannot see how you enable/disable this.

I clicked the link you mentioned, and the [optional] nature of the ms confuses me as well. I've never heard of an instruction where the PLC gets to decide how to execute it, so surely there is SOME way to influence it, but the manual seems to be missing that detail.

Sounds like a great thing to send to Siemens tech support, to me.

As a workaround, you could include a timestamp as one of the items in the data type you are logging, and copy in the system time right before each time you trigger the data log.
 
Open the log file in notepad - I see the time in millisecs (timestamp=2).(I added the "Help" string to the structure)


Excel is formatting the time display.

log.jpg
 

Similar Topics

I have been working on this for a while now and I can't seem to get it. I was finally able to view the 1500 on the PanelView under the serial...
Replies
1
Views
25
Hello, I have a 1764 1500 LSP Series A that keeps failing with DTL_E_FAIL I/O error. Searching around it seems there's a weird issue specifically...
Replies
2
Views
98
Hi all Trying to remotely connect to a TIA Portal PLC. I can ping it without a problem but can't get my software to connect. I've opened port...
Replies
8
Views
317
Been fighting all morning with a stubborn HMI. It just won´t connect with the plc. attaching from settings. Have i missed anything? Both plc and...
Replies
5
Views
282
Hi there, Maybe I am overthinking this issue, but here is what I have going on. I have a program running for a water valve on a DI system. We...
Replies
4
Views
443
Back
Top Bottom