BastienMaes / homebridge-S7-PLC

Homebridge plugin for S7 PLC
MIT License
0 stars 0 forks source link

Connect not working for Siemens PLC series S7 300 and S7 400 #2

Closed Feilner closed 2 years ago

Feilner commented 4 years ago

The currently used connect string is: this.S7Client.ConnectTo(this.ip, 0, 1); This means Rack 0 ans Stlot 1. For the series 300 and 400 this has to be Slot 2.
Therefore I recommend to make the rack and slot number configurable. Currently a workaround is to manual edit the connect within index.js to the following this.S7Client.ConnectTo(this.ip, 0, 2);