Page 1 of 1

"Bad request" exception

Posted: Mon Mar 15, 2021 2:46 pm
by togidor
Hi,

I have a "KLOP" and a "KONNECT" connected to it via "JP6 #AUX1" . My program runs the c file whose content is as follows.

Code: Select all

#include "KMotionDef.h"
main()
{
	InitAux();
	AddKonnect(2,&VirtualBits,VirtualBitsEx);
}



And i am reading inputs succesfuly every 100 ms. But Kmotiondotnet.dll sometimes throws "Bad Request" exception during ".GetDigitalValue()".
I couldn't understand.I'm waiting for your help.

Thanks

Re: "Bad request" exception

Posted: Mon Mar 15, 2021 3:49 pm
by TomKerekes
Hi Togidor,

I'm not aware of any such issue and I don't see a way GetDigitalValue() could throw such an exception.

Are you sure that is the error you are receiving? Bad Request is commonly associated with http server requests.

Can you send a small code fragment that demonstrates the problem?

What Version are you using?

What language is your App written in?

What else is your App doing?

Can you set breakpoints in GetDigitalValue() to see what is wrong?

Sorry for no simple answer.

Re: "Bad request" exception

Posted: Tue Mar 16, 2021 1:42 pm
by togidor
Sorry. The error should have been "Bad return value", not "Bad request". I typed it wrong.
The problem was noises. Our cable was not suitable for high speed communication. Everything's ok.
Thanks for your time.