Dynomotion

Group: DynoMotion Message: 426 From: Azd M Date: 6/9/2010
Subject: Getstaus Function problem
Hi Tom,
Thank you very much for your appreciated help.
I am trying to display the status of my robot axes. Firs I used KM writeLineReadline(..)function for each parameter and it was successful but quite slow.. however I believe using GetStaus function is more efficient from KFlop point of view. However, I am not able to receive the full data of the GetStaus response. sometimes i Get only 16 (32 bit) data when used with write read function. and it generates program failure when used with call back and service console.
Do you have sample code for VB2008 or any hints on how to retrieve the GetStatus response.

Regards
Azeddien
Group: DynoMotion Message: 427 From: Tom Kerekes Date: 6/10/2010
Subject: Re: Getstaus Function problem
Hi Azeddien,
 
Yes GetStatus will be faster.  The problem you are having is because whenever you request more than one line of response from KFlop you must first Lock the board by obtaining its "Token" so other commands and responses can not occur while you are receiving the lines and then Release the "Token" after you are finished.  See:
 
 
 
Another example of this is in KMotionCNC.  Search the source code for the usage of
 
int CKMotionCNCDlg::GetStatus()

 

 

I hope this helps

TK