Go Down

Topic: ladder language for arduino (Read 1 time) previous topic - next topic


I want to know if there is ladder language for arduino.



May 07, 2018, 11:40 am Last Edit: May 07, 2018, 11:41 am by m_aly75
Yes, but temper your expectations as it's no Studio 5000.

Sorry what's the mraning of studio 5000

In the other side .the language of c++ for arduino is difficult for me .and i used ladder language in other microntroller (PIC)and i interested it
so i need your advice in using ladder in arduino


Studio 5000 is an expenssive PLC development suite from Rockwell.

For ladder programming on MCUs, there's LDmicro. Many Atmel and Microchip MCUs supported.


Still being developped. Use the Github link to get the latest.

May not look like the shiniest thing, but atleast it's still being developed. And you can compile the code directly or export it to C or apparently as an arduino sketch (news to me).

And there's a simulator.


Have a look at this. The advantage of this over Soapbox etc. is that once programmed, you do not need to have the arduino connected to the PC



Some ideas are like garden slugs, they sort of look harmless but are in fact a problem. I am going to put some salt on this one...

Programs that are compiled for AVR have a dynamic memory space that is shared by two memory systems that the compiler implements. One is called heap memory and the other is call stack memory. The memory systems have no way to know when they step on and corrupt the other. There is no fix, I thought there was for a while but that is just not the case. Even if I eliminate the use of heap memory by writing my software with a language that only uses the stack (thus eliminating the possibility of heap and stack colliding) the stack can still run into and corrupt global memory. I am not sure what to do about the problem other than test my program fully.

If you don't understand heap memory use google


or stack memory


Since PLC's are normally used for industrial control and their correct operation is important. I just want to make sure anyone looking at this in the future understands there is a risk especially if they do not know much about programming.
I use an R-Pi Zero on an RPUpi shield to have a tool-chain at the network edge.

Go Up