libplctag.NET icon indicating copy to clipboard operation
libplctag.NET copied to clipboard

AB Micro850 Read is always Timeout

Open AdamXu23 opened this issue 3 years ago • 2 comments

AB Micro850 Read is always Timeout

//DINT Test Read/Write
            var myTag = new Tag<DintPlcMapper, int>()
            {
                //Name of tag on the PLC, Controller-scoped would be just "SomeDINT"
                //Name = "PROGRAM:SomeProgram.SomeDINT",
                //Name = "PROGRAM:SomeProgram.SomeDINT",
                Name = "Programs:SomeProgram.SomeDINT",
                //Name = "SomeProgram:SomeDINT",
                //Name = "Programs:GlobalVariables.SomeDINT_1",
                //Name = "SomeDINT_1",

                //PLC IP Address
                Gateway = "192.168.127.2",

                //CIP path to PLC CPU. "1,0" will be used for most AB PLCs
                Path = "1,0", 

                //Type of PLC
                PlcType = PlcType.Micro800,

                //Protocol
                Protocol = Protocol.ab_eip,

                //A global timeout value that is used for Initialize/Read/Write methods
                Timeout = TimeSpan.FromMilliseconds(TIMEOUT)
            };
            myTag.Initialize();

1647226156933 1647226215110

I can't find the problem

AdamXu23 avatar Mar 14 '22 02:03 AdamXu23

There's apparently some weirdness with Micro850. See if this helps you out: https://github.com/libplctag/libplctag/issues/157

Try leaving off the Path property completely.

jkoplo avatar May 28 '22 00:05 jkoplo

After removing the path from tag variable the problem solved.

shuvendu2018 avatar Jul 13 '22 09:07 shuvendu2018