libplctag / libplctag.NET

A .NET wrapper for libplctag.
https://libplctag.github.io/
Mozilla Public License 2.0
194 stars 50 forks source link

Connecting to a topic name #340

Closed kaptindan closed 1 year ago

kaptindan commented 1 year ago

Hello, I have a PLC I am trying to communicate with. I can read the tags from the main PLC but this PLC is not directly on the same network but has access to the main. I can connect with RSLinx using the topic name but can not connect using libplctag IP address. image

kyle-github commented 1 year ago

Based on that picture, I think you want to use CIP bridging. The path will probably be something like "1,3,18,192.168.12.2,1,0". I'll break that down.

1,3 - this routes the traffic into the PLC to the backplane ("1") and then to the slot with the other network card, "3".

18,192.268.12.2 - this tell the network card to use port A (18 is A and 19 is B), and then route traffic to IP address 192.168.12.2 where the second PLC is.

1,0 - this tell the second PLC to route traffic to the backplane, "1", and then to slot 0 where the CPU is.

kaptindan commented 1 year ago

Hey Kyle! Thanks so much for the information! I am still a learner. This helped a lot.