Hi.
I'm using ENC28J60Module to send analog value data to a PLC. I am however only able to send from one address, mb.addHreg(0,zb) to modbus 1 PLC address. mb.addHreg(1,za) and mb.addHreg(2,zc) do not send to modbus addr 2 and 3 respectively!! 1-5 is the PLC modbus addresses, and the za-ze is the values to send.
Using #include <EtherCard.h> libraries;
#include <Modbus.h>
#include <ModbusIP_ENC28J60.h>
I defined;
mb.config(mac, ip);
mb.addHreg(6, 0);
Any suggestions?