# Problems with S7300

**URL:** <https://forum.inductiveautomation.com/t/problems-with-s7300/6321>\
**Category:** Ignition\
**Created:** [April 25, 2013, 9:50am UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321 "2013-04-25T09:50:37Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![d.laquidain](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@d.laquidain](https://forum.inductiveautomation.com/u/d.laquidain)\
**Post date:** [April 25, 2013, 9:50am UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/1 "2013-04-25T09:50:37Z")

</div>

Hi,

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

S7 driver Version → 1.5.0  
Gateway version → 7.5.7

Thanks  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/d41d0bfd634fb64bed47cad93640484dd6348271.jpg)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/16d4513a5543e3a521d8c1740c31eed78fe18a9a.png)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/16d4513a5543e3a521d8c1740c31eed78fe18a9a.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 25, 2013, 1:56pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/2 "2013-04-25T13:56:08Z")

</div>

It might help to go to the levels tab, search for the ConnectRequest, find the one associated with your device, and turn that to TRACE.

Without seeing any logs my guess is that you have an incorrect rack, slot, or PDU size configured.

---

<div class="post-metadata">

**Author:** ![d.laquidain](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@d.laquidain](https://forum.inductiveautomation.com/u/d.laquidain)\
**Post date:** [April 25, 2013, 2:13pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/3 "2013-04-25T14:13:29Z")

</div>

I´ve copied the configuration of kepware.

Now I´ve installed a demo version of kepware and I can comunicate with the S7.

In relation of PDU size, how I could know this one? In kepware doesn´t appear this parameter.

I´ve upload the kepware configuration and the S7 driver configuration.

Thanks  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7a97af3685b2148b6900c93763b7706331c22b99.jpg)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/cdc7fa12087e1286d96f3f6ff8d63fe38d46c39e.jpg)

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/19cd7343527cf5d64131dcbb94f8b6754f134485.jpg)  
  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/a8bb6e3c88348b3c9bfbd50266fc402ae8bc1a08.jpg)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 25, 2013, 2:25pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/4 "2013-04-25T14:25:43Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![d.laquidain](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@d.laquidain](https://forum.inductiveautomation.com/u/d.laquidain)\
**Post date:** [April 25, 2013, 3:43pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/5 "2013-04-25T15:43:08Z")

</div>

I´ve installed wireshark and captured traffic but i don´t know exactly what diferences find.

I´ve checked the rack and slot numbre again and is like Kepware.

RAck = 0  
slot = 2

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 25, 2013, 3:54pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/6 "2013-04-25T15:54:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![d.laquidain](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@d.laquidain](https://forum.inductiveautomation.com/u/d.laquidain)\
**Post date:** [April 25, 2013, 6:32pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/7 "2013-04-25T18:32:51Z")

</div>

could you indicate the support email?

thanks

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 25, 2013, 6:33pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/8 "2013-04-25T18:33:19Z")

</div>

[support@inductiveautomation.com](mailto:support@inductiveautomation.com)

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [April 25, 2013, 7:15pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/9 "2013-04-25T19:15:42Z")

</div>

Try to change the link type in Kepware. Now you have PG. Try to change it to OP or PC.

---

<div class="post-metadata">

**Author:** ![d.laquidain](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@d.laquidain](https://forum.inductiveautomation.com/u/d.laquidain)\
**Post date:** [April 25, 2013, 7:21pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/10 "2013-04-25T19:21:48Z")

</div>

With OP runs but not with PC.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 25, 2013, 7:41pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/11 "2013-04-25T19:41:13Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [April 25, 2013, 7:53pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/12 "2013-04-25T19:53:55Z")

</div>

Hi,

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?

---

<div class="post-metadata">

**Author:** ![d.laquidain](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@d.laquidain](https://forum.inductiveautomation.com/u/d.laquidain)\
**Post date:** [April 25, 2013, 8:05pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/13 "2013-04-25T20:05:28Z")

</div>

[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

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [April 25, 2013, 8:06pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/14 "2013-04-25T20:06:55Z")

</div>

> [@d.laquidain](#):
>
> With OP runs but not with PC.

Who runs with OP? Ignition?

---

<div class="post-metadata">

**Author:** ![d.laquidain](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@d.laquidain](https://forum.inductiveautomation.com/u/d.laquidain)\
**Post date:** [April 25, 2013, 8:07pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/15 "2013-04-25T20:07:57Z")

</div>

[quote=“chi”]Hi,

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.

---

<div class="post-metadata">

**Author:** ![d.laquidain](https://avatars.discourse-cdn.com/v4/letter/d/90ced4/32.png) [@d.laquidain](https://forum.inductiveautomation.com/u/d.laquidain)\
**Post date:** [April 25, 2013, 8:08pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/16 "2013-04-25T20:08:31Z")

</div>

> [@zxcslo](#):
>
> [quote="d.laquidain"]With OP runs but not with PC.

Who runs with OP? Ignition?[/quote]

kepware

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 25, 2013, 8:08pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/17 "2013-04-25T20:08:41Z")

</div>

Ignition can only use PC, apparently 🙂

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [April 25, 2013, 8:22pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/18 "2013-04-25T20:22:09Z")

</div>

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.

```auto
c2 02 01 02 - PG (Programming device)
c2 02 02 02 - OP (Operator panel)
c2 02 03 02 - PC/Other
```

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 25, 2013, 8:35pm UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/19 "2013-04-25T20:35:10Z")

</div>

[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.

`
c2 02 01 02 - PG (Programming device)
c2 02 02 02 - OP (Operator panel)
c2 02 03 02 - PC/Other
`[/quote]

Sometime soon I will try and handle this as well as the other couple Siemens driver requests that have popped up. ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [April 26, 2013, 10:45am UTC](https://forum.inductiveautomation.com/t/problems-with-s7300/6321/20 "2013-04-26T10:45:17Z")

</div>

In the hardware configuration of the S7-300 PLC there is a setting for communications.  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b37c7e44a00d845f4dae9aa37e41e1f7dbf7b981.jpg)  
  
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.  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7fa419d335c1b6d30665be112a5000c020107f48.jpg)  
  
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.

[Next page](https://forum.inductiveautomation.com/t/problems-with-s7300/6321.md?page=2)
