Hello Guest it is December 12, 2019, 10:42:14 AM

Author Topic: Need Help! DSPMC Setup  (Read 26028 times)

0 Members and 1 Guest are viewing this topic.

Re: Need Help! DSPMC Setup
« Reply #40 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.

Offline BR549

  •  6,916 6,916
    • View Profile
Re: Need Help! DSPMC Setup
« Reply #41 on: July 27, 2013, 07:27:21 PM »
Have you thought about using an alternate method of setting USER zero in C other than ref home?

Re: Need Help! DSPMC Setup
« Reply #42 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.