11-16-2008 05:14 PM
Hi,
I've been trying for a few days now to get the NI modbus library (http://zone.ni.com/devzone/cda/epd/p/id/4756) to work with an Omega CN7500 temperature controller with not much luck.
It works with Omega's own software (using Modbus with a RS232 to RS485 converter) but I need to get it work with Labview for automation purposes and to integrate it with the rest of the system.
We configured it the same as we did for the Omega software (baud rate, parity bit, flow control, etc)
Currently when we run it, the execution gets stuck at the MB Serial Master Query block and then we receive a timeout error.
Here's my program.
I'm new to using Labview so please bear with me if it's something obvious.
Any help would be greatly appreciated.
Thanks.
11-16-2008 06:50 PM
Try setting the mode for RTU instead of ASCII.
Also double check the address. For some reason the controller manual lists the addresses in hex. 1002H which is Upper Limit of Range. The modbus VI's address input is generally decimal. 1002 hex is 4098. So try 98 (or even 97) as the address since the 4 is not used when doing the Modbus communication.
11-16-2008 06:55 PM - edited 11-16-2008 06:56 PM
11-17-2008 12:07 PM
11-17-2008 03:03 PM
Yes, the hex suggestion was fantastic. I can't believe I was doing that. It seems to be accessing the temperature controller now. I need to test it more but it's looking hopefully.
Thank you so much Ravens Fan. You are truly a scholar and a gentleman.
11-17-2008 03:59 PM
rkrauskopf wrote:Yes, the hex suggestion was fantastic. I can't believe I was doing that. It seems to be accessing the temperature controller now. I need to test it more but it's looking hopefully.
Thank you so much Ravens Fan. You are truly a scholar and a gentleman.
11-18-2008 06:24 PM
Okay, I'll post up here since our controllers are identical.
I have the same problem. I am getting a timeout error.
I am using a NI USB-485 and I have the temp controller's Data - connected to pin 8 on the DB9 and the Data + connected to pin 4 (RXD+)on the DB 9.
I have confirmed that all my communciation setting match what is set in the controller.
I am trying to Read the Holding Registers with a starting arrdess of 96 (1000H or 4096) in the starting address. Quanity is set to 1 and my slave address is 1.
What am I doing wrong? Do I need to tie together pins
11-19-2008 03:19 PM
Doug,
Would you mind posting your code?
Thanks,
11-21-2008 11:14 AM
11-24-2008 10:20 AM
Doug,
I recommend the following:
1. Increase your timeout on the MB Serial Master Query to 2 seconds.
2. Take a look at the following forum threads: here and here.
The timeout error (6101) can occur for several different reasons such as noise, amount of data, timeout value, etc.