INGEAR.NET.GELink

 

Tag.Now Property

Executes immediate read / write operation

[Visual Basic]
NotOverridable Public Property Now As Object _
    Implements ITag.Now
[C#]
public object Now {get; set;}

Property Value

Getting

Executes immediate read from programmable logic controller.

Setting

Executes immediate write to programmable logic controller.

Implements

ITag.Now

Remarks

The instance of the Tag class must reference an instance of the Controller class.
This property will operate regardless of the Active property value.
This property does not invoke the Changed event.

Example

VB
Dim MyPLC As New GELink.Controller("192.168.1.45")
Dim MyTag As New GELink.Tag("%R1")
' * set controller instance
MyTag.Controller = MyPLC
' * immediate read
Console.WriteLine(MyTag.Now.ToString())
' * immediate write
MyTag.Now = 100


C# GELink.Controller MyPLC = new GELink.Controller("192.168.1.45"); GELink.Tag MyTag = new GELink.Tag("%R1"); //set controller instance MyTag.Controller = MyPLC; // immediate read Console.WriteLine(MyTag.Now.ToString()); // immediate write MyTag.Now = 100

See Also

Tag Class | GELink Namespace