This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

modbus

hello all,
i am implementing HMI touchscreen communication with LPC2148 i.e ARM7 using MODBUS RTU HEX ADDRESS(master). i am writing multiple register using function code=0x10

so query which i receive from HMI is as follows for address=0001 and writing 2 words.

01 10 00 01 00 02 04 1a 85 26 94 3f 5d

and i give response:

01 10 00 01 00 02 10 08

but after this HMI again gives me another string:

01 00 00 04 85 94 5d

i you notice this string is alternate display of query string where

10 02 03 1a 26 3f are eliminated.

pls explain me where is the problem.

to confirm above i entered again another address

query from HMI
01 10 8d ef 00 02 04 1a 85 26 94 89 cf

response from ARM
01 10 8d ef 00 02 5b 51

and i get string from HMI
01 8d 00 04 85 94 cf

pls guide me.
thanks

Parents
  • hello sir,
    thanks for reply.
    i just want help. if anyone have impelented the complete protocol then they will reply.
    i have given problem as this is the forum for solving doubts, right?
    so if anyone has faced such problem then i would like to know the answer as i may go wrong.
    my protocol is working well for other function code. only in this protocol i m having problem.
    so if you can guide me then that will be appreciated.
    thank you

Reply
  • hello sir,
    thanks for reply.
    i just want help. if anyone have impelented the complete protocol then they will reply.
    i have given problem as this is the forum for solving doubts, right?
    so if anyone has faced such problem then i would like to know the answer as i may go wrong.
    my protocol is working well for other function code. only in this protocol i m having problem.
    so if you can guide me then that will be appreciated.
    thank you

Children