EmbeddedRelated.com
Forums

Linux on a PLC?

Started by fred August 12, 2008
Has anyone ever tried to port Linux or uCLinux to a modern PLC?
Interested to see if it can be done.

Thanks,
Fred
fred wrote:
> Has anyone ever tried to port Linux or uCLinux to a modern PLC? > Interested to see if it can be done.
I'm sure it can be done, and probably a number already have Linux buried inside them. The problem would be getting enough info on the HW, which tends to be quite custom. Of more practical interest, may be 'the bigger picture', where google finds this : "Beremiz, a Free and Open Source Automation IDE for IEC 61131-3 PLCopen XML and CANopen" http://www.beremiz.org/ and most of this (as you'd expect) seems to run under Linux. Some info here http://sourceforge.net/projects/beremiz/ but it looks relatively quiet. and here is the IEC to C compiler http://mat.sourceforge.net/ Not many links on the PLCOpen Editor ? -jg
"fred" <fredbasset1000@gmail.com> skrev i meddelelsen 
news:196ab31c-37d6-49a1-81d5-7dc4cd9dad08@a8g2000prf.googlegroups.com...
> Has anyone ever tried to port Linux or uCLinux to a modern PLC?
Quite a few PLC's have some version of ARM inside, so it might be doable. But Why?
Well, there is 'The Puffin Projects' at http://www.puffinplc.org

Don't know if it is very active though.

Regards,
Charles

Frithiof Jensen schrieb:
> > "fred" <fredbasset1000@gmail.com> skrev i meddelelsen > news:196ab31c-37d6-49a1-81d5-7dc4cd9dad08@a8g2000prf.googlegroups.com... >> Has anyone ever tried to port Linux or uCLinux to a modern PLC? > > Quite a few PLC's have some version of ARM inside, so it might be > doable. But Why?
--------------A3E5A3CD6E9EF994439921BE
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



Jim Granville wrote:

> "Beremiz, a Free and Open Source Automation IDE for IEC 61131-3 PLCopen > XML and CANopen" > > http://www.beremiz.org/ > > and most of this (as you'd expect) seems to run under Linux. > > Some info here http://sourceforge.net/projects/beremiz/ > but it looks relatively quiet. > > and here is the IEC to C compiler > http://mat.sourceforge.net/
I have looked at both of these a few months ago. beremiz was a proposal to create some open source infrastructure around the the mat tools. As far as I know there is nothing more to it than what appears on the website. Mat is dated now it appears that it was created from some of the early drafts of the IEC 1131. The feature set is both a sub and super set of the standardized IEC61131. IEC61131 contains a grammar for the language parts. I wrote a quick grammar parser for a project and then used the standards grammar to create a IEC61131 to C translator. This is not very hard to do and might be an approach that could be used to create Linux PLC tools. There are a few commercial tools that have a similar approach. IEC61499 should be looked at as well for any serious attempt to create PLC tools Not open source but the Oats PLC project is worth looking at. Regards -- Walter Banks Byte Craft Limited http://www.bytecraft.com walter@bytecraft.com --------------A3E5A3CD6E9EF994439921BE Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> &nbsp; <p>Jim Granville wrote: <blockquote TYPE=CITE>"Beremiz, a Free and Open Source Automation IDE for IEC 61131-3 PLCopen <br>XML and CANopen" <p><a href="http://www.beremiz.org/">http://www.beremiz.org/</a> <p>and most of this (as you'd expect) seems to run under Linux. <p>Some info here <a href="http://sourceforge.net/projects/beremiz/">http://sourceforge.net/projects/beremiz/</a> <br>but it looks relatively quiet. <p>and here is the IEC to C compiler <br><a href="http://mat.sourceforge.net/">http://mat.sourceforge.net/</a></blockquote> I have looked at both of these a few months ago. beremiz <br>was a proposal to&nbsp; create some open source infrastructure <br>around the the mat tools. As far as I know there is nothing <br>more to it than what appears on the website. <p>Mat is dated now it appears that it was created from some <br>of the early drafts of the IEC 1131. The feature set&nbsp; is both <br>a sub and super set of the standardized IEC61131.&nbsp; <p>IEC61131 contains a grammar for the language parts. <br>I wrote a quick grammar parser for a project and <br>then used the standards grammar to create a IEC61131 <br>to C translator. This is not very hard to do and might be <br>an approach that could be used to create Linux PLC <br>tools. There are a few commercial tools that have a similar <br>approach. <p>IEC61499 should be looked at as well for any serious <br>attempt to create PLC tools <p>Not open source but the Oats PLC project is worth looking at. <p>Regards <br>&nbsp; <p>-- <br>&nbsp;Walter Banks <br>&nbsp;Byte Craft Limited <br>&nbsp;<A HREF="http://www.bytecraft.com">http://www.bytecraft.com</A> <br>&nbsp;walter@bytecraft.com <br><a href="http://www.beremiz.org/"></a>&nbsp;</html> --------------A3E5A3CD6E9EF994439921BE--