Hi everyone,
I followed ben's tutorial on Modbus TCP - logic I/O and I used Martin's mudbus library.
I've made an HMI on Proview to test some LEDs, just like on the tutorial, but for my case, instead of the Schneider Momentum PLC, I used an Arduino MEGA 2560 with W5100 Ethernet Shield R3.
The communication is fine, but what I encounter is strange: when the LEDs are ON on the Proview HMI, LEDs are just dimming on the breadboard. I decreased the resistance values from 325 ohms to 80 ohms and they're still dimming. I removed one LED and one resistor and I replaced them with a NPN transistor to drive a small DC motor, even without any resistor, the output from the Arduino isn't enough to power the transistor. However, with the same hardware setup, when tested on Arduino IDE, LEDs are shining bright, and the transistor is working fine.
So I'm wondering... why do I get lower output voltage and current when using Modbus TCP on Proview and why do I get higher when testing on Arduino IDE? Does it have something to do with the mudbus library? or anything else?
Any help greatly appreciated
/Maverick