05-20-2015 11:51 AM
This is the part of the writeto slave code which is causing error.
if (GetInQLen (portNo) < mb.bRcvd) {
comerr = kRS_IOTimeOut;
goto Error;
}
05-20-2015 02:32 PM - edited 05-20-2015 02:32 PM
The function you are using is waiting for 8 bytes response, which reflects Modbus standard for function code 0x10: Preset multiple registers.
Is your device capable to handle such a function? Or can it only accept function code 0x06: Preset single register? If the device cannot handle function 0x10 it will not give any response, thus your timeout error. Device capabilities are normally described in the documentation.
02-22-2017 06:35 AM
Hi,
My project is related to ModBus CVI applications. I'm still using CVI 7.1.
The sample files in the forum has been removed. Probably too long time ago. Would you mind to post it again.
Many thanks.
02-22-2017 07:21 AM - edited 02-22-2017 07:21 AM
I reloaded the document you are referring to: it is now waiting for approval. I will post here when it will be available for download.
02-27-2017 04:45 AM
The document we are referring to has been published and is now available here
02-27-2017 05:43 AM
Thank you Roberto.
I'll try it.