Reading Modbus Registeres


tlemar

Recommended Posts

I am having problems reading a device that I just brought on-line. I have attached an excerpt from the device documentation. I can read the Serial No (49002-49003) using S32 RWords(3). However, I have been unable to find any setting that provides values or doesn't throw an Modbus #128 error when trying to read Device Name value (Register 49051-49082). I am doing something wrong?

The document is entitled - "In-Situ Modbus Communication Protocol Version 5.5". The full document can be found at In-Situ Website

post-3187-1259622664_thumb.jpg

Link to comment
Share on other sites

My guess is that you have to read all 32 registers that make up that string. Use Read U16. Do it from script, since channels won't concat into a single string for you very easily. Its unclear whether each register is a single character, or two characters. My guess is a single character, in which case you can just take the result from Read U16 and use the chra() function on it and it will return a single string.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.