How to connect Open PLC with Factory I/O

Поділитися
Вставка
  • Опубліковано 28 сер 2024
  • In this video we will cover:
    00:13​ - Intro
    02:02​ - How to Download and install
    06:23​ - Looking at the example we will use
    12:37​ - Coding in OpenPLC editor
    19:06​ - Wrap up
    - How to download OpenPLC runtime and OpenPLC editor www.openplcpro...
    and Factory I/O
    factoryio.com/
    - How to write your first program in OpenPLC
    - How to link OpenPLC runtime with Factory I/O and connect the two together.
    A little bit more about myself:
    I'm 28 years old and from Belgium 🇧🇪 . I studied Mechatronics at high school and later in the Navy (Minehunter ship).
    After that I worked for 5 years at Volvo cars Ghent as an Automation technician mostly with Sattline PLC's and Siemens PLC's.
    In the last year I worked as a teacher mechatronics working with Phoenix contact PLC's ,Arduino, OpenPLC, ...
    I love beer 🍺🍺🍺 but if you want to support my UA-cam channel you could consider buying me a coffee ☕:
    www.buymeacoff...
    A big thanks to the people who already supported the channel:
    - Stefano

КОМЕНТАРІ • 26

  • @barbellbilly
    @barbellbilly 4 місяці тому +1

    Thank you so much! This is very educational!!!

  • @LorneGiles
    @LorneGiles 3 роки тому +3

    It is pronounced "data", great video and really useful bridge between OpenPLC and other devices/software.

    • @seafoxc
      @seafoxc  3 роки тому

      I'm pretty sure it is pronounced "data" but we will agree to disagree ;-).

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

    It's working...thanks to this vid :-D

  • @JoshLiu
    @JoshLiu Рік тому +1

    Thank you for the video - great tutorial!

  • @abhijeetgaonkar449
    @abhijeetgaonkar449 3 роки тому +2

    It was really great video🔥, nice explaination 💯

  • @McBadword
    @McBadword Рік тому +1

    incredible, thank you!

  • @chrislanigan1359
    @chrislanigan1359 Рік тому +1

    Great tutorial

  • @matteogiordano2300
    @matteogiordano2300 3 роки тому +2

    Great tutorial!

  • @quanpower
    @quanpower Рік тому +1

    amazing,thank u!

  • @vitaliyleshchinskiy5043
    @vitaliyleshchinskiy5043 2 роки тому +1

    Thanks you!

  • @nathanbandeira5261
    @nathanbandeira5261 2 роки тому +1

    Tks bro

  • @josevaldesarcos4459
    @josevaldesarcos4459 3 роки тому +1

    thanks!

  • @abderrahmanesebaa7638
    @abderrahmanesebaa7638 2 роки тому +1

    Great tutorial! Thanks! Is there a software that can simulate an HMI and build its interface? if there is, can you please make a video showing how to connect it with openplc and factoryio?

    • @seafoxc
      @seafoxc  2 роки тому

      Thanks, T'm planning to make a video in the future about HMI an openPLC. The program that is mostly used is ScadaBR.

  • @erlo928
    @erlo928 2 роки тому +1

    maybe a bit of a weird question, but do know how to create a small infinite loop, to crash the fbd program?
    I had one before on accident and now I'm trying to simulate a crash with this and am not able to do it :(

    • @seafoxc
      @seafoxc  2 роки тому

      Is it possible that the error you did encounter was not in fact an infinite loop? I don't think it is possible in the FBD language (or you should wrote a custom FB ins STL). Maybe you encountered an overflow error? This can be don by adding 1 to a variable (CTU +1) each cycle. After the value is above 32767 you will get an overflow (most PLC go back to 0 or spit out an error). If you did find a way to make a loop with FBD-blocks, please let me know! :-). It was a good question either way.

  • @andrewc7524
    @andrewc7524 Рік тому +1

    I have enjoyed your work, is there a way to have the OpenPLC runtime running on the Arduino and connect Factory I/O to it? I see that you have written arduino code and interfaced with Factory I/O, and Open PLC, I was not sure if there was a way to do the combination.
    Id like to build a control cabinet to interface as a trainer for PLC students, arduino running the OpenPLC runtime, while also having a physical control cabinet that they have built and wired.

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

      Mmm, I will have a look at this challenge when I get back from vacation 7 days from now. The problem is that factory Io works with modbus TCP Ip and the Arduino works with modbus on serial. I once wrote a script that changed made the conversion but never tested it for this purpose.

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

      @@seafoxc I appreciate the quick response, I'll keep tinkering with it. I am lacking on programming skills outside of the controls world, but not scared to tweak some code. Id love to get it all working on a VM, so the students could take it home with them and study and explore outside of available lab hours.

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

      @@andrewc7524 that would be cool for students. I'm also in the first place a PLC technician/programmer. I also teach in a Belgium highschool (16-18 year olds). In wich country do you teach?

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

      @@seafoxc I teach at a community college in the US. We have traditionally taught only Rockwell LD logic, but have many international manufactures in the region that need students that are comfortable with all of the languages.

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

      @Andrew C, I tried it but then I came across the issue that makes this impractical. The inputs are added to the Modbus Input register but you can not write to a Modbus register. So it is not possible to write the data from a a factory IO Sensor to the Arduino Register. It is possible to read and write to Modbus Coils so you can do a whole workaround by using not used Outputs as Inputs in your program (I did the same in the Fuxa HMI video). But I guess this would be confusing to tach to students and it is better to make use of the OpenPLC runtime to simulate and then change the addressing to use it in the real world.

  • @FreedomForKashmir
    @FreedomForKashmir 10 місяців тому +2

    its called "daita" not DATA