Larsinator
Hi, I'm using an Arduino Portenta Machine Control H7 for a project, and I was wondering if it was possible to use the Programmable digital I/O on OpenPLC. On Arduino PLC IDE the address is at %MXx, but I am suspecting that OpenPLC lacks some software drivers to be able to use them properly, since I get an error when typing the %MXx address and uploading the code. Am I right?
 
Just to clear up things; I am able to use the Analog pins, but due to the nature of the sensors it would make sense to be able to use digital pins. Therefore I would like to use the programmable pins if possible.
 
I love your software and wish you luck further developing it 🙂.
Reply 0 0
thiagoralves
It might definitely be possible to use the programmable pins on OpenPLC, however the current iteration of the driver does not do that. Here is the current Machine Control driver: https://github.com/thiagoralves/OpenPLC_Editor/blob/master/editor/arduino/src/hal/machine_control.cpp
 
You can find this file in your own OpenPLC Editor installation at the editor/arduino/src/hal folder. If you know some Arduino C language, you can try improving this driver to make it work with the programmable pins as well. If you succeed, please post your driver here so that all users can benefit from it.
Reply 0 0
Larsinator

Thank you. I will definitely take a look at the drivers and report my findings

Reply 0 0
Reply