wizardgmb
Are there any plans to upgrade the status of Arduino from a slave device to host controller? If done, I assume it would be for the Mega due to its additional resources. There are other PLC implementations for the Arduino but I like your interface better for a hydroponics & aquaculture monitoring & control system I am building for my wife's high school ecology classroom.

Regards,
George
Reply 0 0
thiagoralves
OpenPLC was not designed to be run on microcontrollers. It would have to go over a major redesign to be able to fit into those small footprints, and still would have to have most of its features removed.

If you want a portable embedded system, buy a Raspberry Pi Zero (only $5.00). If you need more I/O than the Raspberry can offer, you can also connect an Arduino to it over USB.
Reply 0 0
wizardgmb
I find his quite surprising given that at least 3 other companies with web presence are able to run an Arduino as host.

If I need a separate host, I have several Wyse thin clients that are more than up to the task...

Regards,
George
Reply 0 0
thiagoralves
I didn't say it is not possible, I just said that OpenPLC was not designed for that. If all you want to do is run some ladder logic on Arduino, there are in fact better alternatives. Ldmicro is my favorite. But if you want DNP3 and Modbus/TCP support, plus all 5 IEC 61131-3 languages, plus easy to use webserver, plus configurable hardware layer, plus modbus slave devices support, plus database of uploaded programs, plus user management, then you will have to stick to a more powerful platform and go with OpenPLC. There is not a possible way to fit all these things into a microcontroller.
Reply 1 0
wizardgmb
I have mostly redesigned my system to include a Pi Zero because its purchase and providing 5V backup power to it was considerably cheaper than providing back up power to a thin client. My only concern is for my three ASCII serial devices: Crystalfontz LCD display, GPS and Bluetooth connectivity. The Crystalfontz will be interrogated and receive data periodically but doesn't initiate communications. The continuous GPS ASCII stream will be sampled weekly to keep the RTC accurate but doesn't initiate any exchanges. The Bluetooth will have an ongoing exchange with a PC on the other side of the room.

Can the ASCII devices remain connected to the slave Arduino Mega ports and be accessed by the Pi Zero or do I need to find a way to multiplex them into the Pi Zero serial port? Or would it be better to connect the Bluetooth to the Pi Zero and leave the Crystalfontz and GPS on the Arduino?
Reply 0 0
thiagoralves
OpenPLC uses all Arduino pins as I/O. Therefore, if you're using other pins as serial interface, you would have to edit the OpenPLC firmware and remove those pins from the pinMask[] arrays. Another option (and what I would do if I were you), is to get an USB hub with at least 3 ports and then buy three usb to serial adapters. Then you can connect all three serial devices to your Pi Zero without having to worry about multiplexing the signals.
Reply 0 0
Reply