jstodden

Hi, I'm Jon.  I'm a controls engineer and I dabble with Arduino.  My wife recently bought me Automation Direct's Arduino based PLC.

I'd like to try using the Arduino firmware on this PLC.  Has anyone done this before?

 

BTW thank you for all the awesome work on this project.  I'm really digging the IEC compliant editor.

Quote 0 0
thiagoralves
It certainly won’t work, at least not with some modifications on the firmware. I don’t have one of these devices to test, but as much as I could get from the website, this is an “arduino-compatible” PLC. It might not even have the same cpu chip inside. What this means is that, even though you might be able to program this thing using the Arduino IDE, you will have to get hold of the IO mechanism inside so that OpenPLC can control those pins. It certainly is not a task for beginners. If you’re a experienced C/C++ programmer, you can give it a shot. I’ll be here to advise
Quote 0 0
jstodden
I'll try reaching out to Automation Direct to gather this information with regards to the IO.

I was thinking this evening I would carefully open the case on the PLC and post pictures of the board if that would help.
Quote 0 0
thiagoralves
Grab all the documentation you can about how to interface with the IO from the Arduino IDE. Then you might be able to modify OpenPLC firmware to just make that bridge. Keep in mind that OpenPLC treats Arduino devices as slave modules, which means that they cannot run logic by themselves. You will need a computer or a small Raspberry Pi connected to the USB port for it to run your logic
Quote 0 0
jstodden
IMG_20200221_190529672.jpg  
So it's definitely a custom board.  I'll try to get info on how the add on IO cards are accessed this weekend.
Quote 0 0
jstodden

It looks like Automation Direct has prepared software for their PLC.  I added the profile and library for their board with no issues.  I looked into accessing the inputs and outputs in add-on cards are it looks pretty easy to use them.

This is where I found the information
https://forum.automationdirect.com/forum/open-source-devices/productivityopen-p1am/128015-p1am-getting-started

Hopefully this week I'll see if I can put together components to start testing this PLC.  I'll keep everyone posted as I make progress.

Quote 0 0