Go Down

Topic: ladder language for arduino (Read 625 times) previous topic - next topic

m_aly75

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


avr_fred


m_aly75

#3
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.

http://soapboxautomation.com/products/soapbox-snap/
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
Thanks

_db_

Studio 5000 is an expenssive PLC development suite from Rockwell.




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

http://cq.cx/ladder.pl

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.

Helmo

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

http://www.openplcproject.com/single-post/2014/05/12/OpenPLC-is-having-a-new-brother-the-OpenPLC-Mini

ron_sutherland

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

https://en.wikipedia.org/wiki/C_dynamic_memory_allocation#Heap-based

or stack memory

https://en.wikipedia.org/wiki/Stack-based_memory_allocation

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