View Single Post
  #4  
Old 01-31-2005, 04:28 PM
ynneb's Avatar
ynneb ynneb is offline
Moderator
 
Join Date: Feb 2004
Location: Oz
Posts: 2,580
ynneb is on a distinguished road

Hey Frans, I never could work mine out mathematically, so I went for the trial and error method.
Draw 3 lines on your table, one at zero and one at 1000 mm and one at 2000mm ( As I know your table is at least this long)

Then zero your axis at the zero line.
Set the steps per unit at a rate that you know would be less than it should be. For example you could set it at 10,000 steps per mm of travel.
Then drive your axis 1000mm buy typing in g0x1000 (replace the x in this code with the letter of the axis, x, y, or z. )
Keep you finger near the emergency stop button and send the axis moving. If the axis passes the 1m mark then activate your emercency stop. This means you will need to increase the steps per unit in your motor tuning set up. If it doesnt reach the 1m mark then you will need to decrease the steps per unit. If for instance the travel is only 500mm then that means you will need to halve your current steps per unit setting.
You will need to do a few tests of different settings until you get it to travel the correct distance.
Once it is about right send your axis down to 2m and make any fine tuning in the steps per unit setting that is required.

I know this method does not sound as good as doing it mathematically but in some ways it is more accurate. Lets say your pulleys are not exacltly made to what you think they are, then all the maths you use will never get it right. The trial and error method gives real world results.

I know it sounds like a lot of work and fussing to do, but just remember you will only have to do it once. Then write down and record the appropiate figures if you ever need to set up mach2 again.

Caution. Because you are using a 27:1 reduction, you may find that you need to use the step multiplier switches on your Rutex cards. If you do switch them then you will have to reset your steps per unit in mach2. Do not just flick those switches and then send you axis travelling. It will result in the axis over traveling and crashing.

EDIT: Because I know you are using the same sized encoders that I use and that I only use a 3:1 reduction and it works ok, I would suggest that you use the step multipliers so that they multiply 4times. Any resolution greater than this would be serious overkill for what you are trying to do, and may result in the axis been driven too slow as a result of Mach2 not been able to keep up. Just a thought.

EDIT: The way to know deside on the amout of step multiplying, is to descide on the acceptable resoltion you require. For cutting timber as you are planing to do, I would think that 10 steps per mm should be more than adequate. That will mean you can cut down to 1/10 of a mm. It is highly possible that your machine does not have those sorts of tollerances built into is anyway, so picking a even higher resolution is just a waste. With this in mind, you work out what step multiplying you need in oreder to give you a figure that will drive that axis at a close number to 10 steps per mm.

I hope all this makes sence?

Last edited by ynneb; 01-31-2005 at 05:15 PM.
Reply With Quote

 

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