I am trying to write a bit to a micrologix 1400 in c# using the .net nuget package (latest version 1.5.2) using the below code. The write command returns a "ErrorRemoteErr" . i can read and write to float without issue - i was reading that the libplctag library was updated to fix this issue but it seems the .net package did not follow suit
var writeTagB3 = new Tag()
{
Name = "B3:0/0",
Gateway = "10.142.228.150",
Path = "1,0",
PlcType = PlcType.MicroLogix,
Protocol = Protocol.ab_eip
};
writeTagB3.Initialize();
writeTagB3.SetBit(0, true);
try
{
writeTagB3.Write();
}
catch (LibPlcTagException plcexception)
{
MessageBox.Show(plcexception.Message, "Error writing to PLC - B3");
writeTagB3.Dispose();
return;
}
I am trying to write a bit to a micrologix 1400 in c# using the .net nuget package (latest version 1.5.2) using the below code. The write command returns a "ErrorRemoteErr" . i can read and write to float without issue - i was reading that the libplctag library was updated to fix this issue but it seems the .net package did not follow suit
var writeTagB3 = new Tag()
{
Name = "B3:0/0",
Gateway = "10.142.228.150",
Path = "1,0",
PlcType = PlcType.MicroLogix,
Protocol = Protocol.ab_eip
};
writeTagB3.Initialize();
writeTagB3.SetBit(0, true);
try
{
writeTagB3.Write();
}
catch (LibPlcTagException plcexception)
{
MessageBox.Show(plcexception.Message, "Error writing to PLC - B3");
writeTagB3.Dispose();
return;
}