Control PLC Siemens S7-1200 from ESP8266 using Modbus TCP Communication

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 50

  • @victormx8360
    @victormx8360 10 місяців тому

    Excellent tutorial !!! Thanks !!! You help is great !!!

  • @zhepty12
    @zhepty12 5 місяців тому

    happy too see this video..

  • @deepakkumawat1364
    @deepakkumawat1364 Місяць тому

    What is the latency. How much time does it take for a TCP packet to go to the plc

  • @yuluo735
    @yuluo735 10 місяців тому

    Hello ,Sir .If it possible to set esp8266 as AP model symultaneously , then use the Scada directly to esp8266 for testing?

    • @YaserAliHusen
      @YaserAliHusen  10 місяців тому

      Hello,
      Hmm...I don't know, I haven't try it

  • @yossefbenaroosh4932
    @yossefbenaroosh4932 9 місяців тому

    Thank you so much for the guide, I've been looking for one for a long time
    but
    it does not work for me.....
    The arduino fails to establish communication

    • @YaserAliHusen
      @YaserAliHusen  9 місяців тому

      Do you use ESP8266?
      For checking the connection
      You can ping them from your laptop.
      If they are detected, you connect ESP to PLC.
      Ensure you have bridge Wifi and Ethernet

    • @yossefbenaroosh4932
      @yossefbenaroosh4932 8 місяців тому +1

      In the Knesset file 502 in the port number both at the entrance and at the exit this was the fault

  • @Trungkienelectronic
    @Trungkienelectronic Місяць тому

    Can I change the Coil address Q0.x to M0.x?

  • @NaserBitcoin-jg4xp
    @NaserBitcoin-jg4xp 9 місяців тому

    I have a esp32 and s7 1200 and a wireless modem how can i connect them together thanks

    • @YaserAliHusen
      @YaserAliHusen  9 місяців тому

      You can follow the video, ESP connect with Wifi, and S7-1200 connect with ethernet.
      Wifi and ethernet connection must in one network, you can create bridge between

  • @barajr1349
    @barajr1349 8 місяців тому

    Nice video, but i have a question. Can it be the other way around? like arduino can also read holding registers from plc...

    • @YaserAliHusen
      @YaserAliHusen  8 місяців тому

      Yes, you can use ethernet shield for communication.

    • @barajr1349
      @barajr1349 8 місяців тому

      @@YaserAliHusen Can you explain it? Especially in the PLC section, because I am confused in that section. Or maybe you can give me a reference source where arduino reads data from plc, thx

    • @YaserAliHusen
      @YaserAliHusen  8 місяців тому

      @@barajr1349, For PLC still same, you just activate modbus TCP server in PLC.
      How to configure PLC as modbus TCP server you can find the video on my channel

    • @barajr1349
      @barajr1349 8 місяців тому

      @@YaserAliHusen So, in the arduino program we just need to add mb.readHreg ???

    • @YaserAliHusen
      @YaserAliHusen  8 місяців тому

      @@barajr1349, yes correct.
      You can find out how to use it in internet, or watch my videos related this matter

  • @franz03033
    @franz03033 9 днів тому

    can i do it with esp32 ?

    • @franz03033
      @franz03033 9 днів тому

      i think it doesnt have a diffrence...

  • @jordanklissman1768
    @jordanklissman1768 7 місяців тому

    how did you define an ip address for the slave?

    • @YaserAliHusen
      @YaserAliHusen  7 місяців тому

      Configure the IP address of PLC using TIA Portal.
      Make sure the IP same with network configuration

    • @jordanklissman1768
      @jordanklissman1768 7 місяців тому

      @@YaserAliHusen so the ip address of plc is the same with the ip address of my laptop?

    • @YaserAliHusen
      @YaserAliHusen  7 місяців тому

      @@jordanklissman1768, different IP, So you have 3 different IP address
      Laptop, PLC and ESP.
      For ESP maybe it will generate by DHCP, but you should create bridge

    • @jordanklissman1768
      @jordanklissman1768 7 місяців тому

      ​@@YaserAliHusenDid you fill in the IP address of the client in the TIA portal in the CONNECT section in the datablock?

    • @YaserAliHusen
      @YaserAliHusen  7 місяців тому

      @@jordanklissman1768, No I dont.
      You can watch my video about configuration modbus in PLC: ua-cam.com/video/YuRjIp0cipA/v-deo.html

  • @TheKillerAxe
    @TheKillerAxe 8 місяців тому

    Can you explain how to create the bridge in more detail?

    • @YaserAliHusen
      @YaserAliHusen  8 місяців тому

      You can see the tutorial about bridge between Wifi and ethernet:
      www.wikihow.com/Bridge-an-Internet-Connection

  • @jordanklissman1768
    @jordanklissman1768 7 місяців тому

    can i use esp32 instead of esp8266?

    • @YaserAliHusen
      @YaserAliHusen  7 місяців тому

      I think you can use ESP32 with same library

    • @jordanklissman1768
      @jordanklissman1768 7 місяців тому

      @@YaserAliHusen i tried but it doesn't connected. My ip address for the server is 192.168.0.1 and the client is 192.168.0.2, is that correct?

    • @YaserAliHusen
      @YaserAliHusen  7 місяців тому

      @@jordanklissman1768, yes it should be correct. You can test by ping command from a computer to both of them

  • @ufuksipor1219
    @ufuksipor1219 11 місяців тому

    hi can it be done with ethernet shield

    • @YaserAliHusen
      @YaserAliHusen  11 місяців тому

      Yes,
      You can watch another video which is using ethernet shield in ESP8266

  • @emmanuelpeter065
    @emmanuelpeter065 Рік тому

    CAn you please upload the TIA BAckup also

    • @YaserAliHusen
      @YaserAliHusen  Рік тому

      OK, Done
      Sorry I missed the TIA files on zip file

  • @saurabhdawre3571
    @saurabhdawre3571 Рік тому

    Hello sir I need your help regarding modbus protocol and nodemcu...So I can I reach you ?....Please can you provide me your email address.

    • @YaserAliHusen
      @YaserAliHusen  Рік тому

      you can reach me by email at yaseralie@gmail.com