ajit.nayak87
Dear all,

I am trying to build my own PLC software using Arduino as Hardware. I need suggestion How to create my own PLC software where user can add ladder logic/block diagram logic etc. Is there any software available to create my own front end like PLC selections. Your guideline will be more helpful for me.

Is there any editor software available . I am ok to take paid version of software
thiagoralves
Why do you want to create something that already exists? If you want to write code, why not learn about OpenPLC and use your efforts to improve it? Writing your own PLC software is a long (and sometimes painful) process. OpenPLC was built using only open source tools and libraries. It took me 4 years to get where I am now with OpenPLC, and even then I haven't written everything from ground up myself. I got a lot of open source projects and libraries as the base for the project and built OpenPLC on top of that.
Reply 1 0
ajit.nayak87
Already some plc I already worked like allen bradwly and simens s7-1200 series. These are also similar to interactive environments. I wanted to know what software usually use to background to create such environments. In order to improve feature of openplc I should know background how to write my script to run on front end. 
Reply 0 0
thiagoralves
Each vendor has its own strategy to create their software. Usually it is Visual C++ or VB or something like that. OpenPLC Editor was written in Python. OpenPLC Runtime was written in C++ (backend) and Python (frontend).
Reply 0 0
ajit.nayak87
Thanks your suggestion are more helpful here. . I would like if I use openplc software and create hardware of my own using arduino board is it interactive?? I have developed clone version of arduino working well on arduino ide. Is it possible. Openplc software is payable or free version like arduino. 
Reply 0 0
thiagoralves
OpenPLC is open source and free. What do you mean by “interactive”? OpenPLC runtime requires a more robust hardware and won’t run on Arduino boards. You can use Arduino boards as OpenPLC slave devices but not as the main processing unit. A good base device for OpenPLC to run is the Raspberry Pi. If you want to create a hardware PLC compatible with OpenPLC you should base your device of a Raspberry Pi instead of an Arduino board
Reply 0 0
ajit.nayak87
Rasbery pi is expensive compare to arduino.  https://www.controllino.biz/ weather these boards wil support openplc software. In openplc weather I can add feature like modbus rtu:serial communication. Customized functional block and function call? In reference these are not included. 
Reply 0 0
thiagoralves
Cheap Arduino clone on Amazon: $8.49 ->  https://www.amazon.com/dp/B01AR7YJ3O/ref=cm_sw_r_cp_api_i_zW97Cb3STD2P8

Raspberry Pi Zero: $5.00 ->  https://www.adafruit.com/product/2885?gclid=Cj0KCQjw_r3nBRDxARIsAJljleELKgIn0SUmhkeH3RvZQM4nUkRczCYl_TKE4XJI5mcfrFb_hzEgl0oaAj1TEALw_wcB

Are you sure that the Raspberry Pi is more expensive? It looks to me that it is the other way around.

Controlino PLCs are based on Arduino and therefore won’t run the OpenPLC runtime. OpenPLC supports modbus/tcp natively. Modbus/RTU can be used to communicate with slave devices (OpenPLC is the modbus master node). Check http://www.openplcproject.com/scada
Reply 0 0
adrianols
Hi Thiago,

Taking advantage the question made by the colleague I would like to know if you could point out which steps are necessary to make a new hardware OpenPLC compatible. I've seen that you've pointed out following RaspberryPi implementation.

I'm seeing the a availability to do this to a specific MCU.

Thanks in advance for you attention.
Reply 0 0
thiagoralves
OpenPLC will run on anything that can run Linux. I usually suggest the Raspberry Pi because it is cheap and well documented. You can use any CPU that can run a Debian based Linux distro and it will work just fine. Hardware-wise you will have to make the necessary circuitry to isolate your GPIO inputs and outputs from the high voltage (24V) side
Reply 0 0
adrianols

Thanks for such attention Thiago.

 

Reply 0 0
vikram
Dear Thiago,

Each vendor has its own strategy to create their software. Usually it is Visual C++ or VB or something like that. OpenPLC Editor was written in Python. OpenPLC Runtime was written in C++ (backend) and Python (frontend).


Out of Curiosity, what hardware is used in Commercial PLCs, Processors Running Linux or simple Microcontrollers?


Reply 0 0
thiagoralves
The answer is in my paper https://www.researchgate.net/publication/326542218_OpenPLC_An_IEC_61131-3_Compliant_Open_Source_Industrial_Controller_for_Cyber_Security_Research

Check section 5 that has details on different commercial PLCs hardware.
Reply 1 0
Reply