Hello Guest it is July 13, 2020, 05:20:41 AM

Author Topic: Help controlling a stepper motor as a lowRPM spindle  (Read 17827 times)

0 Members and 1 Guest are viewing this topic.

Re: Help controlling a stepper motor as a lowRPM spindle
« Reply #50 on: August 31, 2012, 03:22:49 PM »
I wrote that line of code DoOemButton (1025) in VB and saved it in my Macro file as M210. Is there something else I need to do in the software to define the OEM's?

Barry.

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: Help controlling a stepper motor as a lowRPM spindle
« Reply #51 on: August 31, 2012, 04:03:51 PM »
Sorry not sure what you are asking.
Is it not zeroing the machine coords for A when you call M210?
Hood
Re: Help controlling a stepper motor as a lowRPM spindle
« Reply #52 on: September 04, 2012, 07:23:09 AM »
Good morning Hood,
Maybe I forgot to mention it was the Z axis I was using. I am expecting the motor/drive for my A axis later today, I was using my Z axis for testing purposes. I guess that there is a different number than 1025 for the Z axis zero then?

Barry.

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: Help controlling a stepper motor as a lowRPM spindle
« Reply #53 on: September 04, 2012, 07:26:22 AM »
Yes 1024 is Z
Hood
Re: Help controlling a stepper motor as a lowRPM spindle
« Reply #54 on: September 04, 2012, 07:52:31 AM »
I tried 1024, but it still doesn't zero out when I run M210  ???
Re: Help controlling a stepper motor as a lowRPM spindle
« Reply #55 on: September 04, 2012, 08:39:16 AM »
Hi Hood,
Sorry, I see I didn't answer your earlier question as to why I am using it linear instead of rotary.
I am using my current Z axis because I wanted to make sure I have the available Horse Power to drive my positioner. I have a 10:1 gearbox on my Z axis, and am putting the same on my positioner. I just kept it as my Z axis so I don't have to change the settings when I put it back. I am expecting the new motor/gearbox/drive sometime today and will make that my A axis. I am still having a problem with referencing my Z axis from my M210 macro though (DoOEMButton (1024) ).

Barry.
Re: Help controlling a stepper motor as a lowRPM spindle
« Reply #56 on: September 04, 2012, 11:41:09 AM »
Hi Hood, all is working fine. It turns out I was putting it into the Macro file of my backup XML file  ::)
Re: Help controlling a stepper motor as a lowRPM spindle
« Reply #57 on: September 04, 2012, 02:24:14 PM »
Hi Hood,
Now that I have my Macro working, I notice that when I run it, the DRO for the Z axis displays 0.0057. I put the Y axis zero 1023 in the same macro, and the DRO displays 0.0000. Any idea why my Z axis won't do the same? I need to reference my axis at 0 at its last position. The 0.0057 multiplies and puts my positions out every time I run my M210 macro.

Barry.

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: Help controlling a stepper motor as a lowRPM spindle
« Reply #58 on: September 04, 2012, 02:29:56 PM »
Is this machine coords? Maybe you are looking at work coords and have an offset set. If you are run the macro and then press the zero button and it should be fine after that, If not and it is machine coords you are looking at then maybe you have a Home Off value set for Z in the Homing setup page.
Hood
Re: Help controlling a stepper motor as a lowRPM spindle
« Reply #59 on: September 04, 2012, 03:55:19 PM »
Yes you are correct Hood, I was looking in the wrong coordinates. Thanks.