Loque101
Hey everyone, I just started messing around with OpenPLC ladder programming on my Uno and I'm loving it so far. I work with ladder logic a lot professionally, but the hardware can be very expensive to try and work into smaller personal projects.

I've been reading up on this forum, trying to find some way to get a 16x2 LCD panel to work as a display for one of my projects, but it looks like that sort of thing isn't supported natively. So I had the idea to use a Nano as a display controller, passing data to it from the OpenPLC Uno. But I'm unsure of my options. I saw that there are options to enable Serial and TCP communication when uploading to the Arduino, but from what I've read that's just for receiving data, right? Are there any options for sending numerical data aside from like building my own TTL function block? The data I'm sending is minimal and one-way. I just need the screen to get the current process step to display relevant info.
Reply 0 0
thiagoralves
Communication is done through Modbus RTU or Modbus TCP (for devices that support Ethernet or WiFi connectivity). You can send data back and forth using Modbus protocol, just like any HMI would do. For your display, you will have to write a firmware for your Nano that will act as a Modbus Master, querying data from the OpenPLC Uno and displaying it properly on the screen.

The good part about using a SCADA protocol is that the same protocol works with several different displays and HMI software. As long as they can talk Modbus you're good to go.
Reply 0 0
Loque101
Awesome! That's what I was hoping to hear. I'll have to start looking into what's already out there for setting up Modbus on a Nano. I've never dealt with writing my own firmware for Arduino before, but I'm sure someone out there has something I can at least start working off of for now. Thanks for the quick response!
Reply 0 0
lucianod6
i managed to use lcd working on mega_due.hal file, and also to store setpoint values in eeprom, but i am an arduino expert
Reply 0 0
Reply