Skip to content

Register: Offset based on the length (xxx32 = -2, xxx16 = -1)? #91

Answered by aldas
gutschein asked this question in Q&A
Discussion options

You must be logged in to vote

Starting address and offset is device/manufactures specific - how they choose to address data. In Modbus packet addresses are 0-based - so first address is 0 (term data address). In documentation they are sometimes/often referred as 1-based. Often in form of 40001 where first number represents function type because some modbus devices can have different memory for different functions - so FC3 can not read FC1 data.

If you want to read more see modbus spec page 7 - "4.4 MODBUS Addressing model"
https://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf

See this #79 (comment)

I highly recommend:

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by gutschein
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants