Basics 05: Expanding PLC IOs with OpenPLC Slave Devices

  Переглядів 17,453

OpenPLC

OpenPLC

Рік тому

On Basics 05: you will explore OpenPLC's Slave Devices module to expand your PLC's IOs. For this video, we will be using a Raspberry Pi, which is quite limited in number of IOs, as the main PLC running OpenPLC Runtime. The Raspberry Pi's IOs are then expanded using an Arduino Uno board connected to the Pi's USB port.
Configuring Slave Devices 01:38
Adding multiple Slaves 08:11
Configuring poll rate 10:26
Adding Arduino Uno to Raspberry Pi 11:46
Burning Arduino firmware 12:30
Writing PLC program 17:14
Testing the circuit 24:28
openplcproject.com/
Please consider supporting OpenPLC by joining our Patreon: / openplc
OpenPLC Friends:
Freewave
FACTS Engineering

КОМЕНТАРІ: 32
@sparkyy0007
@sparkyy0007 Місяць тому
Excellent explanation. Thanks for this project.
@kennyking6325
@kennyking6325 Рік тому
Excellent Friends, would you look at this! It is truly wonderful
@Austiego5000
@Austiego5000 Рік тому
Love the functionality! Keep up the good work!
@bandilecandrian6223
@bandilecandrian6223 Рік тому
Good content this helped in my final year project.
@giginmathew1
@giginmathew1 3 місяці тому
Good job this is useful for project reducing cost and programming in ladder logic
@kennyking6325
@kennyking6325 Рік тому
Friends, With plc5 addressing location 126:5 would be node 1, chassis 2, slot 6, terminal 5 . Those units were gigantic! Thank you
@ahmadsakr4831
@ahmadsakr4831 Рік тому
What about shift register for inputs and outputs? I already used this Way in ldmicro , I expanded io pins to many shift registers pins only by using only 3 pins from AVR microcontroller for information ldmicro is for programming microcontroller by ladder (AVR,pic,arm,Arduino and esp)
@remiguillonbony6528
@remiguillonbony6528 Рік тому
Hey ! Great video ! Is it possible to make the Rapsberry/Arduino system you presented at 24:33 independent from the host PC ? For example, have the OpenPLC runtime running on the Raspberry and the Arduino connected on it too, while using an battery as power supply ?
@openplc
@openplc Рік тому
The system is totally independent from the PC. In that case, the host is actually the Raspberry Pi itself. The PC is used only to create the PLC program and upload it to the Pi. The usb cable you see connected to the Pi is used only for power.
@EpicCalamar
@EpicCalamar Рік тому
Ooh I see, I thought there were two cables both connected to the PC. I didn’t catch that it was a single cable looping on itself ^^ Thanks !
@DGEsA
@DGEsA Рік тому
My question is do you have a handbook about of using openplc editor I'm interested in how to use the analog inputs in my Arduino UNO
@mail87523
@mail87523 Рік тому
It would be super cool if openplc had can-fd communication which is true real time communication with very low latency. Seed have can-fd hat for raspberry and work great but we need glue for openplc !!! SocketCAN with can-utils is also very good with can-fd and it work on raspberry
@delackels1649
@delackels1649 Рік тому
Would it be possible to connect a USB Zigbee add-on radio and use it for inputs and outputs? Would you nee to write custom drivers or is there something already made?
@openplc
@openplc Рік тому
If you can make your Zigbee module talk Modbus then yes, you can
@selahattinemreduman106
@selahattinemreduman106 Рік тому
Hi, a have a question. For example can i use 2 pcs Esp32 for this method?
@openplc
@openplc Рік тому
Yes, you can
@ahmadsakr4831
@ahmadsakr4831 Рік тому
What about shift register for inputs and outputs I used this Way in ldmicro ,I can expand Io pins using many shift registers For information ldmicro is for programming microcontroller by ladder
@openplc
@openplc Рік тому
Shift registers are a “hardware-way” to expand IO. It is common to find them internally on many commercial PLCs. This is a more “external/software” way to expand IO using off the shelf devices. But anyway, OpenPLC can support shift registers as well, as long as the IO driver is written on a PLC block :) It might come on future versions of the Editor
@lorenzocastelli3552
@lorenzocastelli3552 11 місяців тому
There is a problem with the Arduino Mega. By adding Arduino Mega as slave we should have: 24 Discrete Inputs 24 Coils 8 Input Registers 0 Holding Register - Read 12 Holding Register - Write Instead they are automatically taken 24 Discrete Inputs 16 Coils 16 input registers 0 Holding Register - Read 12 Holding Register - Write I tried to manually add the device but every time I get the error message: "Please fill out all the fields before saving!"
@satierkumaa
@satierkumaa 5 місяців тому
How do I make a canbus available in the ladder diagram?
@Ai_ya
@Ai_ya Рік тому
Interesting Can open plc monitor IOs states from editor(online)?
@openplc
@openplc Рік тому
Not yet. This is a feature that will come in the future
@TomLeg
@TomLeg Рік тому
"slave" devices is outdated terminology, considered racist. You'll notice that the SPI protocol has renamed its MOSI and MISO leads, which used to be "Master In Slave Out" and vice versa, to PICO and POCI, "Peripheral IN, Controller OUT" and vice versa. You might want to consider updating your terminology, too.
@nilscarstensen3844
@nilscarstensen3844 Рік тому
Good to see wokeness finally arriving in harsh industrial environments. jk You will read the word slave in almost every industrial bus (CANopen, EtherCat, DeviceNet, Profibus, Modbus, aso.) documentation / software /wiki article. So i don’t think it’s that outdated ;-)
@TomLeg
@TomLeg Рік тому
@@nilscarstensen3844 so maybe SPI is leading the way, but it isn't an excuse for others to lag.
@nilscarstensen3844
@nilscarstensen3844 Рік тому
@@TomLeg change will take a while. It will really suck doing troubleshooting with a customer while using another terminology than him and the software-tool he’s using.
@christianb6046
@christianb6046 Рік тому
Changing that word is not going to make the world less racist.
@sasquatch5863
@sasquatch5863 Рік тому
What a troll 🤣
Basics 07: Connecting OpenPLC to an HMI (ScadaBR)
28:59
OpenPLC
Переглядів 23 тис.
Basics 06: Communicate with OpenPLC Runtime using Python
23:23
OpenPLC
Переглядів 11 тис.
😱СНЯЛ ФИКСИКОВ НА КАМЕРУ‼️
00:35
OMG DEN
Переглядів 1,2 млн
Гражданская оборона 2024 - 16 полный выпуск
1:04:15
Телеканал ICTV
Переглядів 1 млн
Easily Create Towers in Blender!
1:04
BlenderVitals
Переглядів 130
Arduino OPTA PLC
5:33
Jakob Sagatowski
Переглядів 118 тис.
Pentesting SCADA with Metasploit:Modbus
8:30
David Tancredi
Переглядів 2,8 тис.
Basics 03: Programming an Arduino Board with OpenPLC
16:55
OpenPLC
Переглядів 62 тис.
How to make LCD HMI and Interface with OpenPLC Based PLC
13:10
Engineering made Easy (Ing ME)
Переглядів 2,2 тис.
Basics 04: OpenPLC on Raspberry Pi with Modbus
20:48
OpenPLC
Переглядів 32 тис.
4-20mA sensor explained with a simple Arduino example!
11:44
Werewolf Wu
Переглядів 31 тис.
Не Бери INFINIX NOTE 40 и NOTE 40 Pro, Не Посмотрев Это Видео!
28:34
РасПаковка ДваПаковка
Переглядів 66 тис.
Changing Replace And Edit Backgrounds New Tech || Photo Eedit NEW3X
0:50
Такого вы точно не видели #SonyEricsson #MPF10 #K700
0:19
BenJi Mobile Channel
Переглядів 1,4 млн
Cách sửa này được không các bạn?
1:00
Cơ Khí Toàn Nghĩa
Переглядів 849 тис.
GitHub Copilot just got promoted to Captain
4:01
Fireship
Переглядів 344 тис.