INGEAR.NET.MBLINK

Tag.TimeStamp Property

Gets time stamp for last successful MODBUS device 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
Imports MBLink
Dim MBDevice As New Controller("192.168.1.45")
Dim MyTag As New Tag("40001")

MBDevice.ReadTag(MyTag)

Console.WriteLine(MyTag.Timestamp.ToString())

C#
using MBLink;
Controller MBDevice = new Controller("192.168.1.45");
Tag MyTag = new Tag("40001");

MBDevice.ReadTag(MyTag);

Console.WriteLine(MyTag.Timestamp.ToString());

See Also

Tag Class | MBLink Namespace