Modbus Slave Register Mapping??
Posted: Sat Aug 26, 2017 1:37 am
I have created a program for an ATMEGA328P, with an RS485 transciever chip tied to UART1, and need to be able to assign Modbus holding registers to Global variables, specifically for 40001+ registers that can be polled from an external Modbus Master. There is nothing anywhere I can find in FlowCode7 references for how to do this. The ModbusSlave1 component allows for setting up the number of coils, inputs, and Holding registers, however, that allocation needs to be tied to specific global variables. Does anyone know how to achieve this, or has done it and can share a code example?