Basics 04: OpenPLC on Raspberry Pi with Modbus

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ม.ค. 2025

ความคิดเห็น • 47

  • @kennyking6325
    @kennyking6325 ปีที่แล้ว +6

    Friends,
    Years ago, I was gifted an Arduino starter kit, but I never started program at it because I’m scared of scripting. This is bringing those barriers down!
    Thank you

  • @kennyking6325
    @kennyking6325 ปีที่แล้ว +3

    With plc5 addressing location 126:5 would be node 1, chassis 2, slot 6, terminal 5 . Those units were gigantic!
    Thank you

  • @hugosilva5253
    @hugosilva5253 2 ปีที่แล้ว +4

    Esse tipo de conteúdo no formato vídeo aula facilita demais a difusão do conhecimento. Ficou excelente!!! Parabéns 👏👏👏

  • @CharlieBooker-gr7bj
    @CharlieBooker-gr7bj ปีที่แล้ว +2

    Very powerful programming tool. Absolutely love it. Only complaint is the industrial style processors I use which are compatible are a bit pricey. Which of course OpenPLC has zero control of. But OpenPLC is freaking awesome by itself!

  • @gurkancekic9057
    @gurkancekic9057 2 ปีที่แล้ว +3

    i installed on Debian11. now no problem. maybe needed some trick for Fedora.thank you for this project.

    • @openplc
      @openplc  2 ปีที่แล้ว +1

      Should work just fine on Fedora too.

  • @gurkancekic9057
    @gurkancekic9057 2 ปีที่แล้ว +2

    Hello i installed on Fedora. and it is working thank you.

  • @daveschwarz5279
    @daveschwarz5279 ปีที่แล้ว

    Interesting project save’s a load of money in learning ladder logic

  • @farmsidney
    @farmsidney 2 ปีที่แล้ว +2

    Eu adorei. Já sou entusiasta do ScadaBR faz anos. Com ele conheci o projeto OpenPLC do prof. Tiago, que passa a ser referência entre nós. Grato de mais.

  • @geertvancompernolle2586
    @geertvancompernolle2586 2 ปีที่แล้ว +3

    Fantastic explanation about cooperation between RPi and OpenPLC, great job!
    Question about your remark where you initially changed the outputs to %QX99.0 (video: 16:33) for the ModBus approach to be out of the known RPi range and then reverted it back to %QX0.1 for, what you said, "ease of work later on". Should you have kept %QX99.0, would that have meant you had to change the Address field in the Radzio simulator to 99 instead of 0 (video: 19:20)? Would that have been the only change?

    • @openplc
      @openplc  2 ปีที่แล้ว +2

      If I had used %QX99.0 then the modbus coil address would be 99*8+0 = 792. Remember that the modbus coil addressing is sequential (1,2,3,4,5,6,7,8,9,10...) while PLC discrete addressing goes in bytes (...0.6, 0.7, 1.0, 1.1 ...). That's why you need to use that little formula to convert between addresses, and that's why I went back to %QX0.1 because it is much simpler to calculate: 0*8+1 = 1.

  • @ahmedechoo22
    @ahmedechoo22 2 ปีที่แล้ว +2

    Thank you ! for very nice video.Can i using this program for programming GMTCNT ?

    • @openplc
      @openplc  2 ปีที่แล้ว +1

      As far as I understand that is a proprietary platform. OpenPLC can only program open source hardware

  • @mansurbhamani3905
    @mansurbhamani3905 2 หลายเดือนก่อน

    Very well done and nicely explained. I am sure you have put in a lot of hours to reach so far. Have you managed to prepare run time to make Raspberry Pi or Arduino as a Modbus Master yet? Your example here makes Raspberry Pi as Slave. I am interested in making Raspberry Pi as Modbus Master.

  • @carlosmarciosfreitas
    @carlosmarciosfreitas 2 ปีที่แล้ว +2

    Fantastic project!!!!!!!!

  • @antoniodias2776
    @antoniodias2776 3 หลายเดือนก่อน

    Exelente aula.

  • @jeffrandom4200
    @jeffrandom4200 18 วันที่ผ่านมา

    How can you do something like this but on a VM openPLC?

  • @guymartialdivakou3861
    @guymartialdivakou3861 2 ปีที่แล้ว +2

    Very great job...

  • @rylotrvl8382
    @rylotrvl8382 ปีที่แล้ว

    Would it be possible to use OpenPLC and a raspberry pi to act as just a read / write register and how would you go about doing that. Also would OpenPLC and the Pi show up as a PLC and RTU to software like claroty or is it just going to see a windows machine and Linux.

    • @openplc
      @openplc  10 หลายเดือนก่อน

      By default OpenPLC runs a Modbus server service, so yes, it can work as a simple Modbus device on the network. Clarity and other OT scan tools will identify it as whatever machine you installed OpenPLC on (Linux box, raspberry Pi, etc)

  • @ronalerquinigoagurto555
    @ronalerquinigoagurto555 5 หลายเดือนก่อน

    is the runtime hard real time?

  • @carol-lo
    @carol-lo ปีที่แล้ว

    Thanks for great tutorial. Would OpenPLC runtime be able to be operated in Raspberry Pi Pico? Hope it could and there will be tutorials soon.

    • @openplc
      @openplc  10 หลายเดือนก่อน +1

      Yes, there is a micro runtime for the Pico

  • @thanhlephuong7687
    @thanhlephuong7687 ปีที่แล้ว

    Many thanks!

  • @momzeemix9033
    @momzeemix9033 ปีที่แล้ว +1

    hi open plc
    hownto availp your tshirt?

  • @ashif7542
    @ashif7542 ปีที่แล้ว +1

    I have made a project which is used for testing hydraulic power pack by control of solenoid valve. There in the project i have used arduino mega and depending on the hydraulic machine i have to change the program for that i have used openplc software but the problem is i have to carry my laptop all the time. So I have an idea that I will use Raspberry Pi in which I will install windows and after that I will download and install OpenPLC software and program Arduino with OpenPLC inside Raspberry Pi. so want to know is it possible or not.

    • @openplc
      @openplc  ปีที่แล้ว

      OpenPLC Runtime works on Arduino boards independently. It does not require another host machine. You can unplug your PC and leave the runtime running on the board just fine.

  • @RobertCravenIV
    @RobertCravenIV ปีที่แล้ว

    does 64bit raspbian or 32bit raspbian matter? Minimal OS install or doesn't matter for PLC performance?

  • @miladinseratlic5984
    @miladinseratlic5984 2 ปีที่แล้ว +2

    Analogs IO available ?!

    • @openplc
      @openplc  2 ปีที่แล้ว +1

      OpenPLC supports analog IOs, you just need to pick a platform that has them. Unfortunately Raspberry Pi has no analog GPIO pin, so you will have to use a slave device or switch to another platform.

  • @ruslan.zhumabai
    @ruslan.zhumabai ปีที่แล้ว

    Openplc is cool, but acting a modbus protocol via the website is not standard. Is it possible that situation do via a separate block inside the program?

    • @openplc
      @openplc  10 หลายเดือนก่อน

      Not yet. This will be implemented in the future

  • @yunesrahem2715
    @yunesrahem2715 ปีที่แล้ว

    If i add more GPIO thorough a multiplexer can i program it on openplc ?

    • @openplc
      @openplc  10 หลายเดือนก่อน

      Yes, but you would have to write support for that on PSM

  • @qk-techsmartautomationsolu3552
    @qk-techsmartautomationsolu3552 ปีที่แล้ว

    Is it possible to add softmotion into this openplc software? Has anyone done it and can you give me some information?

    • @openplc
      @openplc  10 หลายเดือนก่อน

      Yes, but it is not simple. Take a look at this post: openplc.discussion.community/post/ethercat-servo-drive-control-using-openplc-and-raspberry-pi-12769229?trail=15

  • @serviceteam8408
    @serviceteam8408 ปีที่แล้ว +1

    Hello , great tutotrial ,
    we would like to use this platform for school teaching,
    and we are evaluating the platform .! donations will also follow .. so that the project will grow more and more .!
    we would have a question : but once you load the project in the controller , you must always have the software open and in Run , or you can use it in Standalone ..! (without connections to the PC , with any Controller either ex. Arduino ? RPi 2/3/4 ...)
    thanks for the answers
    greetings from Central Europe

    • @openplc
      @openplc  ปีที่แล้ว

      OpenPLC Runtime is completely standalone on both the Raspbery Pi and the Arduino boards. However, you can also link two boards together making one master and the other slave. In that scenario the slave board is dependent on the master to run.

  • @Llop66
    @Llop66 9 หลายเดือนก่อน

    At the end of the video, it's a shame you didn't show the LED ON and OFF remotely controlled through MODBUS with RADZIO.
    Good video anyway !

  • @aldob5681
    @aldob5681 ปีที่แล้ว +5

    "there is a little problem". for such a simple example? is not going to be an easy journey. as a traditional programmer this ladder paradigm is un-natural.

    • @dominick253
      @dominick253 2 หลายเดือนก่อน +2

      Yeah coming from a programming background The first time I heard it I was like wait what.
      When I found out it's literally just what a CPU or any computer does but they decided to give it a different name I just did the shake my head thing.

  • @hotrodhunk7389
    @hotrodhunk7389 2 หลายเดือนก่อน

    Might save you some headache...
    The Linux app appears to be completely broken.
    Constantly locks up doesn't work at all like you're showing me.
    Overall seems like not very good software.
    I don't want to hate on a free development team but if they could just focus on stability before adding any new features?
    That would be great. Again i appreciate the massive amount of work to make open PLC but if it doesn't work then it isn't usable.

  • @eamonhannon1103
    @eamonhannon1103 10 หลายเดือนก่อน

    Bad explanation of the Load switch !

  • @varunnand6065
    @varunnand6065 ปีที่แล้ว

    there is no way that raspberry crap is IOT compliant … no one is letting you wire that garbage into their factory's distribution board

  • @SparkTechUg
    @SparkTechUg 5 หลายเดือนก่อน +1

    But, sir, do you mean, i can build a simple PLC with Raspberry pi?

    • @D3rron08
      @D3rron08 5 หลายเดือนก่อน

      Yes