W
Hi.
For a project i had to implement to MODBUS protocol (Rtu and ascii) in a custom software. I used the website http://www.simplymodbus.ca/index.html to help myself understanding it.
But after coding it someone asked me the question "do you use 6 digits address?" and now i am lost. I had no knowledge about this.
In my understanding after reading some posts here (correct me please if i am wrong) the requests frames will not change if the address are 4, 5, 6 digits, nor will the answer frames. but i will still have to take into account the kind of address when i am decoding the answer.
For example in the case of the function 01 (http://www.simplymodbus.ca/FC01.htm), is the request always this whatever the kind of address:
11 01 0013 0025 0E84
0013 being 0013 understood by the target as 0013 in 4 digits 10013 in 4 digits and 100013 in 6 digits.
This is the first time i am working on this protocol and this is really the only part where i can't seems to find much information about it.
Thank you for your answers!
For a project i had to implement to MODBUS protocol (Rtu and ascii) in a custom software. I used the website http://www.simplymodbus.ca/index.html to help myself understanding it.
But after coding it someone asked me the question "do you use 6 digits address?" and now i am lost. I had no knowledge about this.
In my understanding after reading some posts here (correct me please if i am wrong) the requests frames will not change if the address are 4, 5, 6 digits, nor will the answer frames. but i will still have to take into account the kind of address when i am decoding the answer.
For example in the case of the function 01 (http://www.simplymodbus.ca/FC01.htm), is the request always this whatever the kind of address:
11 01 0013 0025 0E84
0013 being 0013 understood by the target as 0013 in 4 digits 10013 in 4 digits and 100013 in 6 digits.
This is the first time i am working on this protocol and this is really the only part where i can't seems to find much information about it.
Thank you for your answers!