121
MODBUS / Simple Modbus Simulator
« on: September 07, 2009, 05:22:54 PM »
Hi Mark,
I want to make a simple modbus simulator that will resond to all 247 modbus addresses, I want it to compute the response depending on what address is read. i.e. if the input register at address 1 is read I would like the data returned to be 1, if adress 2 is read the data should be 2 etc. This is for testing purposes.
I know I could use MODBUS_SHARED_SERIAL_INTERFACES but this seems like a bit of overkill. I thought I might be able to use fnMODBUSuserFunction but how do I get this to be called for every address?
Cheers
Martin
I want to make a simple modbus simulator that will resond to all 247 modbus addresses, I want it to compute the response depending on what address is read. i.e. if the input register at address 1 is read I would like the data returned to be 1, if adress 2 is read the data should be 2 etc. This is for testing purposes.
I know I could use MODBUS_SHARED_SERIAL_INTERFACES but this seems like a bit of overkill. I thought I might be able to use fnMODBUSuserFunction but how do I get this to be called for every address?
Cheers
Martin
