KB-27686: Recording TimeStamp in a PLC that is read by multiple tags.

Question:

How can I record the TimeStamp in a PLC that is read by six different tags (day, month, year, hour, minute, and second) in the Historic‘s E3TimeStamp field?

Solution:   

To do so, you must change the values into strings and concatenate them. For example:

CStr(TagDay.Value) & “/” & CStr(TagMonth.Value) & “/” & CStr(TagYear.Value) & ” ” & CStr(TagHour.Value) & “:” & CStr(TagMinute.Value) & “:” & CStr(TagSecond.Value)

Then, you can write this script in the Value property of an Internal Tag and link it to the E3TimeStamp field.

 

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Leave a Reply

Your email address will not be published.Required fields are marked *