modbus functions

M

Thread Starter

Morteza Alipour

Hi,

I want to communicate with my micro (Atmega32) and i want to use modbus protocol. I don't have any experience in using modbus!

i had to send some data to some micro controllers and they had to send response for me. now,i really don't know what is the usage of functions and their capabilities. is there any one to explain me?
 
L

Lynn August Linse

The official protocol specification is at www.modbus.org. Do NOT be alarmed at the number of functions, as you do not need to support most of them. Modbus is an old protocol, which is nothing but a 'memory transfer protocol', where a master/client and slave/server exchange bits in a table of 1-bit data, and words in a table of 16-bit data.

For most products, you form your data into an array of 16-bit integers, then support at least functions 3 and 6 to read the words in blocks and write a single register. Supporting function 16 (even if limited to 1 register at a time) will be helpful as some master tools use function 16, but not 6.
 
Thread starter Similar threads Forum Replies Date
S Modbus 7
V Modbus 2
L Modbus 8
W Modbus 3
F Modbus 2
Top