CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sun Dec 16, 2018 6:11 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Nov 11, 2018 3:02 pm 
Offline

Joined: Mon Nov 28, 2016 2:24 pm
Posts: 14
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.


Top
   
PostPosted: Mon Nov 12, 2018 6:14 pm 
Offline

Joined: Mon Nov 28, 2016 2:24 pm
Posts: 14
Could anyone test that on raspberry pi if it works or not?


Top
   
PostPosted: Tue Nov 13, 2018 8:47 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3019
Hi,
this seems to be bug,
but I see no date when it will be fixed.
only Timeout=0 Setting make sense ….

BR
Edwin


Top
   
PostPosted: Wed Nov 14, 2018 2:55 pm 
Offline

Joined: Mon Nov 28, 2016 2:24 pm
Posts: 14
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


Top
   
PostPosted: Wed Nov 14, 2018 7:52 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3019
Hi,
this covers all Versions..
BR
Edwin


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited