A
Dear All,
As I am developing a product which gets interfaced with HART field sensor using 4-20 mA signal. My product has one RS232 port so user can configure any HOLDING register using PC based modbus master software.
Now this Hodfing register map includes some normal device operation related configuration parameters (which user can just configure immediately) and some parameters needs to be configured by doing long-duration process. e.g. it maps HART device's configuration parameters. As it recives command-0x10 combined for normal parameters and HART device configuration parameters, How my product should handle this query??? Because for each HART configuration parameter, it has to generate HART write command (for this my product acts as HART Master) and send it to HART slave device, getting back response etc.
So for this particular scenario, I have some doubts:
[1] As my product receives 0x10 command, it can give back immediately exception response with ACKNOWLEDGE code. So master can know that slave wants to do long-duration process.
[2] If I am following point-[1] and if later on, HART write commands failed by some means, what to do with other normal device config parameters?? Should I write atleast those normal parameters???
[3] What sequence I have to consider, i.e. Should I write first normal parameters or after HART commands result???
[4] If my product is in process, and master sends any another write command, Should I give back SLAVE_BUSY exception response???
[5] If my product is in process, and master sends any READ command, should my product perform it or give back SLAVE_BUSY??
[6] Eventually, after finishing 0x10 command successfully or not, Should I allow any next write command from master??? If master sends same 0x10 command, should I give back cashed response or have to same process again???
I am really in confusion, please help me. how to solve this issue?
Thanks and regards,
ControlEng
As I am developing a product which gets interfaced with HART field sensor using 4-20 mA signal. My product has one RS232 port so user can configure any HOLDING register using PC based modbus master software.
Now this Hodfing register map includes some normal device operation related configuration parameters (which user can just configure immediately) and some parameters needs to be configured by doing long-duration process. e.g. it maps HART device's configuration parameters. As it recives command-0x10 combined for normal parameters and HART device configuration parameters, How my product should handle this query??? Because for each HART configuration parameter, it has to generate HART write command (for this my product acts as HART Master) and send it to HART slave device, getting back response etc.
So for this particular scenario, I have some doubts:
[1] As my product receives 0x10 command, it can give back immediately exception response with ACKNOWLEDGE code. So master can know that slave wants to do long-duration process.
[2] If I am following point-[1] and if later on, HART write commands failed by some means, what to do with other normal device config parameters?? Should I write atleast those normal parameters???
[3] What sequence I have to consider, i.e. Should I write first normal parameters or after HART commands result???
[4] If my product is in process, and master sends any another write command, Should I give back SLAVE_BUSY exception response???
[5] If my product is in process, and master sends any READ command, should my product perform it or give back SLAVE_BUSY??
[6] Eventually, after finishing 0x10 command successfully or not, Should I allow any next write command from master??? If master sends same 0x10 command, should I give back cashed response or have to same process again???
I am really in confusion, please help me. how to solve this issue?
Thanks and regards,
ControlEng