Structured Text and Instruction List compiler for the Arduino

969 views
Skip to first unread message

Paulo Torrens

unread,
Mar 13, 2014, 3:44:24 PM3/13/14
to devel...@arduino.cc
Hello,

My company needed to make software that would be compatible with a PLC and the Arduino, so I ended up writing a transpiler that compiles Structured Text and/or Instruction List into C code that uses Arduino and avrlibc libraries.

I've tested it with Arduino Mega and with a Siemens' PLC, seemed to be ok.

I've talked to them and I've decided to release the compiler under the GPL, and the runtime for the languages under, probably, Beerware (since it needs to be far more permissive).

I'm going to clean up the code a little bit, write some documentation, and then post about it on the Arduino forums.

What I'd like to know is if there is any chance to make the compiler ship with the Ardunio IDE, giving people an alternative over writing C programs for the Arduino. What do I need to do for this?

(I'd gladly help modify the IDE itself to handle ST/IL highlight too.)

Thanks. :)

Rob Tillaart

unread,
Mar 16, 2014, 5:43:26 AM3/16/14
to Paulo Torrens, Arduino Developers
Sounds interesting,
I think you should start with creating a webpage (arduino playground?) with links, description and examples to show the working of the transpiler.
The examples should differ in complexity and be instructive / realistic e.g. blinking 2 leds @ different frequency.

Do not expect this be part of the IDE soon, you might fork the github project and create a "shadow" version to show how it could be done.



--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.

Paulo Torrens

unread,
Mar 17, 2014, 2:37:53 AM3/17/14
to devel...@arduino.cc, Paulo Torrens
Thanks for the answer. :)

I'll take some time to write a simple ST/IL programming tutorial (since the languages are *way* underrated) and some examples which work with the Arduino. Maybe "translate" some of the examples that ship with the IDE. The languages *really* fit there!


And yeah, I understand that it won't be that easy to make it ship with the official IDE, but I wanted to know if there would be this possibility.

My main goal, actually, is to try to help bring some free software into the industry. That is a *really* closed business, it was even really hard to find information on the languages to build the transpiler... but maybe once a library can be made compatible with both PLCs and the Arduino, the GPL can help spread free software. But I think you guys can understand that it would feel nice to have the transpiler on the official release. =P

Just wanted to know what I would have to do. I'll write the docs/examples down and post everything on the next couple of months, then I'll post on the forums to see what is the people's reaction about it.

I'm just worried that I probably wouldn't have much time to work on the IDE itself (if I forked it)... I actually use makefiles myself, GUIs are not my cup of tea... :(

pollekeshooter

unread,
Apr 10, 2014, 3:08:25 PM4/10/14
to devel...@arduino.cc
Yes i am very interested in your STL project, i am now using a lot of codesys, for my PLC, however like the arduino mega very much, would be very happy to have your program.

Do you know codesys.com site? you can get i nice editor for free, as the files made you can export them in plain text.

maybe they are interested in your work too, as they have made it for the raspberry Pi, and lots of others like (siemens, beckhoff and about 100 others hitachi, etc.)
as texteditor i am using notepad++

i am experimenting with a ladder software for arduino.
greetings paul
sho...@home.nl

Rich Obermeyer

unread,
Apr 10, 2014, 4:16:08 PM4/10/14
to Arduino Developers
I am interested too.  It would look great on an arLCD.  Send me more info.  ri...@earthlcd.com


--
You received this message because you are subscribed to the Google Groups "Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developers+...@arduino.cc.



--
Rich

Tyler

unread,
Apr 10, 2014, 10:05:52 PM4/10/14
to devel...@arduino.cc
Sorry, I guess I got this email out of context. What is the STL project?

Also what is ladder software?

-Tyler

Ro Ol

unread,
May 25, 2015, 6:11:26 AM5/25/15
to devel...@arduino.cc
How did this go? Is there a location to look at his?
Reply all
Reply to author
Forward
0 new messages