Hello Guest it is April 27, 2024, 03:30:47 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.


Messages - TomL21

Pages: « 1 2 3 4 5 6 »
11
Mach4 General Discussion / Re: Current Status of Mach4 Lathe
« on: February 16, 2015, 08:42:22 AM »
mach4 lathe is already running much better than mach3.  check out brian's youtube videos on the mori

https://www.youtube.com/watch?v=64KFiXM7ziA
https://www.youtube.com/watch?v=YvQeXDsVZ0A
etc..

12
Mach4 General Discussion / Re: Current Status of Mach4 Lathe
« on: February 16, 2015, 08:39:29 AM »
The significance of the yellow highlighted items is simply that the descriptions are not complete in the manual.  The manual is not quite done.....

13
dspMC/IP Motion Controller / Re: Need Help! DSPMC Setup
« on: July 27, 2013, 07:54:44 PM »
Yea...tried a couple other ways, but thanks to Marc at Vital System the dspmc now has a way to start the home sequence using NotifyPlugin () instead of the oem button.  Will get back to it monday/tuesday and hopefully all will be well!

An alternative would be to find the nearest position yhat is a multiple of 360 move there and call a g92.

14
Not sure if I'm off track here but when you say "using the home button" how do you mean? I ask because you can't "hit" the screen home button from code (like you can with say cycle-start with doOEMButton etc.). The home BUTTON (on the standard screen anyway) is just a script and doesn't have an OEM code. If you want to home C from code you'd just do a doOEMButton(1027).

Sorry, by hit the home button i mean DoOEMButton(1027), that is essentially hitting a button.  It is not allowed when you're running a program.  Does work in the MDI mode.  Trying to find a work around.

15
dspMC/IP Motion Controller / Re: Need Help! DSPMC Setup
« on: July 26, 2013, 11:49:19 AM »
Machine is almost rockin!  X Y and Z are fantastic.  Had to get some modbus comms working to talk to the VFD and swap some parameters to get the thing to work as a servo and a spindle.  So now I have excellent spindle control up to 6k rpm and can swap it into a C axis and have full rock solid position control.  Even got the tool change working in the MDI mode....that's where the fun ends.

In the toolchange macro I enable the C axis and change the parameters in the VFD then turn on the output to set the vfd into run mode (position control enabled).  The next thing is to home the spindle to get the orientation correct, using DoOEMButton(1027).  This bit is not allowed when running a program.  If I don't home it, then the C axis has to "unwind" (even with mach set to roll over at 360 Degrees) to get to position after running as a spindle.

Need a way to home the C axis in a program, by passing the OEM button 1027.

16
I'm guessing the short answer was yes. (But nicely avoided BTW  ;D)
Thank you, thank you.

Also not a good idea to call a macro from a macro. It's likely to turn around and kick you up the ***.
Yep, agreed, I was being lazy.  Found it when I moved all the code from the M13 and M15 (cancel position mode) into the M6 to avoid the M call.  Getting in contact with the Vital System guys, need to find some way to tell the DSPMC to home without using a home button in Mach.

17
M13? - you're not writing a macro and naming it M13 are you? (Hint: Yes is the wrong answer  ;))

???

The toolchange macro is M6Start.  M13 is just a macro that changes some settings in the vfd via modbus, turns on an output, enables the c axis, and homes the c axis.  The M13 works fine on it's own, commanded in mdi, as does the M6.  The M13 is commanded inside the M6 macro, to switch the spindle to position mode for orientation and indexing of the tool changer.  Mach just doesn't allow a home button to be pushed via script during a program run.

18
Sorry, wrong file.  They were all changed.  Been working with a friend we got it figured out.  In program run mode mach hangs on my M13, the code that switches the spindle into position mode.  In order to change tools the spindle needs to change to position mode and then home to get the correct orientation for the tool changer.  Mach, doesn't like when you hit the home button during program run...imagine that.  We're working on that now.

Thanks Stirling, you helped me realize that in the vb window i had been working on my backup copy....i'm a dumba$$

19
See attached for code

20
I can post a copy of the macro tomorrow am, forgot to grab a copy off the machine

Pages: « 1 2 3 4 5 6 »