Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RTU slave frame format

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

0 Kudos
Message 1 of 6
(3,212 Views)

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 ??

 

 

0 Kudos
Message 2 of 6
(3,206 Views)
yes. I am looking for Modbus RTU slave frame. Yes the data is in the format you mentioned. I am not aware where should the register address be placed in the frame and whether I should add the count of Data bytes in the frame. I am even unsure whether data should be in 16bit or 8bit format.
0 Kudos
Message 3 of 6
(3,201 Views)

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

0 Kudos
Message 4 of 6
(3,193 Views)
I am writing the program for the Modbus slave and irrespective of the command I receive, I wish to send the Modbus frame with the data above.
0 Kudos
Message 5 of 6
(3,191 Views)

Do you have more information about your ModBus Slave. What commands does this slave support

0 Kudos
Message 6 of 6
(3,185 Views)