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 · 2 comments
joed74 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:
c1 is the datatype, bool
timyhac commented
İf that ever becomes possible in core libplctag, it will be exposed to the .NET wrapper - see this ticket for discussion
libplctag/libplctag#252