Skip to content

datajohan-karlberg/ESP8266-talk-to-LOGO-PLC-by-Modbus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

ESP8266-talk-to-LOGO-PLC-by-Modbus

Here is a sample how to ESP8266 communicate with Siemens LOGO PLC by MODBUS

Description

The sample show how to read input signal in LOGO and send to ESP8266 and also sent boolean value from ESP8266 to relay output in LOGO PLC. That is send by modbus protocoll by WIFI.
ESP8266 act as a slave/server (listen) and LOGO is master/client (sending). It is ESP8266 that have the list of "coils". It is LOGO that contact ESP8266 and read/write coils. I try it on EPS32, but it not work there.

P2

LOGO PLC from Siemens

Pict 2022-03-15 12-48-14 007
This little PLC have 8 inputs and 4 relay outputs.

LOGO Programming

Pict 2022-03-17 10-13-45 001
This is the program in LOGO PLC. In top is sender that sends coil 10 evry seconds. Next section test coil 11 and connect it to relay 1 in LOGO. LOGO have IP 192.168.0.3 in this case but it not important. Coilnumbers are not same in Arduino-world and LOGO-world. Coil 9 in Arduino is coil 10 in LOGO-world. (Little bit confusing)

Pict 2022-03-17 10-13-45 004
LOGO!Soft Comfort is the program for LOGO PLC

Used Library

modbus-esp8266
https://github.com/emelianov/modbus-esp8266

About

ESP8266 communicate with Siemens LOGO PLC by MODBUS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages