santook
How to design a single-chip runtime that conforms to the rules of open plc according to your own needs.
Examples support other types of arduino development boards or change io allocation
Reply 0 0
thiagoralves
Why do you want to build a new runtime? Just use OpenPLC runtime
Reply 0 0
santook
For example, I don't want UNO's 13pin as an output but an input, or I need to add a new MCU, such as ATMEGA1280
Reply 0 0
santook
Or I wish I had a nicer name for my own variant Arduino PLC board
Reply 0 0
thiagoralves
You can do all that with the OpenPLC runtime. Changing pin allocations is possible in the UI of the upload dialog window (make sure you have the latest version of the OpenPLC Editor). Adding new boards usually only require you to edit the hals.json file (/editor/arduino/examples/Baremetal/hals.json), and sometimes providing a hardware driver for the IOs in a .cpp file.
Reply 0 0
santook
Thank you very much. I have found the method and it is feasible.
Additionally, for example, if I use a Muti function Shield board, how can I add a 74HC595 digital tube driver and display it in a ladder diagram or ST function list.
Reply 0 0
thiagoralves
Reply 0 0
Peralta
You can do all that with the OpenPLC runtime. Changing pin allocations is possible in the UI of the upload dialog window (make sure you have the latest version of the OpenPLC Editor). Adding new boards usually only require you to edit the hals.json file (/editor/arduino/examples/Baremetal/hals.json), and sometimes providing a hardware driver for the IOs in a .cpp file.
 
You can do all that with the OpenPLC runtime. Changing pin allocations is possible in the UI of the upload dialog window (make sure you have the latest version of the OpenPLC Editor). Adding new boards usually only require you to edit the hals.json file (/editor/arduino/examples/Baremetal/hals.json), and sometimes providing a hardware driver for the IOs in a .cpp file.
Hi OpenPLC! Is it possible to use DxCore? If it isn't, is posible modify to agree DxCore? I want to work with, for ex: AVR128DB48. Thanks.
Reply 0 0
fg71
If that board have Arduino core and you could install it with Arduino IDE or with arduino-cli.
You could then use arduino-cli board listall to get the FQBN for your board so you could make new entry in your hals.json file.
Next you need to make new .cpp file for your board.
 
I do not have that board so I couldn't do any test myself.
 
Reply 1 0
Reply