# PLC connection dosen´t work

**URL:** <https://discourse.nodered.org/t/plc-connection-dosen-t-work/9837>\
**Category:** General\
**Created:** [6 April 2019 13:59 UTC](https://discourse.nodered.org/t/plc-connection-dosen-t-work/9837 "2019-04-06T13:59:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MelSick](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@MelSick](https://discourse.nodered.org/u/MelSick)\
**Post date:** [6 April 2019 13:59 UTC](https://discourse.nodered.org/t/plc-connection-dosen-t-work/9837/1 "2019-04-06T13:59:48Z")

</div>

Hey everyone,

i have got a Problem and Maybe you could help me with that. The Problem is that I started node-red and my Connection with the PLC does work. So it says it is online. But it always says too, that no Response from PLC, try connecting again. I tried this first with another SPS and there it went with the new SPS it does not go any more. The first PLC was a CPU 1516-3 PN/DP from Siemens and the second one is also a 1513-1 PN from Siemens. It´s the same Program.

I dont know what I should do. And I hope it is understandable.

Thank you in Advance for your answer.

Kind regards

MelSick

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [6 April 2019 14:29 UTC](https://discourse.nodered.org/t/plc-connection-dosen-t-work/9837/2 "2019-04-06T14:29:01Z")

</div>

Can you possibly share your flow, so it would be easier for us to help you?  
For sharing flows please read before below post:

> [@How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506):
>
> To share code samples or flow json in this forum, you need to take care to format it properly so that it is displayed correctly. The easiest way to do that is to click the 'Preformatted Text' button in the toolbar: [image] Then paste in your code or flow json. You should end up with three back-tick characters - ``` - on their own line before and after the code. On standard US English keyboards, this is on the same key as the ~ character. Using the backticks will ens…

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [6 April 2019 14:32 UTC](https://discourse.nodered.org/t/plc-connection-dosen-t-work/9837/3 "2019-04-06T14:32:10Z")

</div>

It is not entirely clear from your post, was it previously working?  
If so and you are _absolutely_ confident that you have changed nothing in the software at either end then it must be a hardware problem. On the other hand the fact that it says it is connected but not receiving anything suggests it is more likely software.  
What hardware is node-red running on and what is the communication method between the two systems? For example it might Modbus over ethernet.

---

<div class="post-metadata">

**Author:** ![MelSick](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@MelSick](https://discourse.nodered.org/u/MelSick)\
**Post date:** [8 April 2019 09:39 UTC](https://discourse.nodered.org/t/plc-connection-dosen-t-work/9837/5 "2019-04-08T09:39:59Z")

</div>

![%C3%BCberblick](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a7d70b255c063d8c20bc8fe00047d884296855a3.png)

![Variablen](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a48043c18c80e029c5c15bd4613338e34b4cbce4.png)

Hello,  
The communication runs over ethernet and in order to be able to connect everything with each other over ethernet, I have a router. Before I changed the PLC, the data transfer worked wonderfully. I inserted the nodes. I use the node S7 as input and a debug as output.

Kind regards  
Melsick

---

<div class="post-metadata">

**Author:** ![gfcittolin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gfcittolin/32/23354_2.png) [@gfcittolin](https://discourse.nodered.org/u/gfcittolin)\
**Post date:** [10 April 2019 17:12 UTC](https://discourse.nodered.org/t/plc-connection-dosen-t-work/9837/6 "2019-04-10T17:12:56Z")

</div>

Hi @MelSick, developer of the node you're using here

It's not clear to me what your issue is, but since you're connecting to a S7-1500 PLC, I'd recomend you to check the [notes regarding 1200/1500 series](https://github.com/netsmarttech/node-red-contrib-s7#notes-on-s7-12001500). Basically make sure to enable the bits on the PLC, so that Node-RED is able to access the memory areas you want. Also make sure you're getting the `Rack` and `Slot` parameters right, as it should be in your PLC project's configuration.

If you still can't make it work, please share with us the flow you have setup, and what kind of errors you're having and/or the Node-RED logs.

P.S.: Welcome to the Node-RED forum!

---

<div class="post-metadata">

**Author:** ![pranavthakkar](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Post date:** [28 November 2019 10:00 UTC](https://discourse.nodered.org/t/plc-connection-dosen-t-work/9837/7 "2019-11-28T10:00:04Z")

</div>

Its DB1,(comma)WORD0
