Hello Guest it is March 28, 2024, 12:18:06 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 - ger21

Pages: « 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 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 »
2281
General Mach Discussion / Re: Auto tool Zero - macro questions
« on: November 07, 2014, 11:00:38 PM »
First, it's really not a good idea to run both inch and mm g-code in Mach3, and expect the auto zero to work in both scenarios.

If you must do this, you're better off to have two separate machine profiles (xml's), one for inches and one for mm's.

My macro is designed to work in both inch and metric modes, because I sell it to people all over the world, and it needs to be reliable for all. But I can tell you that if your machine is set up in inches, and your running metric g-code, problems will occur.

In your macro, you have the plate thickness coded in. You then attempt to change the thickness, based on the current units.
However, your probing moves, and feedrates, are all in inches. To do what your attempting, you'd need to duplicate the entire macro, in both inches and mm's.

Because you are writing the macro for YOU, make it reliable for YOU.
If your Native Units in Mach3 are inches, then force the macro to auto zero in inches.

Check for inches or mm's, and save the value.
Something like:
unitflag = getoemled(801)

Code "G20"      ' Set to inches

' Insert macro here

if unitflag = 0 then      'return to metric mode
Code "G21"
end if

This eliminates the need to swap units in your macro.

As for your workflow...

The "Remember" button tells Mach3 to remember your current position, so that you can return to it with the "Return" button later.
Did you intend mean to type "Return" in Step 11? If not, then steps 6 and 11 are doing nothing.

Otherwise, I think it looks OK. But I've never worked like that so I can't be sure. My M6 macro automatically handles steps 7-11. I only need to change the tool.


It sounds like you Z axis is losing position, which has nothing to do with your auto zero macro.

What stepper drives are you using, and what motors and voltage?
What are your velocity and acceleration in motor tuning for the Z axis?
What pitch is the Z axis screw?

Without knowing any of the above information, the first thing I would try is reducing the Z acceleration by 50%.


2282
General Mach Discussion / Re: Auto tool Zero - macro questions
« on: November 07, 2014, 02:39:15 PM »
Try this:

Code "(Z axis is now zeroed"       & Plate & ")"  'puts this message in the status b

2283
This thread has a lot of information that you may find useful.
http://www.cnczone.com/forums/cnc-wood-router-project-log/36099-another-aussie-auto-tool-zero-setter.html

Also look through the Mach3 programmer's reference manual.

2284
Something like this is what I use:


CurrentFeed = GetOemDRO(818)  ' Get the current feedrate to return to later
CurrentAbsInc = GetOemLED(48)   ' Get the current G90/G91 state


'//////// the block below will set all your reusable vars depending on Inch or mm.
'//////// this sets the vars so you only need ONE large block of probing code.

If GetOEMLED(801) Then  ' On = English Measure INCH

FirstProbeDist = 6.0 ' Probe down 6 inches
FirstRetractDist = 0.05 ' Then retract .05 inch
SecProbeDist = 0.25 ' Then probe down .25 inches
FirstProbeFeed = 10.0 ' First probe feed @ 10 ipm
SecondProbeFeed = 1.0 ' Second probe feed @ 1 ipm
ClearAllow = 0.125 ' Max Allowable Clearance = Z Machine Zero - .125in

Else ' Off = Metric Measure MM

FirstProbeDist = 150.0 ' Probe down 150mm
FirstRetractDist = 1.0 ' Then retract 1mm
SecProbeDist = 6.0 ' Then probe down 6mm
FirstProbeFeed = 250.0 ' First probe feed @ 250 mm/min
SecondProbeFeed = 25.0 ' Second probe feed @ 25 mm/min
ClearAllow = 2.0 ' Max Allowable Clearance = Z Machine Zero - 2mm

End If

'//////// Error Condition checking code

If GetOemLED(16)<>0 Then ' Check for Machine Coordinates
Code "(Please change to working coordinates)"
Exit Sub ' Exit if in Machine Coordinates
End If

If GetOemLED(825)<>0 Then
Code "(Z-Plate Grounded Check connection and try again)"
Exit Sub ' Exit if probe is tripped
End If


2285
To be honest, I would recommend using the default screenset until you're comfortable working with Mach3. Trying to learn mach3 with a custom screenset can be more difficult, as controls may be not where you'd expect them.

There are no screensets at kd-dietz.com. He has a screenset designer for creating your own screensets.

No, a screenset should not change your Mach3 install. However, my 2010 Screenset will replace your default M6 macros, as those are what handles the auto zero during toolchanges in my screenset.

Most screensets are just different graphics and layouts, and have no effect on Mach3 operation. Choosing one is a matter of personal choice. A few, like mine, have added functionality (auto zero).

What you've changed is your Profile, which is an .xml file that stores your settings. While the .xml file contains the current screenset associated with that profile, the screenset is changed from within Mach3, using the View menu, and Load Screenset option.

2286
Quote
Is there a way that the auto zero script can determine the current mode (inch or mm)
and use an IF statement to adjust the zero script to match?

Yes, A good reliable auto zero macro will check for inch/metric (and many other program states) and use the appropriate values. When the macro is finished, it should return Mach3 to the state it was in when the macro started.
If you don't do this, sooner or later you will run into problems.

Shameless plug - my 2010 screenset includes macros that work with both inch and mm's, and automatically zero's the tools after tool changes. All you need to do is change the tool, and click cycle start. It uses a separate fixed plate mounted to your machine for a reference position.

2287
Yes, as you've seen.

When you start Mach3, it's in Metric mode.
As soon as you load g-code, Mach3 is in inch mode. All the values in your auto zero macro are in metric, so it no longer works correctly.


If you're going to be working in inches, then you should have Mach3 configured in inches.

2288
What are your Native Units set to?

Your auto zero script is set up to work in metric, but your G-code puts Mach3 in Inch mode.

2289
Post the auto zero macro that you're using.

2290
Tangent Corner / Re: Mach users in your area
« on: November 06, 2014, 11:19:22 AM »
I'm about 2 hours and another country away from you.
I'm not really aware of any Mach3 users groups that have local meetings, but that doesn't mean they don't exist.

Pages: « 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 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 »