MODBUS protocol framework