I am trying connect the OPC UA Server with a S7 300.
Now this PLC is connected with an Kepware OPC DA Server in another Server. I have tried to disconnect this Da Server but the connection goes on “Disconnect”
I can´t connect with it and I get in the log the message that show the figure below
Dang. You happen to know how to use Wireshark? If not you can call into support and they can help walk you through it…
What’s happening is that the PLC is closing the connection after receiving the connect request from Ignition’s Siemens driver. There’s no indication why, but generally it indicates that it doesn’t like something about it, which is why my first guess was the rack or slot number being incorrect.
If you could capture the network traffic between Kepware and the PLC I could probably figure out what the difference is and what part of the connect request Ignition sends that the PLC is objecting to…
You can upload the pcap file to this post or send it to support email and I’ll take a look at it. You just need to make sure you started the capture BEFORE Kepware connected so the connect packets are in the capture.
The outbound packets I can see in the screenshots above aren’t matching the pcap you’ve got labelled as Ignition - they’re matching the one labeled as Kepware!
if Kepware does not run with PC, Ignition will most probably also not work, as it always uses PC/Other as connection ressource. Also Ignition sends an invalid target SAP (didn’t cause problems so far, but who knows what siemens did…).
Is this by chance one of the newer Profinet CPU’s?
[quote=“Kevin.Herron”]Did you by chance mix up the packet captures?
The outbound packets I can see in the screenshots above aren’t matching the pcap you’ve got labelled as Ignition - they’re matching the one labeled as Kepware![/quote]
Perhaps in the file “kepware” you can see how to OPC UA Ignition communicate with anothers PLC. But the problem is with IP address 192.168.3.250.
if are not a valid captures, Say to me how to get exactly the captura to send you again
if Kepware does not run with PC, Ignition will most probably also not work, as it always uses PC/Other as connection ressource. Also Ignition sends an invalid target SAP (didn’t cause problems so far, but who knows what siemens did…).
Is this by chance one of the newer Profinet CPU’s?[/quote]
Now Ignition is connected with another two similar PLC (neither runs in PC mode with Kepware). I dont think is that the problem.
I had this problems once with a profinet CPU that used many connection ressources. In the standard config, there are resources reserved only for OP/PG connections, so PC/Other will fail first, if the CPU runs out of ressources. Depending on the CPU type, the ressource limit is 8 to 16 parallel connections if i remember right.
Do you have any other Ethernet communication running on this CPU?
@Kevin: It would be great if we could select the ressource in the Ignition driver. In the connection request it’s the 3rd byte in the Called TSAP sequence.
[quote=“chi”] @Kevin: It would be great if we could select the ressource in the Ignition driver. In the connection request it’s the 3rd byte in the Called TSAP sequence.
In the hardware configuration of the S7-300 PLC there is a setting for communications.
Default there is 1 connection for PG, 1 connection for OP and that’s it. That means that one PG (programming device) can be connected at once and one OP (operation panel).
If you want to use OPC servers, you must configure S7 basic communication.
I always use this configuration (even if I need so many or not), when I configure hardware configuration the first time. When at later time somebody wants to connect with OPC or something else to the PLC, I don’t need to change HW config.