INGEAR.NET.MBLINK

 

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.
Use Convert to assign constant values to the Now property.

Example

VB
Imports MBLink
Dim MBDevice As New Controller("192.168.1.45")
Dim MyTag As New Tag("40001")
' * set controller instance
MyTag.Controller = MBDevice
' * immediate read
Console.WriteLine(MyTag.Now.ToString())
' * immediate write
MyTag.Now = Convert.ToInt16(100)
C#
using MBLink;
Controller MBDevice = new Controller("192.168.1.45");
Tag MyTag = new Tag("40001");
//set controller instance
MyTag.Controller = MBDevice;
// immediate read
Console.WriteLine(MyTag.Now.ToString());
// immediate write
MyTag.Now = Convert.ToInt16(100)

See Also

Tag Class | MBLink Namespace