jmandonegi
Hello:

I am doing a little project with my students using a Controllino Maxi Automation board (compatible with Arduino Mega) and OpenPLC. I have changed the pinout configuration in the firmware so that I can use the inputs and outputs as digital (mainly we work with relays).

This is the project in Arduino. 

I have testes the digital outputs in OpenPLC runtime with the board as slave device and the first 16 outputs work fine, but the last two coils don't switch on the board (but they switch on on the runtime environment).

This is the configuration of the digital outputs. Just out of curiosity: is there a limitation to 16 outputs or am I doing something wrong?

Thanks!


#define NUM_COILS 18

uint8_t pinMask_DOUT[] = {
     2, // DO0 %QX100.0
     3, // DO1 %QX100.1
     4, // DO2 %QX100.2
     5, // DO3 %QX100.3
     6, // DO4 %QX100.4
     7, // DO5 %QX100.5
     8, // DO6 %QX100.6
     9, // DO7 %QX100.7
     22, // R0 %QX101.0
     23, // R1 %QX101.1
     24, // R2 %QX101.2
     25, // R3 %QX101.3
     26, // R4 %QX101.4
     27, // R5 %QX101.5
     28, // R6 %QX101.6
     29, // R7 %QX101.7
     30, // R8 %QX102.0 Warning: this coil does not switch on in my tests
     31  // R9 %QX102.1 Warning: this coil does not switch on in my tests
};

CONTROLLINO-MAXI-Automation-Pinout-1.jpg 
Reply 0 0
jmandonegi
I think I have not written the message in the correct forum section. It should be moved to OpenPLC Shields section. Sorry...
Reply 0 0
thiagoralves
The Arduino Mega template expects exactly 16 coils. If you change the firmware by adding or removing IO points you won’t be able to use the Arduino Mega template on your slave devices settings anymore. You will have to use Generic RTU and setup all your addresses manually
Reply 0 0
jmandonegi
OK. Thanks!
Reply 0 0
Reply