# Communication netlink+ profibus with 4siemens s7-300 2DP

**URL:** <https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214>\
**Category:** Industrial\
**Tags:** function-node\
**Created:** [5 May 2022 06:24 UTC](https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214 "2022-05-05T06:24:34Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dagard23](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@dagard23](https://discourse.nodered.org/u/dagard23)\
**Post date:** [5 May 2022 06:24 UTC](https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214/1 "2022-05-05T06:24:34Z")

</div>

hello, I want to recover information via siemens s7-300 controllers in profibus network, I am connected with netlink but impossible to define on which PLC of the profibus network I can fetch the information with the s7-comm node or another s7

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [5 May 2022 07:26 UTC](https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214/2 "2022-05-05T07:26:02Z")

</div>

Could you give a bit more details on how you're trying to do it?

I've connected to several S7-300 with the [node-red-contrib-s7](https://flows.nodered.org/node/node-red-contrib-s7) node and works fine with me, just following the steps in the documentation.

If you can elaborate a bit, we might find why it is not working in your case.

---

<div class="post-metadata">

**Author:** ![dagard23](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@dagard23](https://discourse.nodered.org/u/dagard23)\
**Post date:** [5 May 2022 07:59 UTC](https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214/3 "2022-05-05T07:59:06Z")

</div>

I am looking to recover datablock values ​​on several s7-300 PLCs connected in profibus and connect with a netlink module which is connected to the ethernet network, my problem is that node red sees the communication with netlink but I do not know how to recover the values ​​on each of the PLCs in my profibus network. sorry for my english, i m french 🙂

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [5 May 2022 12:15 UTC](https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214/4 "2022-05-05T12:15:17Z")

</div>

What is the configuration of your PLCs? Rack/slot? IP?

How did you configure the S7 nodes to try and read from the PLC? Do the configuration of the nodes match the PLCs?

In which datablock and address are your variables? Did you include those in the S7 node configuration?

Is the memory access optimized? (if yes, you won't be able to read with the S7 node).

How often do you read from the PLC? What's the timeout setting?

---

<div class="post-metadata">

**Author:** ![dagard23](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@dagard23](https://discourse.nodered.org/u/dagard23)\
**Post date:** [5 May 2022 13:41 UTC](https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214/5 "2022-05-05T13:41:21Z")

</div>

![config plc](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b62465526e0bc31e95a6c476a58327e79526aaf5.png)  
 ![config netlink](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/e/4e8c4f99277e6c18098011fa793ae6fbf8ef95ff.png)

I am already trying to make the contrib s7 or s7-comm in connected mode but it does not work.  
I need to retrieve the variable from the db143 w28 block of the PLC profibus address 10.  
the node parameters is the netlink address in 192.168.140.12 the port is 7777, and rack 0 and slot 10 (profibus address).

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [5 May 2022 16:38 UTC](https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214/6 "2022-05-05T16:38:42Z")

</div>

I don't think the S7 node works with Netlink, since it doesn't say anything about it in the documentation. If you have any doubts, you can contact the creator on Github.

The S7 node will work if you can supply the direct IP for each PLC, as well as the Rack/Slot address.

For instance, for this PLC:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/f/df023db214f7cc63d80554871bfb657253fb1062.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/1/6195e3162b13cd7283b39f1429bcd53102bc4774.png)

The S7 node must be configured like this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/5/e543809d6c7e71ec712f6fdc010cb7b8a692aef6.png)

Then it will work fine.

---

<div class="post-metadata">

**Author:** ![iiot2k](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@iiot2k](https://discourse.nodered.org/u/iiot2k)\
**Post date:** [5 May 2022 17:50 UTC](https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214/7 "2022-05-05T17:50:39Z")

</div>

Profibus is a serial protocol.  
You must use a Profibus to Profinet gateway.  
But if its works with the node is not sure, because Profibus don't support the ISO protocol.

---

<div class="post-metadata">

**Author:** ![OriolFM](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/oriolfm/32/30710_2.png) [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Post date:** [6 May 2022 06:44 UTC](https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214/8 "2022-05-06T06:44:19Z")

</div>

I totally misread "Profibus".

I'm using profinet, since the S7 node requires direct Ethernet connection with a single IP associated to each PLC in order to work.

S7-300 PLCs have an ethernet connector. Can you configure them to be accessible through it? If so, then the S7 node should work without a hitch.

---

<div class="post-metadata">

**Author:** ![dagard23](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@dagard23](https://discourse.nodered.org/u/dagard23)\
**Post date:** [6 May 2022 06:57 UTC](https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214/9 "2022-05-06T06:57:22Z")

</div>

sorry i m only connector profibus on plc and a connector netlink for ethenet 😩

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 July 2022 06:57 UTC](https://discourse.nodered.org/t/communication-netlink-profibus-with-4siemens-s7-300-2dp/62214/10 "2022-07-05T06:57:54Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
