04-29-2012 10:38 AM
What should be my RTU frame (IN HEX) if my slave id is 1
I want to send data of a sensor to my PLC through AVR if first byte of request is 0x01 (irrespective of the request function code)
Data size is 10 bytes
Data is: 0A 2D 30 30 30 32 34 2E 30 0D
04-29-2012 02:39 PM
RTU frame. You mean a RTU ModBus slave ??
Beside the slave address you also need a ModBus address of the register for the data write.
The data you want to write is: <LF> -00024.0 <CR> Are you sure that is the data you must write in this format ??
04-29-2012 11:08 PM
04-30-2012 11:43 AM
You also have to know what ModBus commands your slave supports.
Normally a ModBus register is 16 bits.
Do you have a manual of your ModBus Slave ?
Kees
04-30-2012 11:48 AM
05-01-2012 02:26 PM
Do you have more information about your ModBus Slave. What commands does this slave support