There is a problem regarding the ulTimeout parameter of Syscomread function of syscom library; With the code below I see that tdiff:=0ms which means that the syscomread command does not wait at least 1000ms as given in ultimeout paramater of the syscomread function. Does anyone has any recent information what could be the reason for that?
Another question: is this occurs only in raspberry pi or is it for all other controllers sold with the codesys 3.5?
I have a project that I have to use the serial library with timeout feature in codesys version 3.5, so I need to get an answer, or need to know if you have a workaround.
Best Regards,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Im using SysCom ver. 3.5.17.0 and seem to have the same issue on a Raspberry Pi. It's not waiting for the requested number of bytes, no matter if "ulTimeout := SYS_INFINITE" or any other value. The only solution I have found is to stall the program to allow the serial port to recieve the data.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
Raspberry pi with V3.5 SP13;
There is a problem regarding the ulTimeout parameter of Syscomread function of syscom library; With the code below I see that tdiff:=0ms which means that the syscomread command does not wait at least 1000ms as given in ultimeout paramater of the syscomread function. Does anyone has any recent information what could be the reason for that?
t1:=time();
SysComRead(hCom:= dwhandle, pbyBuffer:= ADR(btRxArray[1]), ulSize:= 130, ulTimeout:= 1000, pResult:= ADR(Resultread));
tdiff:=time()-t1;
Note: During my test Serial port cable is not connected so there is not 130 characters to read for the function as given in UlSize:=130.
Related
Talk.ru: 1
Could anyone test that on raspberry pi if it works or not?
Hi,
this seems to be bug,
but I see no date when it will be fixed.
only Timeout=0 Setting make sense β¦.
BR
Edwin
Thanks for the reply,
Can the Ulsize parameter function correctly and have meaning in that case?
I could try to use the SP11 package if it is a bug of SP13 version. does it cover all versions?
BR
Hi,
this covers all Versions..
BR
Edwin
Hi,
Has this topic been solved in the newest version?
Another question: is this occurs only in raspberry pi or is it for all other controllers sold with the codesys 3.5?
I have a project that I have to use the serial library with timeout feature in codesys version 3.5, so I need to get an answer, or need to know if you have a workaround.
Best Regards,
Im using SysCom ver. 3.5.17.0 and seem to have the same issue on a Raspberry Pi. It's not waiting for the requested number of bytes, no matter if "ulTimeout := SYS_INFINITE" or any other value. The only solution I have found is to stall the program to allow the serial port to recieve the data.