Hello Guest it is March 28, 2024, 09:08:03 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - tesophis

Pages: 1
1
General Mach Discussion / Input c# using Mach4
« on: November 13, 2019, 09:02:13 AM »
Hello,

I programm in c# but have some problems:
Connection works perfect get Axis and start them everything ok
---------------------------------------------------------------------------------------------
using System.Windows.Forms;
using System.Runtime.InteropServices;
using Mach4;
   int code = System.Runtime.InteropServices.Marshal.GetExceptionCode();
     
 
            txtXAxis.Text = _mInst.GetOEMDRO(800).ToString();
            txtYAxis.Text = _mInst.GetOEMDRO(801).ToString();

// List og OEMDRO https://www.cnc-steuerung.com/oem--buttons-code-liste-mach3-software.html

----------------------------------------------------------------------------------
for Output I use _mInst.DoOEMButton(233); // to 238 that works

but:
I want to read the Input State of Input 3-12 but i have no Idea how i can do this.

And how can I get the last error Message?


Thanks al lot.

Greetings
Sebastian

Pages: 1