Hello Guest it is March 29, 2024, 06:59:48 AM

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.


Messages - babinda01

Pages: « 1 2 3 4 »
21
Hi Carlo
Sorry for not replying sooner, but I have been away.
Yes you can do this with VB.net.  I have only just started using C#, I used to use vb.net for everything, but I am now a convert and use C#.
If you would like to use INSTANT VB (tangiblesoftwaresolutions.com), my C# example should convert to VB ok - I havn't tried this, but I have used this converter software in the past and it seems to work perfectly from C# to VB but a little dodgy from VB to C#.
Hope this helps

Andrew

22
Hi,
Not sure if this would be any help to anyone, but here is a rough test application I was using to get the hang of remoting Mach3 from C#.  I can't post the finished code as it is for a customer, and I don't think he would like me posting it here.
Any questions or suggestions please give me a yell.

Regards
Andrew

23
Hi Guys,
I am working on remoting mach from C# as well.  I have got most things working, but I am tearing my hair out with a problem.  Brian added into Mach3 the .GetMessage call (to display the status label data), this returns a BSTR, now that is well and good in C++ but it is killing me with C#.  Do you guys know of a way of accessing a BSTR in C#???
Thanks
Andrew

24
General Mach Discussion / Lathe Threading
« on: November 09, 2007, 08:47:56 AM »
Hi,
I have finally got my lathe up and running, and am having a little trouble with threading.  I am not sure if is just the way mach does threading or if I am not writing the code correctly, or have it configured correctly.
I am cutting a M24x3 thread at 1000RPM and I have a 45deg taper programmed at the end of the thread, but when cutting it gets to the end of the thread and pauses for a moment, causing a groove to be machined around the bar, and then it goes and tapers the thread out as it is supposed to.
Any ideas about what I should be looking at?  I do have it in exact stop mode, should I maybe have it in constant velocity mode???
Apart from that it is working perfectly, I had it threading at 1500rpm doing the same thread but the bar was vibrating a bit to much so I dropped the speed down a little.

Regards
Andrew

25
General Mach Discussion / Re: Spindle feedback problems
« on: October 26, 2007, 06:12:46 PM »
Hi
Yes I can ses the led light every rev.

Andrew

26
General Mach Discussion / Re: Spindle feedback problems
« on: October 26, 2007, 09:08:53 AM »
Hi
Thanks for the reply.
I have this checkbox checked.

Andrew

27
General Mach Discussion / Spindle feedback problems
« on: October 26, 2007, 06:51:51 AM »
Hi,
I am trying to set Mach3 up on a lathe.  I am using the index pulse from an encoder mounted to the spindle as feedback.  Mach3 accuratly moniters my spindle speed, I have checked with a laser tacho and the speed shown on the Mach3 screen is always with 1 or 2 RPM of my laser tacho (850RPM).  But when I go to use G95 I get a warning saying no feedback is found in G95 mode.  Any thoughts on what I should be looking at to sort this problem???
Thanks
Andrew

28
General Mach Discussion / Galil on a Lathe
« on: October 01, 2007, 08:16:46 AM »
Hi,

I have a lathe that I need to get up and running, and I am thinking of using a Galil card with Mach3.  Just wondering what the status of threading with a Galil card is, does it work yet???
What Galil cards are people using, is any one better than another????

Regards
Andrew

29
General Mach Discussion / Re: Keygrabber
« on: May 29, 2007, 03:52:04 AM »
Hi,
Art mentioned that there was the VB Source code somewhere for the keygrabber utility.  Does anyone know where this is.  I found on the Yahoo list c++ code for keygrabber, I think in is Borland C++ but I'm not sure.

Regards
Andrew

30
General Mach Discussion / Re: Keygrabber
« on: May 28, 2007, 06:08:28 AM »
Thanks guys for the replys.
I have SOME of it sorted.  I only really know a little VB so the thought of getting involved in a plug-in is a little worrying (I am but a humble machinist).
I have been playing around with the macropump, and I have a lot of the functions working.  I have up to six channels of 10bit analog working, at the moment this is only doing x & y jogging, feedrate override, spindle override, and rapid override - I have one channel up my sleave (mmmm, now what can I use that for). I have 32 buttons working, but am having trouble with 2 mpg inputs and duplex toggle switch inputs, but this is more of a API problem I think.  I am using the winmm.dll and I think it is having trouble with more than 32 buttons - can anyone shed some light on this?????
What I am having trouble with is push buttons for jogging the axis.  I am calling an OEMButton 311 (for z axis), but I need to have a button up event to stop the jogging when my shaking finger leaves the button.  Can anyone shed light on this???

Regards
Andrew

Pages: « 1 2 3 4 »