PLC Date and time stamp in excel

turbohamad

Member
Join Date
Jun 2009
Location
Multan
Posts
108
Dear Members;

I make a date and time stamp by using GSV and SSV instructions.
The DINT array with 7 elements stores those values.

Now I want to read it and set the following format in excel in one cell-like
yyyy/mm/dd hh:mm:ss

How can i perform this tsk any help?

Regards
 
Last time I did this I just converted the Date Time into a string and read this in Excel, the PLC did the work.

Or you can do the work in excel with CONCAT
 
Here is an example. The data is all on row 6 and the formula displayed is from C8. You could also do this with the "&" instead of CONCATENATE.

=CONCATENATE(B6,"/",C6,"/",D6," ",E6,":",F6,":",G6)
or
=B6 & "/" & C6 & "/" & D6 & " " & E6 & ":" & F6 & ":" & G6

OG

Concatenate.JPG
 
Last edited:

Similar Topics

Hello, I have an automation direct d2 262 plc and C-more HMI EA9T6CL-R. I need to prepare a program, scheduled to be performed on a future date. I...
Replies
1
Views
126
Hi All, we've recently upgraded from FTView SE v10 to v12. Since the upgrade we've been having a problem where the HMI is slow to update tags in...
Replies
0
Views
90
I have 10 years expereience about programming TwinCAT2 PLC. However, there is still one thing that I can't find a best solution about updating the...
Replies
0
Views
800
Hello, I was wondering if anyone know how to upload a PLC program to the Beckhoff TwinCAT 3 from a file? i.e. without having the development pc...
Replies
0
Views
760
Hello everyone, I want to know if there is a way to create or add a licensing or/and expiration date for Siemens PLC or if there other brand that...
Replies
26
Views
10,747
Back
Top Bottom