I am working on a project that I have to make a connection to an Allen Bradley ControlLogix over EtherNet/IP which uses TCP. Does anyone know how to craft packets to send over TCP to receive data? I am sure I have to use CIP to get a specific tag, but I am not sure how it is supposed to be crafted so the TCP Server in the PLC will give me a return. As an example, lets say I want to get a tag called TankTemp (real) and it is in my UDT MyTopic so normally I would use MyTopic.TankTemp. I want to essentially make something like libtagPLC, but I want to do it myself I just am not sure how to get the return from the PLC. My stack is C# .Net Core 3.1 so I am using the TCP Lib that is built into C#.
If I need to clear anything up please do let me know I am not a great writer.
Thanks in advance!