Python Snap7 S7 Communication with PUT/GET with Siemens PLC TIA Portal

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

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

  • @rezabizeh2084
    @rezabizeh2084 Месяц назад +1

    Thank you so much for this helpful video

  • @chaukeoscar4295
    @chaukeoscar4295 10 месяцев назад +1

    Very helpful video. Good job!

  • @mustaphaelboukhari5124
    @mustaphaelboukhari5124 2 месяца назад

    THANK YOU SO MUCH

  • @kathirangamuthu3574
    @kathirangamuthu3574 2 года назад

    Thank you very much for sharing details

  • @vanbinh1221
    @vanbinh1221 Год назад +1

    tks Sir

  • @rezazaimzadeh4276
    @rezazaimzadeh4276 2 года назад

    Hello. Very good video but I couldn't connect with plcsim (cpu 1200). If possible, post a video about transferring webcam video (if there is such a thing) to hmi in TIA or wincc and connecting it to s7-1200. Thank you

  • @NattapasPhongthananikorn
    @NattapasPhongthananikorn 2 месяца назад

    do you have an example about db_write (string) ?

  • @user-oq2fp6hx6q
    @user-oq2fp6hx6q 7 месяцев назад

    nice tuto!! did you think make a video with siemens logo 8.3 and snap7.?

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

      thanks! unfortunately, I do not have access to the siemens logo

  • @sigmadews5403
    @sigmadews5403 2 года назад

    Thank you for this tutorial. Can you describe the difference between snap7 and OPC UA when connecting to Siemens PLC? Is snap7 for Siemens something like ADS protocol for Beckhoff PLCs?

    • @plcwars
      @plcwars  2 года назад

      Hi! Thanks for your feedback. OPC UA is industrial standard for data exchange. (en.wikipedia.org/wiki/OPC_Unified_Architecture)
      Snap7 is something to interface directly with the S7 communication protocol which Siemens uses in theirs PLCs. (snap7.sourceforge.net/)
      I am not familiar with Beckhoff and ADS so I am not able to compare it and tell you if it is something similar.

  • @cvg4057
    @cvg4057 2 года назад

    Hi, Could you please let me know if it is possible to use Snap7 for updating PLC program (I have existing program running on PLC. I have made some changes to it on another machine and i created archive of the project in another machine. Now i want to upload the archive project to PLC, is this possible using Snap7 library)

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

    Do you know how I can get firmware version or software version from the plc using snap7?

  • @pravinshinde640
    @pravinshinde640 Год назад

    Thanks for the tutorial.
    Can you please tell how to write string values?

    • @radoslavklein662
      @radoslavklein662 Год назад

      def WriteMemoryChar(start_address, length, value):
      writing = plc.mb_write(start_address, length, bytearray(value.encode('utf-8')))
      print(writing)
      print('Start Address: ' + str(start_address) + ' Value: ' + value)
      ............
      charlength = 10
      chars = 'HelloWorld'
      ChartStartAddress = 104
      for i in range(charlength):
      char = chars[i]
      WriteMemoryChar(ChartStartAddress + i, 1, char)
      ...............
      In TIAPortal create smt function for moving CHARs from memory to STRING in DB..
      ...............
      Youre welcome :)

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

      I acn tell you how to write string send me an email

  • @thatguyfromravenclaw
    @thatguyfromravenclaw 2 года назад

    Hello. Could you please tell me how to read M bit registers/addresses (Like M2.0). Thanks.

    • @plcwars
      @plcwars  2 года назад

      Hi Abhishek, please have a look at my new video: ruclips.net/video/Eo8NyNE1bRY/видео.html

  • @ulyssesperezii
    @ulyssesperezii 2 года назад

    Thanks or the tutorial. Any Idea why I get the error 'function refused by CPU (unknown error)'? Thanks in advance :) :)

    • @plcwars
      @plcwars  2 года назад

      Hi! thanks for your feedback!
      There could be several reasons, did you check if "optimized block access" property is turned off? Is the PUT/GET enabled? Access level should be set to full. You can have a look in the following links for some more description.
      stackoverflow.com/questions/47979438/s7-1200-snap7-exception-cli-function-refused-by-cpu-unknown-error
      sourceforge.net/p/snap7/discussion/general/thread/c9ec5278/
      I hope you will find your issue. Please let me know how it goes! ;)

  • @maxwelmagoi
    @maxwelmagoi 2 года назад

    can you do a video for larger data types such as intergers

    • @plcwars
      @plcwars  2 года назад

      Hi Maxwel, please have a look here, I hope it will be helpful.
      ruclips.net/video/Eo8NyNE1bRY/видео.html

  • @alierdemkurnaz9899
    @alierdemkurnaz9899 2 года назад

    Hi.
    What should I do to change real or int instead of bool ? could you help me ?

    • @plcwars
      @plcwars  2 года назад

      Hi Ali,
      You can take a look at this link: github.com/gijzelaerr/python-snap7/blob/master/example/write_multi.py
      It is an example of reading and writing different types than boolean.
      I hope it will be helpful. Let me know how did it go!

  • @engineermahmoud4017
    @engineermahmoud4017 Год назад

    could I use this method to communicate with s71200 DC/DC/AC?

    • @plcwars
      @plcwars  Год назад

      Hi Mahmoud, I believe you should be able to.

  • @dogukanurkmez2154
    @dogukanurkmez2154 Год назад

    ı have connection refused error. how can ı solve it

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

      Were you able to solve it, currently having the same problem

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

    Did you make vidéo Tuto again?

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

      What do you mean by that? I did not do it again?

  • @tinhuynh6582
    @tinhuynh6582 2 года назад

    hi sir
    how i can contact you directly?

    • @plcwars
      @plcwars  2 года назад

      Hi Tin, you can contact me on this email: plcwarsyt@gmail.com

    • @tinhuynh6582
      @tinhuynh6582 2 года назад

      i can do it the same on s7 1200?

  • @user-oq2fp6hx6q
    @user-oq2fp6hx6q 7 месяцев назад

    i can buy you on for the tuto

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

      you can contact me here: plcwarsyt@gmail.com

  • @cvg4057
    @cvg4057 2 года назад

    Hi, Could you please let me know if it is possible to use Snap7 for updating PLC program (I have existing program running on PLC. I have made some changes to it on another machine and i created archive of the project in another machine. Now i want to upload the archive project to PLC, is this possible using Snap7 library)

    • @plcwars
      @plcwars  2 года назад +1

      Hi, I believe that for the downloading plc program you need dedicated software which in this case will be TIA Portal.