I can get the UC100.function to work . I can't get the status structure members(ex Idle). What is the format for getting Idle in c# ? It is supposed to be true when motion controller is idle. Any pointers would be great. Thanks
Even with that tip.....I'm having a real mental block with this...Are there any C# people that can make this work ? As you can tell I'm not a C# programming whiz. Thanks in advance Joe
Thanks .. I was trying to use a pointer, as per one of your older posts in 2017. " int GetStatus(Stat * _Stat) " . There is not much info on any of this.
Yes, it is pointer, but in C# there is no such thing as the classical pointers in C++. The motion control API is in C++ and this function has a pointer parameter, but in C# this is written with the ref keyword, because this works like that in C#.
You can look into the UCCNC/API folder for the C# wrapper it has all the API function prototypes, so you can see all return values, function names and parameters so then you see the syntaxes.
Thanks again very helpful information. Along this same line, all the Stat structure function that I have tested work fine. The exception being Softlimit, It never changes state. Is this related to the soflimit LED 268 issue, I have seen posted. I did post a bug report on its behavior with a MPG also. Thanks