Executes immediate read / write operation
Getting
Executes immediate read from programmable logic controller. Setting
Executes immediate write to programmable logic controller.
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)