# Connecting PLC to node-red through MPI-USB Adapter

**URL:** <https://discourse.nodered.org/t/connecting-plc-to-node-red-through-mpi-usb-adapter/33655>\
**Category:** Industrial\
**Created:** [2 October 2020 06:46 UTC](https://discourse.nodered.org/t/connecting-plc-to-node-red-through-mpi-usb-adapter/33655 "2020-10-02T06:46:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![umair](https://avatars.discourse-cdn.com/v4/letter/u/e495f1/32.png) [@umair](https://discourse.nodered.org/u/umair)\
**Post date:** [2 October 2020 06:46 UTC](https://discourse.nodered.org/t/connecting-plc-to-node-red-through-mpi-usb-adapter/33655/1 "2020-10-02T06:46:26Z")

</div>

Hey  
i am facing a problem connecting my siemen s7-300 plc to pi 4b through mpi-usb adapter. It says error connecting to plc wrong MPI address [0]. I have installed all the libraries for the adapter like MPI-USB library, libudev etc. I have attached my settings and debug console. I have tried different MPI addresses upto 21 it didn't work. However, when I programmed my plc the address of mpi adapter in TIA Portal as 20. When i check if my pi detects the adapter in terminal then it shows siemen AG connected at bus 001, device 04. I hope someone can help me out.

 ![2020-10-02-114843_1360x768_scrot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/3/531d1ddfbc2eb89621d77aae4870c2111ab7b03d.png) ![2020-10-02-115732_1360x768_scrot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/4/44cb7cc023d6f98e95609b8094c72389f69cc954.png) ![2020-10-02-115741_1360x768_scrot](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/b/7b75110ab941eed2df234d45c10aa9b4b125600f.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:** [1 December 2020 06:46 UTC](https://discourse.nodered.org/t/connecting-plc-to-node-red-through-mpi-usb-adapter/33655/2 "2020-12-01T06:46:29Z")

</div>

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