Skip to content

Cannot write a single bit to micrologix 1400 using .net with nuget package 1.5.2 #478

Description

@jpsaila

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions