# Reading PLC variables from Siemens ET200S CPU

**URL:** <https://discourse.nodered.org/t/reading-plc-variables-from-siemens-et200s-cpu/77728>\
**Category:** Industrial\
**Created:** [20 April 2023 07:51 UTC](https://discourse.nodered.org/t/reading-plc-variables-from-siemens-et200s-cpu/77728 "2023-04-20T07:51:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fox](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@fox](https://discourse.nodered.org/u/fox)\
**Post date:** [20 April 2023 07:51 UTC](https://discourse.nodered.org/t/reading-plc-variables-from-siemens-et200s-cpu/77728/1 "2023-04-20T07:51:24Z")

</div>

Hi,

I want read out tags from a Siemens ET200S CPU, I managed to get the thing working with the Siemens PLCSIM, I can read out data from my program in that case.

When I try to connect to the actual PLC I get a timeout error.  
I changed the ip to the PLC's address, port is 102, I tried with 'Rack 0 Slot 2' and 'Rack 0 Slot 1' configs.  
I am able to ping the PLC's address from the terminal.

Is it possible to get this work with ET200S? What should I configure in the PLC?

It states S7 communication in the description of the CPU, but there is no place in Tia Portal where I can enable GET/PUT access like in the newer models (or at least I couldn't find it).

---

<div class="post-metadata">

**Author:** ![KarolisL](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@KarolisL](https://discourse.nodered.org/u/KarolisL)\
**Post date:** [20 April 2023 10:25 UTC](https://discourse.nodered.org/t/reading-plc-variables-from-siemens-et200s-cpu/77728/2 "2023-04-20T10:25:05Z")

</div>

I haven't worked with ET200S so I'm no expert in this field.

I agree with you. It seems ET200S is PLC model which doesn't have Enable/disable put/get checkmark which looks odd.

It should work with PUT/GET, because PUT/GET blocks are loadable. Do you have means to set up PUT/GET between 2 PLCs to check? If it works with PUT/GET it should work with nodered

Connection settings are (which you already tried)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/ee867536ef6ae34af028153731be293e8015bf85.png)

What is your polling interval? Maybe you could get around and setup Open user communication:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/2/628496a7dedec1551a2e30b184bb89bd982aeb22.png)  
based on this example:

> [@Siemens 1200 plc to node red (TCP)](https://discourse.nodered.org/t/siemens-1200-plc-to-node-red-tcp/71949/5):
>
> I should have been clearer. DB = Data Base not an S7 data block. Preformed telegrams to the data base interface.

---

<div class="post-metadata">

**Author:** ![fox](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@fox](https://discourse.nodered.org/u/fox)\
**Post date:** [20 April 2023 11:31 UTC](https://discourse.nodered.org/t/reading-plc-variables-from-siemens-et200s-cpu/77728/3 "2023-04-20T11:31:19Z")

</div>

Thanks I got the connection working, the problem was with my virtual machine's network, so not node-red related. I also set the S7 basic communication to 1 (it was 0), I don't know if that helped, but its working now!

 ![s7comm](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/9/0949dbf37a5de79cfdb64fb6ee479b5ffa1cb21e.png)

---

<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:** [4 May 2023 11:31 UTC](https://discourse.nodered.org/t/reading-plc-variables-from-siemens-et200s-cpu/77728/4 "2023-05-04T11:31:59Z")

</div>

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