libplctag / libplctag.NET

A .NET wrapper for libplctag.

Home Page:https://libplctag.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why can't I read out the PLC data type after a "Read" although the data type is supplied with the read?

joed74 opened this issue · comments

commented

Why can't I read out the PLC data type after a "Read" although the data type is supplied with the read?

var btag = new Tag
     {
                Gateway = gateway,
                Path = "1,0",
                PlcType = PlcType.ControlLogix,
                Protocol = Protocol.ab_eip,
                Timeout = new TimeSpan(0, 0, 0, 0, 250),
                Name = "HMI_Administration.PData.ToHmi.EnableLoadNext"
      };
      btag.Read();
      btag.Type ???

According to the wireshark answer the datatype is supplied with the value:

grafik

c1 is the datatype, bool

İf that ever becomes possible in core libplctag, it will be exposed to the .NET wrapper - see this ticket for discussion
libplctag/libplctag#252

@joed74 - please chime in on that other ticket with your use case. I will close this ticket out as its primarily a core libplctag concern.