# SIMATIC IOT 2040 - Node Red - Photoelectric Omron Sensor

**URL:** <https://discourse.nodered.org/t/simatic-iot-2040-node-red-photoelectric-omron-sensor/69240>\
**Category:** Industrial\
**Created:** [19 October 2022 08:45 UTC](https://discourse.nodered.org/t/simatic-iot-2040-node-red-photoelectric-omron-sensor/69240 "2022-10-19T08:45:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ManuGW](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manugw/32/68640_2.png) [@ManuGW](https://discourse.nodered.org/u/ManuGW)\
**Post date:** [19 October 2022 08:45 UTC](https://discourse.nodered.org/t/simatic-iot-2040-node-red-photoelectric-omron-sensor/69240/1 "2022-10-19T08:45:13Z")

</div>

**Hi everyone!**

I wrote a forum entry 2 weeks ago about the installation of nodes in my iot2040 with an input/output module. I solved that and how to do it and thank you everyone @Colin, @yoba, @iiot2k.  
Now i got a problem that it's out of my knowledge (i'm new at this and i'm learning).

**This is my IOT2040 with the input/otput module. (this one 👇)**

 ![MicrosoftTeams-image (3)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/7/17e1a41ecc8f96f22f540199b9bc4568bcbfcaa4.jpeg)

 ![MicrosoftTeams-image (2)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/8/28c31ec184002f9124b3ca3f8ee6869be9e1dcf6.jpeg)

**I got a photoelectric barrier sensor. (this one 👇)**

 ![MicrosoftTeams-image (1)](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/2/32861bbaa70e5156a6784895c0ce569950904d16.jpeg)

I need to put it in a production line and see the data when something cross it.  
I'm using the node "simatic\_iot2000" connected to a debug module and i don't receive a 1 when something cross it, i ttried all the digital pins but it doesn't work

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

The input button that is connected to the function and to mqtt, it's connected to my PC's node-red which is connnected to my data base. If a press that button a "tick" is written in the database.  
Maybe i got something wrong in the installation or my hardware it's broken or i need to do some step that i didn't do.

I tried with other node that it's called "node-red-contrib-IoT2000-gpio" and mine is "node-red-contrib-iot2000-gpio". But both it doesn't work for me.

Thank you everyone,

Best regards,  
Manuel

---

<div class="post-metadata">

**Author:** ![yoba](https://avatars.discourse-cdn.com/v4/letter/y/57b2e6/32.png) [@yoba](https://discourse.nodered.org/u/yoba)\
**Post date:** [19 October 2022 12:21 UTC](https://discourse.nodered.org/t/simatic-iot-2040-node-red-photoelectric-omron-sensor/69240/2 "2022-10-19T12:21:01Z")

</div>

Hi Manuel,

What embedded board do you use? is it 6ES7647-0KA01-0AA2 or 6ES7647-0KA02-0AA2?  
Make sure your wiring is correct. Another important factor: what is the input type from barrier sensor? NPN (Sinking) or PNP (Sourcing)? depending on your sensor, the wiring will be different.  
Please refer to manual [here](https://support.industry.siemens.com/cs/no/en/view/109745681) for further details.

---

<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:** [18 December 2022 12:21 UTC](https://discourse.nodered.org/t/simatic-iot-2040-node-red-photoelectric-omron-sensor/69240/3 "2022-12-18T12:21:01Z")

</div>

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