# Siemens S7-300, Connection Errors

**URL:** <https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716>\
**Category:** Ignition\
**Created:** [August 23, 2019, 2:20pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716 "2019-08-23T14:20:05Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [August 23, 2019, 2:20pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/1 "2019-08-23T14:20:05Z")

</div>

Hey ya’ll,

I’m getting some errors connecting to an S7-300, and I’m not sure what my next step should be in troubleshooting. Here’s the set of repeating events that are filling up my logs…

```auto
S7300Driver 
Socket connection closed; DriverState was Connecting.

ConnectRequest 
ConnectRequest failed. FailureType: DISCONNECTED

NegotiatePDURequest 
NegotiatePDURequest failed. FailureType: DISCONNECTED

```

I can ping the PLC and view the web portal. There is another identical S7-300 rack in the plant, and its connection to Ignition is working fine.

The weird thing is that this same connection worked when I first set it up; when I came back this week it was in the disconnected state.

Thanks,  
Ben

---

<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:** [August 23, 2019, 2:46pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/2 "2019-08-23T14:46:04Z")

</div>

Is something else connected to this Plc? Older S7-300 processors have very limited connection resources.  
You can check the used connections in the rack status.

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [August 23, 2019, 4:49pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/3 "2019-08-23T16:49:18Z")

</div>

Here’s the modules I’m dealing with:  
CPU 315-2 DP  
CP 343-1

Unfortunately, I can’t connect to the CPU online in order to see the occupied connection resources… I can see the CP 343-1, but the connection to the CPU cannot be established. I’m not on site, so I can’t hook up directly at the moment.

There’s an IM 365 extending the main rack, 2 remote I/O racks using IM 153-1’s, and 2 DP/AS-i Gateways listed under the HW Config. There’s also an HMI connected, and an Anybus Gatway for communicating with several Rockwell PLC’s.

In CPU Properties/Communication, the reserved resources are:  
PG Communication: 1  
OP Communication: 1  
S7 Basic Communication: 12  
S7 Communication: 0  
Maximum Number of Connection Resources: 16

What exactly counts as a connection resource in the S7 series?

Though I can’t connect to the CPU, in the diagnostic buffer of the CP 343-1, there’s a bunch of error messages like this with different CID’s:

```auto
Protocol Error
CID of the connection: 33, disconnect reason 85, connection status: 3
External error, Incoming Event

```

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [August 23, 2019, 4:53pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/4 "2019-08-23T16:53:19Z")

</div>

This controller is a part a two identical-_ish_ systems in this plant. The second system is communicating okay, and the controller is reporting the following connection usage:

PG Communication: 1  
OP Communication: 2  
S7 Basic Communication: 0  
Other Communication: 1  
Cycle load due to communication: 20%

It’s possible that the systems are more different than they appear to be, but the second system seems to have plenty of communications headroom.

---

<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:** [August 23, 2019, 8:24pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/5 "2019-08-23T20:24:35Z")

</div>

> [@bmusson](#):
>
> but the connection to the CPU cannot be established

That might be the cause of your problem. I have seen S7-300s that required a hard reset to re-enable communication.  
The resource limit of the CP341 should not be a problem. In theory, every connection to a programming device, a HMI or a gateway uses a resource. The DP bus uses another mechanism.

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [August 25, 2019, 2:59pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/6 "2019-08-25T14:59:45Z")

</div>

A hard reset got things working again, thanks Chi!

Any idea what could have caused it to stop working? We’d obviously like to avoid unrecoverable communications dropouts.

---

<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:** [August 27, 2019, 8:18pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/7 "2019-08-27T20:18:26Z")

</div>

> [@bmusson](#):
>
> Any idea what could have caused it to stop working?

No, i have no idea what could have caused this. Upgrading the processor and the CP to the latest firmware can't hurt.

---

<div class="post-metadata">

**Author:** ![BVE](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@BVE](https://forum.inductiveautomation.com/u/BVE)\
**Post date:** [February 25, 2022, 2:15pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/8 "2022-02-25T14:15:29Z")

</div>

Hello,

i have an simalar problem, i am trying to connect ignition with an CPU315-2DP including CP 343-1lean card, but i am failing to get it working when i try to ping the plc i am able to reach it, i checked the logs and it succesfully opens the TCP connection but then failed.

i also checked the communications tab in the diagnostics of the siemens CPU

could someone help me to get the communication working?

 ![logs](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/6/46348bfc60fb4b8a75f16110cce1ea07b4b77c09.jpeg)  
 ![ctrld](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/a/6a051707a64f1cd5f3c0c82a0c38797663b712d9.jpeg)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [February 25, 2022, 2:45pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/9 "2022-02-25T14:45:16Z")

</div>

That “Connection reset” message looks like the kind of error you get when a deep packet inspection firewall decides the traffic is unsafe. Is there a firewall between your Ignition server and the PLC?

---

<div class="post-metadata">

**Author:** ![bmusson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmusson/32/87530_2.png) [@bmusson](https://forum.inductiveautomation.com/u/bmusson)\
**Post date:** [February 25, 2022, 5:10pm UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/10 "2022-02-25T17:10:29Z")

</div>

Also just to close the loop on my original issue, we eventually found some major network problems in the plant.

After fixing two separate switching loops all our communication issues went away (imagine that).

---

<div class="post-metadata">

**Author:** ![SKA](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ska/32/29528_2.png) [@SKA](https://forum.inductiveautomation.com/u/SKA)\
**Post date:** [February 28, 2022, 7:58am UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/11 "2022-02-28T07:58:53Z")

</div>

When i have encountered this problem previously, often putting the cpu into stop and then back to run usually worked for me.

---

<div class="post-metadata">

**Author:** ![SKA](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ska/32/29528_2.png) [@SKA](https://forum.inductiveautomation.com/u/SKA)\
**Post date:** [February 28, 2022, 7:59am UTC](https://forum.inductiveautomation.com/t/siemens-s7-300-connection-errors/27716/12 "2022-02-28T07:59:31Z")

</div>

Sometimes the connection “hangs” on the plc side and locks up the connection and holds the counter of how many connection there is.
