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

Поделиться
HTML-код
  • Опубликовано: 14 ноя 2024
  • ХоббиХобби

Комментарии • 50

  • @victormx8360
    @victormx8360 9 месяцев назад

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

  • @zhepty12
    @zhepty12 4 месяца назад

    happy too see this video..

  • @yossefbenaroosh4932
    @yossefbenaroosh4932 8 месяцев назад

    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  8 месяцев назад

      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 7 месяцев назад +1

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

  • @yuluo735
    @yuluo735 9 месяцев назад

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

    • @YaserAliHusen
      @YaserAliHusen  9 месяцев назад

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

  • @barajr1349
    @barajr1349 7 месяцев назад

    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  7 месяцев назад

      Yes, you can use ethernet shield for communication.

    • @barajr1349
      @barajr1349 7 месяцев назад

      @@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  7 месяцев назад

      @@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 7 месяцев назад

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

    • @YaserAliHusen
      @YaserAliHusen  7 месяцев назад

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

  • @deepakkumawat1364
    @deepakkumawat1364 17 дней назад

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

    • @YaserAliHusen
      @YaserAliHusen  15 дней назад

      Sorry, I didn't measure the latency

  • @NaserBitcoin-jg4xp
    @NaserBitcoin-jg4xp 8 месяцев назад

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

    • @YaserAliHusen
      @YaserAliHusen  8 месяцев назад

      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

  • @TheKillerAxe
    @TheKillerAxe 7 месяцев назад

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

    • @YaserAliHusen
      @YaserAliHusen  7 месяцев назад

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

  • @Trungkienelectronic
    @Trungkienelectronic 26 дней назад

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

  • @emmanuelpeter065
    @emmanuelpeter065 11 месяцев назад

    CAn you please upload the TIA BAckup also

    • @YaserAliHusen
      @YaserAliHusen  11 месяцев назад

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

  • @jordanklissman1768
    @jordanklissman1768 6 месяцев назад

    how did you define an ip address for the slave?

    • @YaserAliHusen
      @YaserAliHusen  6 месяцев назад

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

    • @jordanklissman1768
      @jordanklissman1768 6 месяцев назад

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

    • @YaserAliHusen
      @YaserAliHusen  6 месяцев назад

      @@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 6 месяцев назад

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

    • @YaserAliHusen
      @YaserAliHusen  6 месяцев назад

      @@jordanklissman1768, No I dont.
      You can watch my video about configuration modbus in PLC: ruclips.net/video/YuRjIp0cipA/видео.html

  • @HongchanJiyongie
    @HongchanJiyongie 6 месяцев назад

    What type of switch did you use?

    • @YaserAliHusen
      @YaserAliHusen  6 месяцев назад

      You can use any switch, in this video I use direct connection from PLC to my laptop then create bridge connection between ethernet and Wifi connection

  • @ufuksipor1219
    @ufuksipor1219 10 месяцев назад

    hi can it be done with ethernet shield

    • @YaserAliHusen
      @YaserAliHusen  10 месяцев назад

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

  • @jordanklissman1768
    @jordanklissman1768 6 месяцев назад

    can i use esp32 instead of esp8266?

    • @YaserAliHusen
      @YaserAliHusen  6 месяцев назад

      I think you can use ESP32 with same library

    • @jordanklissman1768
      @jordanklissman1768 6 месяцев назад

      @@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  6 месяцев назад

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

  • @saurabhdawre3571
    @saurabhdawre3571 11 месяцев назад

    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  11 месяцев назад

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