Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus Serial Master Query.VI ---> TIMEOUT ERROR???

Hi
I am using the National Instrument Modbus Serial Master Query.VI to control a modbus device from labview.
It is working but I keep getting a timeouterror. I know there is a timeout issue with pc&modbus but I dont know where to change the timeout except for the obvious frontpanel of the NI VI. This doesnt help. Has anyone used this VI and understand my problem?

The Error code is:
"Error 6101 occurred at Timeout Error

This error code is undefined. No one has provided a description for this code, or you might have wired a number that is not an error code to the error code input."


Thanks
Fredrik
0 Kudos
Message 1 of 8
(7,577 Views)
Hello!

I haven’t used the VI in question and have never programmed against a modbus device, but I searched on our databases after similar reports on this error and unfortunately I didn’t find any useful information.

The only thing I can suggest is that you increase the timeout terminal on the VI in question just like you have done.

Regards,
Jimmie A.
Applications Engineer, National Instruments
Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 2 of 8
(7,533 Views)
hi,
I never used Modbus Serial Master Query.VI, but using the ModBus driver available at this URL
http://www.saphir.fr/GB/products/drivers/modbus/index.htm
allows you to set the timeOut delay for all your querry.
An exe demo is dowloadable here :
http://www.saphir.fr/GB/products/downloads/index.htm
you can test modBus communication with it.

Hope this can help you...

Olivier Jourdan

Wovalab founder | DQMH Consortium board member | LinkedIn

Stop writing your LabVIEW code documentation, use Antidoc!
0 Kudos
Message 3 of 8
(7,518 Views)
Hi Fredrik,

I have the same timeout error problem. Did you solve it in the end (and if you did, what was the solution)?

Thanks,
Jurry.
0 Kudos
Message 4 of 8
(7,425 Views)

I am also experiencing the 6101 timeout error.

Has anyone found a solution for this?

Best regards,

Gabriel
0 Kudos
Message 5 of 8
(7,041 Views)
Generally timeout errors are due to the device you are trying to communicate does not recognize a command and therefore does not return any data.  Try sending some commands that you are confident the device will understand to make sure that you have a connection.  The error could also be due to the messages being too long.  Increasing the timeout will fix this issue.  Also, be aware that if you double click on the Modbus icons when they are on the block diagram you can edit their source code.  This can be helpful if you need to customize the way your program runs.
Scott G.
AE Specialist
National Instruments
0 Kudos
Message 6 of 8
(6,955 Views)
I also have this error, I have done what we have suggested, but still leaving mistake.
How could someone help me?
 
Thanks
0 Kudos
Message 7 of 8
(6,529 Views)
Hello Francis,
Do you have any more specifics as to what you've tried. As Scott_G mentioned, these timeout errors are usually caused by either incorrect commands going through or an overflow/undeflow of data. Have you also gotten anything to work on your system, or is this the first time you are doing this?
Let me know
Can Wong
0 Kudos
Message 8 of 8
(6,504 Views)