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.