Hello Tom, I tried to delete or rename file, also I deleted all the reference to the projet et give the new one, clean and rebuild the wole solution more times but it didn't work! :evil: So I have try to create a brand new projet and put as reference the new dll and this time it works! :D So, defini...
Hello, in the source file BitState200[] is a three elements array [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)] public int[] BitsState200; // Kogna - 90 bits 200-289 of state lsb=I/O bit200 but at runtime I get a two elements array! But I see there is a bug. This returns lower bits 0-63. Atta...
Hi Tom, Attached is a corrected KM_MainStatus.cs file. Are you able to recompile KMotion_dotNet? I recompiled KMotion_dotNet project with this KM_MainStatus.cs to get a new KMotion_dotNet.dll that I use in my project. When I decompile the new dll to check if the two modification are applied I can fi...
Hello Tom, I sow the two correction. The decompiled file that I get look like this: first, public int Enables => MainStatus.Enables; public int AxisDone => MainStatus.AxisDone; public int[] BitsDirection => MainStatus.BitsDirection; public int BitsDirection200 => MainStatus.BitsDirection200; public ...
Hi Tom, thanks for the path, but the link open the file instead to download it. Have I to copy/paste in a text file? I'm very inconfortable to do that :( :roll: Could you send me the file by email or put a download link? Ok, forget... I just find Save link As... save as .out file :oops: Thanks Raffa...
Hello Tom, I recompiled KMotion_dotNet, end now in decompiled dll I can see: public int GetBitState200(int index) { return GetValue(MainStatus.BitsState200[index - 200 >> 5], (index - 200) & 0x1F, 1); } but I always get the wrong value. I have put a break point when I ask for a new status end I obse...
Hi Tom, I'm writing C# application and I switch from KFlop to Kogna. To refresh my GUI I have a timer to ask MainStatus each 250ms. I always can read axis position/destination, but how can I get kogna's bit? I need to read bit from 218 to 223 (EX_IO8 to EX_IO13) As workaround I could use ReadBit com...