Hello Guest it is April 25, 2024, 11:10:27 AM

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 - joeaverage

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 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 »
1871
Mach4 General Discussion / Re: Mach4 positioning error
« on: December 14, 2019, 04:45:04 PM »
Hi,

Quote
well i haven't got in to that much detail yet, most probably they left it like that to give the user space for starting up and tuning the motor/drive without causing any error.

This NO mere detail, it absolutely fundamental to the operation of any servo or closed loop device. With the
factory default settings you will get very poor results. The following error window is just a joke.

You may recall back in post #3 that I explained that the manufacturers deliberately set both parameters very wide
so that first time users can operate the servo without nuisance alarms but they were never intended to be in use
in a real CNC machine.

Do the calculations....don't just guess.

If parameter 11 (zero error window) is set to 4 counts:

4/10,000 x 25=0.01mm or 10um. This is the effective resolution of your X axis as a result of setting the zero error window to 4,
but your current setting (default) is 20 and therefore your effective resolution is 40um....way less impressive don't you think!

Likewise if you set the following error window to 20 counts then Mach will alarm and Estop if the mill lags the commanded toolpath
by 40um whereas the current (default) setting is 20,000 or 50mm. Would you expect an alarm or Estop before your machine
deviated from the toolpath by 50mm?

Craig

1872
Mach4 General Discussion / Re: Mach4 positioning error
« on: December 14, 2019, 01:18:55 PM »
Hi,
sorry misread the default setting for the following error window, factory default is 20,000 counts or two revolutions.

With a direct coupled 25mm pitch ballscrew that would mean that the X axis could be 50mm out of sync with the commanded
position WITHOUT an alarm!!!!

The factory default is for new users, serious users will shrink that WAY down, I have mine set to 20 counts.

Craig

1873
Mach4 General Discussion / Re: Mach4 positioning error
« on: December 14, 2019, 01:13:58 PM »
Hi,
parameter 11 is the 'zero error window' and parameter 12 is the 'following error window'

Different manufacturers use different names but they mean the same thing.

In this case parameter 11, the zero error window, is set to 20 counts as default. Thus if the actual (encoder)
position gets to within 20 counts of the commanded position the drive ceases to try to get any closer. Is this what
you want?. I think its too high, I set mine (8000 cpr) to 4 counts.

The reason for having a zero error window is to that the drive does not 'hunt'. If the drive attempts to reduce the error
to zero counts then it will overshoot by one count, and then reverse until it overshoots by one count in the other
direction, and keep repeating, called 'hunting' or 'dithering'.

Why don't you try setting parameter 11 to zero, and see what happens?

Parameter 12 is the following error window and its way WAY WAY too wide. Its factory default is 30000 counts,
that's three revolutions!!!. It should be something like 20 counts.

If the servos actual position lags the commanded position by a significant amount, called following error, it's supposed to alarm.
As it stands the servo can be miles and miles out of sync without an alarm, good for while you are experimenting with your
drive but absolutely bloody hopeless for CNC.

If you program parameter 12 to a very small value (<10) then the servo will fault frequently because the servo cannot
'stay within the following error window' and yet if the following error window is set too wide then the servo could lag
the commanded position by a large amount and cause bad inaccuracies in your work.

Craig

1874
Mach4 General Discussion / Re: Mach4 positioning error
« on: December 14, 2019, 06:20:24 AM »
Hi,
have you read the zero error window setting? With a 10000cpr encoder I would set it to 4.

Craig

1875
Mach4 Toolbox / Re: Writing the script for a canned cycle
« on: December 13, 2019, 02:14:15 PM »
Hi,
you could write the Gcode manually with the help of a spreadsheet but you don't need to.

Look at the Turning feature of the Lathe Cycles tab. click the ID turn button. Then you can set initial points, endpoints,
depth of cut, roughing cuts, spring passes and finish cuts. The cycle wizard will compose the Gcode.

Craig

1876
Mach4 General Discussion / Re: Mach4 positioning error
« on: December 12, 2019, 06:55:49 PM »
Hi,
what Russ is proposing is that open collector outputs from your BoB will result in 'missed' pulses by the drive, given that the drive is optimized
for differential inputs.

This would be detected by the same test as I proposed earlier.

If you command a move of 10mm and x number of steps were missed by virtue of open collector signaling, then surely a command of 20mm would
miss twice as many steps.

What I'm trying to establish is the error proportional to the distance moved or the number of moves.

Pactual=a x Pcommanded + d

In an ideal world a would equal one and d would be zero. What we are trying to do is find the actual and existing inaccuracies described by the two
parameters a and d.

If Russ's proposal is correct then a will be close to but not exactly equal to one. If my contention is correct, ie zero window error, or I suppose some
type of backlash compensation error, then d will be non zero.

Craig

1877
Mach4 General Discussion / Re: Mach4 positioning error
« on: December 12, 2019, 03:16:14 PM »
Hi,

Quote
Dont get angry with me,

I didn't but you have not fully investigated either suggestion.

I understand that you are certain of the pitch and I would too under the same circumstances but then you are on the forum asking. That suggests
that you have tried all the things you can think of and still have no answer. Can you rule out a pitch error ABSOLUTELY?

If a servo has a zero error window set too high, say 100 encoder counts, it will approach its commanded position until it gets to within 100 counts and stop.
That is the meaning of the zero error window. If you MDI successive 1mm movement commands its possible that a wide zero error window, having a linear
equivalent of 4-5um, would occur at each movement with the inaccuracy accumulating at each move. If however you commanded one movement of 5mm
then with the same zero error window I would expect the same basic 5um inaccuracy in 5mm verses 25um inaccuracy had you commanded five successive
movements.

Quote
Is my logic wrong?

I can't fault your logic but the problem persists......

Your suggestion about noise is not impossible, just improbable. Is it likely that noise, by definition random electrical noise, would cause such a consistent
inaccuracy?. I doubt it, but neither do I have a simple test to prove or disprove that.

What I am suggesting is that you use such tests as you can devise to prove/disprove certain things. As items are eliminated off the list those remaining potential
causes must contain the answer.

Craig

1878
Mach4 General Discussion / Re: Mach4 positioning error
« on: December 12, 2019, 02:31:38 PM »
Hi,

Quote
I am sure about the pitches, these are metric and i ordered them directly from the manufacturer not from the distributor, so we can rule that out

Can you rule that out....have you actually measured it? It does seem unlikely given the source of supply but you are relying on someone elses say-so.

Quote
I think this also rules out the zero error window, any other suggestions?

How does this rule out the zero error window?. I would expect a fairly consistent error if indeed it is something like a zero error window fault.
I have no other suggestions, you have dismissed the two I have without investigation, would other suggestions meet a better fate?

Craig

1879
Mach4 General Discussion / Re: Mach4 positioning error
« on: December 12, 2019, 01:44:21 PM »
Hi,
another possible cause is the 'zero error window' being set to wide.

All servos, and to my knowledge, closed loop steppers have a programmable parameter called (by some manufacturers)
the 'zero error window'. What it means is that if the commanded position and the actual position, as measured by the encoder,
is within a (programmable) number of encoder pulses the drive will not try to close the error loop any closer.

It is common practice when the drive is shipped to set the zero error window and the following error window very wide so that
first time users experimenting with their new servo/drive are not plagued with following errors. In CNC practice those windows
need to shrink dramatically to have any chance of accurately following a toolpath.

If the zero window error is set to 100 encoder counts, say,  that could explain why your move apparently never completes
and therefore be inaccurate.

Craig

1880
Mach4 General Discussion / Re: Mach4 positioning error
« on: December 12, 2019, 01:23:07 PM »
Hi,
this post should be on the Mach4 General Discussion Board, I imagine tweakie will shift it.

If the error is consistent and identical in all axes then the steps per unit are wrong.

I'm guessing that the pitch of the screws is 1 inch (25.4mm) not 25mm.

You may have seen posts where users believed they had 0.2 inch pitch screws (5.08mm) when in fact they
had very common metric screw of 5mm pitch. Depending on the supplier they may not know or care about a detail
like that, they have given enough information for a sale...and that's all they care about.

Can you use Mach and the current steps per unit value to have the stepper rotate exactly one revolution? If you can do so
measure the distance traveled......and that is the actual pitch which may be at variance to what you believe.

Craig

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 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 »