CNCzone.com-The Largest Machinist Community on the net!



Home Page Mark Forums Read Today's Posts My Replies Classifieds Reviews Photo Gallery Web Links Share Files Advertise With Us Ad List
Go Back   CNCzone.com-The Largest Machinist Community on the net! > Machine Controllers Software and Solutions > Mach Software (ArtSoft software)


Mach Software (ArtSoft software) Discuss Mach 1 , 2 and the new Mach3 here NC software here!


This forum is sponsored by:

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Ban this user!
Old 03-27-2005, 07:41 PM
 
Join Date: Feb 2004
Location: Dallas Texas
Posts: 58
mklb is on a distinguished road
A Axis and Step and Direction Spindle Setup

I need help!

I run Mach2 on a DIY cnc machine that uses X, Y, Z movements like a milling machine, but is acutally a lathe for turning pool cue shafts.

My first dilemma is setting up an A axis. I have a stepper hooked up to the spindle of my lathe. I want to use it to index for inlay work. The problem is that I do not know how to command it. When I write G1 A90, the axis tries to move to a linear position of 90. I have the axis set to angular in config>logic, but it still does not work properly.

My second dilemma is that I want to use the same stepper as a spindle motor for turning operations. I have tried numerous configurations and had no success.

I am rather self taught, and can't figure this out. any help would be greatly appreciated.


Royce
Reply With Quote

  #2  
Old 03-27-2005, 08:29 PM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,456
ger21 is on a distinguished road
Buy me a Beer?

Do you have your steps/unit set correctly? What do you mean it's trying to move linearly?

I think you'll need 2 seperate configurations if you want to use it as the spindle. You'll have to disable it as A for spindle use I think. For spindle use it should be controlled by using S. CHeck the manual for more info, as I'm just guessing here.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #3   Ban this user!
Old 03-27-2005, 10:13 PM
 
Join Date: Feb 2004
Location: Dallas Texas
Posts: 58
mklb is on a distinguished road

Ger21

I know I am looking for two different setups, I want to save them as different profiles so that I can open Mach2 with one profile for turning and the other for inlays.

Since my last post I have been able to make the a axis work. I select a axis in the port setup and designated the correct output pins. (I had done all that before). I set A to angular in Logic configuration. I was able to command g1 A.5, and get it to rotate to 180 degrees. When I go to A1, it comes aroung to the top again, but the DRO shows 1.000. I did some inlay with this and it worked by dividing the number of inlays in the full circle into 1. Four inlays would be .25, .50 .75 and 1 or zero again. I don't htink this is right, it just seems odd. I followed the manual although I can't seem to find the pages right now. It is getting late, and the pages are beginning to all look the same.


I have not been able to make the stepper spin as though it is a spindle drive motor though. I have played with the pulley settings and the motor tuning, but I get yellow flashing lights when I enter an M3 or M4 to get the motor running. I will have to pick it up on Tuesday, when I can get back to the machine.


Royce
Reply With Quote

  #4  
Old 03-28-2005, 06:33 AM
ger21's Avatar
Community Moderator
 
Join Date: Mar 2003
Location: Shelby Twp, MI....USA
Posts: 20,456
ger21 is on a distinguished road
Buy me a Beer?

M3 or M4 are usually used to turn on a relay. Not sure if that's how you would start the stepper spindle?
Here's what the manual says:
5.6.6.3 Step and Direction spindle controller
To configure the spindle motor for Step and Direction control, check the Spindle Axis
Enabled boxes on the Port and Pins, Printer Port and Axis Selection Page tab (figure 5.1).
Leave PWM Control unchecked. Don't forget to Apply the changes. Define output pins on
the Output Signals Selection Page tab (figure 5.4) for the Spindle Step and Spindle
Direction. These pins must be connected to your motor drive electronics. Apply the changes.
Define External Activation signals in Ports and Pins and Configure>Output Devices to
switch the spindle motor controller on/off if you wish to take power off the motor when the
spindle is stopped by M5. It will not be rotating anyway of course as Mach2 will not be
sending step pulses but, depending on the driver design, may still be dissipating power.
Now move to Configure>Motor Tuning for the "Spindle Axis". The units for this will be
one revolution. So the Steps per Unit are the number of pulses for one rev (e.g. 2000 for a
10 times micro-stepping drive or 4 x the line count of a servomotor encoder or the
equivalent with electronic gearing).
The Vel box should be set to the number of revs per second at full speed. So a 3600 rpm
motor would need to be set to 60. This is not possible with a high line count encoder on
account of the maximum pulse rate from Mach2. (e.g. a 100 line encoder allows 87.5 revs
per second on a 35,000 Hz system). The spindle will generally require a powerful motor
whose drive electronics is likely to include electronic gearing which overcomes this
constraint.
The Accel box can be set by experiment to give a smooth start and stop to the spindle. Note:
that if you want to enter a very small value in the Accel box you do this by typing rather
than using the Accel slider. As spindle run-up time of 30 seconds is quite possible.
__________________
Gerry

Mach3 2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html

(Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)
Reply With Quote

  #5   Ban this user!
Old 03-28-2005, 09:26 AM
 
Join Date: Feb 2004
Location: Dallas Texas
Posts: 58
mklb is on a distinguished road

Ger21

I think I have gone through the manual so many times it is all running together. I have set up all of these parameters.

I checked the spindle axis enable box.

I defined the output pins for spindle step and direction.

I defined external activation signals.

I set the spindle axis units in motor tuning. I used 1600 for the units (200steps *8 for Xylotex microstep).

I set the Vel box to 3.333 (200rpm max/60)

I have played with the accel box, both low and high.

When I go to the MDI screen and command S100, it changes the DRO speed to 100 just like it is supposed to. But when I try to start the spindle, all I get is a yellow light flashing in the DRO display. If I hit reset or type in an M5 command, it will stop. I get the same yellow flash if I command an M3 or M4.

I have also played with the pulley settings. My actual pulley arrangement on the machine is 1 to 1, so I don't need any reduction or multiplication. I currently have the software set to pulley #4, with a max speed of 1000.

If there is anyone out there who has used Mach2 to drive a stepper for spindle control I would love to see your setup. I know it is something simple that I am not doing right, I just don't know what it is.

I love this software, but this is an important function that I must have. I have not purchased the activation yet because I have not been able to get this to work. I really like everything about the program, I just need to be able to get this to work.

Royce
Reply With Quote

Sponsored Links
  #6   Ban this user!
Old 03-29-2005, 09:14 AM
 
Join Date: Feb 2004
Location: Dallas Texas
Posts: 58
mklb is on a distinguished road

Boy do I feel dumb!!

I went through the setups again last night and I found my error. I had not changed the port # from 0 to 1 for the spindle. I had set the step and direction numbers properly, I had just not told it which port is was coming from.

So anyway, the spindle is now spinning properly. I have to work out the speed, and make sure that it is right, but I will have to wait until tonight for that.

Thanks to all for all your help. I know I found my own problem, but I would have still been thinking there was some setup that I had not found if you guys had not pointed me back in the same direction.


Royce
Reply With Quote

  #7   Ban this user!
Old 11-27-2009, 07:19 AM
 
Join Date: Jul 2003
Location: Ontario, Canada
Posts: 89
ngr1 is on a distinguished road
stepper spindle.

Hi Royce, thanks for sharing ur experience. I am trying to do the same thing with my machine which is in transit now.

Refer to the following link which may help.

http://www.machsupport.com/forum/ind...c,11422.0.html

Sounds like ur missing an indexing component to do ur inlays.

Let me know what u think.

Norman



Originally Posted by mklb View Post
Boy do I feel dumb!!

I went through the setups again last night and I found my error. I had not changed the port # from 0 to 1 for the spindle. I had set the step and direction numbers properly, I had just not told it which port is was coming from.

So anyway, the spindle is now spinning properly. I have to work out the speed, and make sure that it is right, but I will have to wait until tonight for that.

Thanks to all for all your help. I know I found my own problem, but I would have still been thinking there was some setup that I had not found if you guys had not pointed me back in the same direction.


Royce
Reply With Quote

Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CNC Glossary CNCadmin CNCzone Club House 17 03-09-2008 03:08 PM
Series 2 BOSS 6 Axis motion problem craig96us Bridgeport and Hardinge Mills 43 01-14-2006 11:06 AM
Beta Testers for QMill/CNC discussion CNCadmin General CNC (Mill and Lathe) Control Software (NC) 18 11-25-2005 12:33 PM
Dirction / Step lines! bigal TurboCNC 2 02-06-2005 01:51 PM
PIN OUT 4th axis Snel Haas Mills 1 01-12-2004 11:13 PM




All times are GMT -5. The time now is 03:04 PM.





Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO
Template-Modifications by TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361