Page 10 of 10

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Contro

Posted: Tue Dec 11, 2018 5:31 pm
by vorrias
VikTan wrote:
Fri Nov 27, 2015 10:29 am
In this moment none of our boards can't be driven by CODESYS because of this problems with drivers what I wrote before. I tried CODESYS forum, but there is only basic support, eg.
Hi VikTan What is your status of the I/O boards?
I am very mach interesting on them CODESYS drivers or not
You can contact directly with me :
vorrias.argo.net.gr@gmail.com

Thanks a lot
Vasilis

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Fri Apr 17, 2020 7:13 am
by Hugolainen
Hey VikTan,

I know that I'm digging up an old subject, but have you tried the straton solution ?
I recently started using it first for a school project and now for some "domotics", the software just released its 9.4 version and is packed with drivers for industries.

There is an IEC61131-3 Editor running on Windows, then you can download the runtime you want and place it on your hardware. The demo version has a limitation in time but you can restart it as often as you want.

Just in case here the link of the website/downloads page : https://www.straton-plc.com/en/software/

Hope it can help you :)

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Fri Apr 17, 2020 4:56 pm
by vorrias
Hi guys,
1 - STRATON looks a very promising package. I wrote to them to have some price quotas.
2 - CODESYS remains (at the moment) top of the list for Raspberry Pi
3 - BEREMIZ stil is a choice. It is working on Raspberry . FREE and OPEN SOURCE
4 - 4DIAG (https://www.eclipse.org/4diac/en_help.p ... cally.html) is an advanced FREE and OPEN SOURCE project based on IEC 61499. More advanced language than IEC 61131-3. It includes all IEC 61131-3 Function Blocks plus a lot more.
I tried the blink program on raspberry and working fine.
5 - Last but not least is OPENPLC project by thiagoralves. Grate job. FREE and OPEN SOURCE

Best of all recently thiagoralves here:

https://openplc.discussion.community/po ... 1309588065

Announced that his new version v1.0 will incorporate BEREMIZ editor . That is in reality PLCOPEN editor Same editor with CODESYS with minor differences but is industry standard. This will include the very famous OSCAT library as well.
The thing with OPENPLC solution is that his approach is working. Is FREE and OPEN SOURCE !.

I do not know what is the status of the I/O hardware so far here but for some time in OPENPLC forum we are trying to build a modular I/O PLC system.
Our latest approach is a system we call it M10 (after many many man hours from many contributes building various designs) .
That is modular I/O framework with dimension 100X100 mm based on Raspberry Pi bus. It may include a Raspberry or any other CPU in the future.
Work is in progress here and you are welcome to contribute if you like the idea. Work is stalled at the moment but the idea is alive and have very good prospects. We thing is a clever approach considering all data.
You can see project M10 here:

https://openplc.discussion.community/po ... ?&trail=60

I am very happy. I started this thread in 2011 and see so many doing so many.

Stay safe and healthy
Vasilis

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Sun May 10, 2020 2:04 pm
by vorrias
Explaining our M10 modular controller concept. I thing you will find it at least interesting. This is difference of what is published so far. In many ways.
We are a team of enthusiast in electronics (many having electronics and automation as a profession) preparing a hardware modular concept we call it M10. M is is modular and 10 because of external dimensions 10x10cm. Then a maximum cube can be build called PACK, 10x10x10 cm
we already designed
1 - CPU board (RASPI 4)
2 - Digital relay output for 220V 16A loads, (8 channels)
3 - Digital Input + Digital output (16 channels)
4 - 3D box enclosures . First models are constructed but work still in progress
opto isolation is done and modules are working with 24 volts.
Everything is opensource in Eagle and KiCAD format.
Teamwork development is taking place on a M10 slack workspace
more modules are on the drawing board and will be announced soon.
See some work on the shared Dropbox
Schematics included

URL in hackaday:
https://hackaday.io/project/171770-m10cube

URL in GitLAB
https://gitlab.com/m10cube/m10

The idea has years of thinking and years in Industrial Automation control. will be presented first time and as far as know there is not something like it as a whole. The idea is NOT STATIC but DYNAMIC by nature.

Work in progress and discussion in SLACK as well
If you have skills in Electronic design Eagle or KiCAD (or any other) please consider joining. This project is in continues development.

Have fun spread the idea and tel us your reaction on that

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Tue Jun 16, 2020 6:43 am
by mbvr46
pmario wrote:
Wed Oct 12, 2011 12:48 am
Hi folks,
I'm following this topic for a wile now. It's quite interesting. I didn't find any links to open source fieldbus software yet. So I'll add some [1]:

With openPOWERLINK [2] you'll have a full software stack for a RT Ethernet communication for Managing Node (master) and for the Controlled Nodes (slaves). Seems to be BSD lizensed.

openCONFIGURATOR [3] is an open-source configuration tool. Seems to be BSD lizensed.

With openSAFETY [4], you'll even have the possibility to create safety functionality, if you are able to do so. Seems to be BSD lizensed as well.
--------
IMO for teaching purpose, it is allready interesting, to let a student implement this type of protokoll to the R-Pi. If they succeed, fine. Learned something, about a state of the art industrial fieldbus.

Watchdogs are common for plc's. But if you have none, buy two R-Pi's and let one of them be the watchdog for the other. Proof, that it works and that it is sufficient. If that's not enough, let both of them watch the other. Maximum hw cost for a watchdog is the price of an additional R-Pi + wiring.

[1] http://www.ethernet-powerlink.......php?id=11
[2] http://sourceforge.net/project.....powerlink/
[3] http://sourceforge.net/project...../openconf/
[4] http://www.ixxat.com/ethernet_.....opensafety
Hi,

how it is with openSafety implementation on raspberry? Your URL is not working. Is this project on some oter URL?

Thanks

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Tue Jun 16, 2020 7:37 am
by jamesh
mbvr46 wrote:
Tue Jun 16, 2020 6:43 am
pmario wrote:
Wed Oct 12, 2011 12:48 am
Hi folks,
I'm following this topic for a wile now. It's quite interesting. I didn't find any links to open source fieldbus software yet. So I'll add some [1]:

With openPOWERLINK [2] you'll have a full software stack for a RT Ethernet communication for Managing Node (master) and for the Controlled Nodes (slaves). Seems to be BSD lizensed.

openCONFIGURATOR [3] is an open-source configuration tool. Seems to be BSD lizensed.

With openSAFETY [4], you'll even have the possibility to create safety functionality, if you are able to do so. Seems to be BSD lizensed as well.
--------
IMO for teaching purpose, it is allready interesting, to let a student implement this type of protokoll to the R-Pi. If they succeed, fine. Learned something, about a state of the art industrial fieldbus.

Watchdogs are common for plc's. But if you have none, buy two R-Pi's and let one of them be the watchdog for the other. Proof, that it works and that it is sufficient. If that's not enough, let both of them watch the other. Maximum hw cost for a watchdog is the price of an additional R-Pi + wiring.

[1] http://www.ethernet-powerlink.......php?id=11
[2] http://sourceforge.net/project.....powerlink/
[3] http://sourceforge.net/project...../openconf/
[4] http://www.ixxat.com/ethernet_.....opensafety
Hi,

how it is with openSafety implementation on raspberry? Your URL is not working. Is this project on some oter URL?

Thanks
The post you are responding to is 9 years old. Google might be your best bet to see whether this project is still going.

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Tue Jun 16, 2020 12:30 pm
by vorrias
jamesh wrote:
Tue Jun 16, 2020 7:37 am
how it is with openSafety implementation on raspberry? Your URL is not working. Is this project on some oter URL?
Hi jamesh.
Safety on PLC is very difficult matter (that is S stands for). Strict rules must apply. But you already know that. Do you relay want Safety? (a rhetorical question it is of course) If yes that can be be implemented better with "real" PLC. At least not with this Raspberry PI. There is a company we are using their CODESYS PLCs and they have an industrial grade Raspberry PLC. That may look good for implementing opensafty on powerlink.
Can you tell me more about your concern on having Safety on your project?

Meanwhile have a look our progress on M10CUBE design (see the above post)
viewtopic.php?f=41&t=455&p=1680149#p1658385
and we can talk about PLC Safety.

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Wed Jun 17, 2020 6:21 am
by mbvr46
vorrias wrote:
Tue Jun 16, 2020 12:30 pm
jamesh wrote:
Tue Jun 16, 2020 7:37 am
how it is with openSafety implementation on raspberry? Your URL is not working. Is this project on some oter URL?
Hi jamesh.
Safety on PLC is very difficult matter (that is S stands for). Strict rules must apply. But you already know that. Do you relay want Safety? (a rhetorical question it is of course) If yes that can be be implemented better with "real" PLC. At least not with this Raspberry PI. There is a company we are using their CODESYS PLCs and they have an industrial grade Raspberry PLC. That may look good for implementing opensafty on powerlink.
Can you tell me more about your concern on having Safety on your project?

Meanwhile have a look our progress on M10CUBE design (see the above post)
viewtopic.php?f=41&t=455&p=1680149#p1658385
and we can talk about PLC Safety.
Hi,

i need openSafety only to test something. It will not be more than prototype on the table. Therefore i want to ask if somebody have did already something like this. Because the powerlink can be used on Raspberry PI, i thought that also openSafety could be implemented on Raspberry using powerling as underlying protocol. Is here anybody with some experiences on this things?

Thanks

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Wed Jun 17, 2020 6:17 pm
by vorrias
Hi jamesh,
Safety in general in PLCs is a very serous and difficult to implement.
Unfortunately we are not using Safety at all in our CODESYS enabled PLCs. But it is something we must do soon or later.
It is interesting though if you have any progress on openSafety to give us a post here.
Sorry not helping you on that but you triggered me the interest on openSafety as a training matter.
Regards

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Fri Sep 25, 2020 5:35 pm
by ranpitime
Hi
using SIL3 on Raspberry PI (https://store.codesys.com/codesys-contr ... mc-sl.html) is only possible if you use
CODESYS on it and then EK1100 and EL6900 ( https://store.codesys.com/codesys-safet ... odule.html) from Beckhoff as Safety controller.
This works via Ethercat fieldbus pretty well even on Raspberry PI.
BR
Edwin

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Sat Sep 26, 2020 8:05 am
by vorrias
ranpitime wrote:
Fri Sep 25, 2020 5:35 pm
Hi
using SIL3 on Raspberry PI...
Very interesting. At least we know it is working. We are using Berghof PLC (CODESYS 3) and EtherCAT I/O. I will contact to see if they have any safety module like Bechoff's so to experiment on Raspberry. One I can see is module SC-1000 but I have to check witjh our suplier.

Good job Edwin
BR
Vasilis

Note: This weekend I will upload new version of the modules on our M10CUBE framework including a sensor board. The new series looks more promising in "Turn Raspberry Pi into a P.L.C". Until the end of the year we will have a fully functional PLC RASPI + CODESYS + M10CUBE. Best of all fully open source and ever expandable
So have a look there on the weekend

https://gitlab.com/m10cube/m10

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Thu Oct 01, 2020 2:51 pm
by zeroq
Hi everyone.

I was missing TwinCAT/BSD in the list of potential runtimes for Raspberry Pi. Does anyone tried to run a FreeBSD in the Raspberry Pi with the TwinCAT/BSD XAR (eXtended Automation Runtime)? I didn't had the chance yet but it sounds promising.

https://www.beckhoff.com/twincat-bsd/

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Tue Oct 06, 2020 12:07 pm
by vorrias
zeroq wrote:
Thu Oct 01, 2020 2:51 pm
Hi everyone.

I was missing TwinCAT/BSD in the list of potential runtimes for Raspberry Pi. Does anyone tried to run a FreeBSD in the Raspberry Pi with the TwinCAT/BSD XAR (eXtended Automation Runtime)? I didn't had the chance yet but it sounds promising.

https://www.beckhoff.com/twincat-bsd/
I do not rely know what is the innovation here but is is good addition for people running TwinCAT. To my Knowledge TwinCAT is the CODESYS environment (IDE) but modified by Beckhoff to fit better to Beckhoff's products.
Anyway what CODESYS is mostly known for Raspberry (and other boards here https://store.codesys.com/tag/product/l ... Id/39/?p=1) TwinCAT is for any micro controller running BSD
Still you need Windows to run TwinCAT as is for CODESYS. May be we will see Run Time CODESYS for every ARM also. Not only for RASPI
Someday these dreamer guys in 3S must be able to run CODESYS IDE natively on LINUX. THEY MUST. I think Microsoft is purring a lot of money on CODESYS (AUTODESK also) and they can not escape.
Pity I use this beautiful (CODESYS) for a living and the only drawback I can find is Windows. I use it (Windows) almost only for running CODESYS. All other work on LiNUX. Peace of mind.
Lets hope some day to see CODESYS on LiNUX (native). After all the framework that is written is already ported to LiNUX by Microsoft
Many professionals stay on windows only because of a handful of applications like AUTOCAD, CODESYS...

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Wed Oct 07, 2020 8:35 am
by zeroq
Hi Vorrias.

Nowadays TwinCAT 3 IDE is based in Visual Studio and they use an own runtime (it is called XAR) that is not compatible with CODESYS. Of course you can have the CODESYS runtime running in a Beckhoff PLC but then you need to use CODESYS IDE for the development. In the other hand, Beckhoff runtime always require Microsoft technology but they are now launching the runtime to run in a freeBSD RTOS. This may open some possibilities to use it on RaspberryPi if it is compiled for ARM platform. I'm exploring this option for a hardware in the loop environment connected to Simulink but the end solution run on CX Beckhoff Platform. For other users CODESYS could be a better solution for the Raspberry Pi, at least it think it would be cheaper (CODESYS runtime for Pi is only 50 usd).

Re: Turn Raspberry Pi into a P.L.C (Programable Logic Controller) Advanced

Posted: Wed Oct 07, 2020 8:51 am
by vorrias
zeroq wrote:
Wed Oct 07, 2020 8:35 am
....For other users CODESYS could be a better solution for the Raspberry Pi, at least it think it would be cheaper (CODESYS runtime for Pi is only 50 usd).
Hi zeroq.
Thanks for the post
I agree for your answer (quoted) that is why in our M10CUBE opensource ecosystem
https://gitlab.com/m10cube/m10
we are going to use CODESYS (free for 2 hours) as our first choice and of course BEREMIZ (since this is mature and opensource)