INGEAR.NET.GELink

 

Tag.TimeStamp Property

Gets time stamp for last successful PLC access operation for the Tag instance

[Visual Basic]
NotOverridable Public ReadOnly Property TimeStamp As Date _
    Implements ITag.TimeStamp
[C#]
public System.DateTime TimeStamp {get;}

Property Value

DateTime

Implements

ITag.TimeStamp

Remarks

If an error occurs, the .Timestamp property will be uninitialized.

Example

VB
Dim MyPLC As New GELink.Controller("192.168.1.45")
Dim MyTag As New GELink.Tag("%R1")
MyPLC.ReadTag(MyTag)
Console.WriteLine(MyTag.Timestamp.ToString())


C# GELink.Controller MyPLC = new GELink.Controller("192.168.1.45"); GELink.Tag MyTag = new GELink.Tag("%R1"); MyPLC.ReadTag(MyTag); Console.WriteLine(MyTag.Timestamp.ToString());

See Also

Tag Class | GELink Namespace