Hello Guest it is April 24, 2024, 03:06:27 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 - 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 »
6411
Mach4 General Discussion / Re: Strange occurence in Mach 4
« on: October 06, 2017, 10:05:12 PM »
Hi,
the servos and drivers you've got will work an absolute treat once you get them 100% sorted. Many a hobbyist CNCer would give their eye teeth for
that set up, me included.

To understand PID settings and stability in depth requires University level mathematics and many an Electrical Engineer will regale you with stories of
trying to understand pages of seeming incomprehensible mathematics for the purposes of passing exams.

In absence of that detailed understanding you have to rely on heuristic methods.

The essential feature of any servo loop is that the servos actual position is compared with its ideal programmed position. This is called the error term.
If for instance your servo is at 100.5 degrees when the programmed position is 102 degrees then the error will be -1.5 degrees, minus because its lagging
behind. The amplifier in the drive will increase its output voltage a little bit to encourage the servo to catch up. How much it increases its voltage
for a given amount of error is where PID comes in. The higher the gain of the amplifier will cause the voltage to increase markedly, the servo accelerate
and catch up. This is called the Proportional gain. In general you wish the proportional gain to be high so that the servo quickly responds to an error
and so minimise the error.

Imagine this servo is on the Z axis and the weight of the spindle causes the servo to want to drift clockwise as the Z axis slumps under gravity. The servo
drive would recognise this as an error and produce a voltage that causes the servo to drive counter clockwise. Ideally they would cancel out, but they don't,
not quite. Just to hold the axis against gravity requires a little voltage to try to spin counter clockwise even though it doesn't spin at all, its balanced.
This will mean there will be a small amount of error, say 1 degree. This is an example, contrived to be sure, but still an example of following error.
The solution to this error is to have an integrator in the error loop as well as the proportional term. The integrator will cause the amplifier to up its output
just enuf to cancel the following error. The aim here is to have enuf Integral gain to quickly and reliably reduce the following error to zero.
The downside is that excess integral term can cause oscillations.

The solution to the instability often introduced by the integral term is Differential. It is analogous to frictional damping, sometimes called viscous damping.
The aim is to add enuf differential term to cause the loop to be stable without adding so much as it becomes lethargic.

Your servo setup is very close to correct. A very small reduction in integral gain will reduce its tendency to oscillate quite a bit when the reduction
of performance in reducing following error will be hardly noticeable. You could increase the differential term to increase the damping but you'd probably
have to up it quite a bit to get the same result. If all else fails you may have to reduce the proportional gain, really the whole business with integral and
differential terms is just a means of increasing the proportional gain AND keep it stable. If you push the proportional gain too high then you have to do
pretty radical things to keep it stable and if circumstances or the load changes it could go back to oscillating.

Craig

6412
Mach4 Toolbox / Re: #var (Pound Var) parameters list docs..
« on: October 06, 2017, 09:03:05 PM »
Hi,
how did you find #3101 and #3102?

Craig

6413
Mach4 General Discussion / Re: Strange occurence in Mach 4
« on: October 06, 2017, 07:51:06 PM »
Hi,
I think the solution is in your own hands, the servo you selected and bought is a brushed DC servo and is pretty old hat design wise. The drive is also
old, tried and trued technology. Don't get me wrong, these devices when setup correctly and assuming they have been adequately specified from the outset
will give many years of faithful service.

The current servo design technology is AC servo, they have a few different names but they all hark back to a concept first published in the engineering
literature of the 60's call 'field oriented control'. If you are interested in engineering history it worth a read. In the early days various analogue techniques
were used to achieve field oriented control. Good quality analogue tends to be expensive. As a consequence the technology was not very widespread prior
to the 90's. With the advent of powerful industrial microprocessors with sophisticated hardware periphials the floodgates opened and now field oriented control
is the norm.

Along with the microprocessors came EPROM and equally inventive modes of operation all available by program. As the programming became greater the
need for a PC interface and the rise of 'manufacturers software'.

Sorry to say it but that PC/ drive firmware/servo combination is commonplace with the current generation products whereas yours date back to the prior
level of technology where that sort of integration didn't exist.

Craig

6414
Mach4 General Discussion / Re: How to use offset in mach4
« on: October 06, 2017, 07:10:53 PM »
Hi.
Roger put together this document, superb discussion on the 'philosophical' aspects of co-ordinate systems...well worth reading...
http://www.machsupport.com/forum/index.php/topic,33595.0.html

Craig

6415
Hi,
some of the advantages I mentioned of using an external controller like an ESS is that it has three 'ports' worth of IO.
Its normal to have pins 2-9 of port 1 as outputs for your motor drivers. You can however have pins 2-9 in ports 2 &3 as inputs instead
of the more usual outputs. Thus an ESS set up this way has:

Outputs 2-9,1,14,16,17 port1
             1,14,16,17 port2
             1,14,16,17 port3
  total     20 outputs

Inputs    10-13,15 port1
              2-9,10-13,15 port2
              2-9,10-13,15 port3
  total     31 inputs

You can have quite a sophisticated machine with this number of inputs and outputs. The PoKeys E57 or U57 boast even more, some of which can be
used as analogue inputs reporting back to Mach via Modbus.

There is now quite a range of external motion controllers and the mature and seasoned manufacturers producing some very capable gear light years
ahead of the parallel port.

Craig

6416
Hi,
it has been sometime but I bought a cheap Chinese PCI to parallel card, probably four years ago. I had done a little research and this
card has the Moschip IC so I got it. Took a bit of shagging around downloading various drivers from the Moschip website be fore I found
one which worked but used it thereafter without problems for three years.

Upgraded to Mach4 and went to an ESS by Warp9. The card is now lying in a draw somewhere.

Craig

6417
Mach4 General Discussion / Re: Strange occurence in Mach 4
« on: October 06, 2017, 05:00:51 PM »
Hi,
I don't know whats changed but something has. The norm when setting up PID is to go for the fastest response with least following error.
Those conditions also put you right on the verge of instability. Any small change will often see low level oscillatory motion. When you set up
you tuned for absolute maximum performance now you need to de-tune for reliability.

If you were modelling this with Matlab you would tune for desired performance and then do a Monte Carlo analysis. The Monte Carlo analysis
varies all the parameters in a usually small but statistically random manner while observing one or more performance indicators. Requires a lot
of computing power. What is does do is show up elements in your system which with minor variance either manufacturing tolerance or wear
will cause a large deviation in desired performance. You can make tuning allowances or redesign that component or whatever...

The upshot is that it could be the aging of a capacitor or resistor inside the drive nut in the feedback loop. It may also be about the mechanical load,
either the weight has increased, you know that added dial gauge or extra thick vice jaws etc or a change in frictional forces due to wear or lack of
lubrication.

A while ago I bought an Allen Bradley servo and drive off Ebay for use as a spindle motor. I ended up buying the Ultraware software that is used
to program the drive. Must say I didn't appreciate having to pay for it but I needed it and bit the bullet. The advantage of the software is that
the EXACT model of my servo was alredy in the memory, including phase resistance and inductance, magnetic losses at various currents, rotational
inertia and more. There is more info in the software than I can find in the specs sheet and certainly way more than I could reasonably be expected
to measure or estimate. All that info meant I just set up how I wanted the servo to behave, max speeds, torques etc and that's it! All the PID stuff
was already done! Amongst the facilities of the software is an oscilloscope. I've used it to track my actual servo response and its bloody good, I could
make it worse by fiddling with the PID settings but doubt I could make it better.

Have to commend the idea that if you buy a servo buy the matching drive from the same manufacturer with that manufacturers software will result
in optimum performance with the least frustration.

Craig

6418
Mach4 General Discussion / Re: How to use offset in mach4
« on: October 06, 2017, 03:44:34 PM »
Hi,
that's good, you are referencing your machine. Now jog to the corner of the part and use the 'Zero X', 'Zero Y' and 'Zero Z' buttons alongside the
DROs. That will set the work offset.

1)Reference your machine- the DROs display machine co-ords 0,0,0
2) Jog to the corner of your part 110,140,-75 say in machine co-ords
3) <zero x> <zero y> <zero z> now DROs display work co-ords 0,0,0

Note the machine still believes it as at 110,140,-75 in machine co-ords its just that you specified that location as convenient as 0,0,0 for your part.
If you look on the machine diagnostics tab you will see how Mach works out its current position. If you look on the offsets tab you will see that
Mach has stored those numbers as a set in G54 or G55 or G56....

Craig

6419
General Mach Discussion / Re: Mach 3 wont speak with Mill
« on: October 06, 2017, 02:51:42 PM »
Hi,
Machs parallel port uses a db25 plug, that is it has 25 pins. Would you pull the plug out and have a closer look...its not impossible its nine pin
but it means its not a Mach parallel port.

Craig

6420
Hi Mick,
hanermo is quite correct when it comes to acceleration and speed a well specified AC servo is the best answer. He says also that steppers are good,
not in the same performance league as servos but do the job at a lower cost.

For instance
http://www.ebay.com/itm/Leadhine-86HS85D-NEMA-34-Stepper-Motor-8-5-N-m-1-203-oz-in-Sold-by-Leadshine-/252964922672?hash=item3ae5e26530:g:2YwAAOSwDiBZLRmV
with this driver
http://www.ebay.com/itm/Leadshine-AM882-Digital-Stepper-Drive-DC-80V-8-2A-With-Protection-Function-/272579014364?epid=28004592968&hash=item3f76f9aedc:g:yFwAAOSwSlBYvNoZ
combined cost $170US verses
http://www.ebay.com/itm/400W-Delta-AC-Servo-Motor-Drive-Controller-Kit-220V-ECMA-C10604RS-ASD-A2-0421-M-/111589600603?hash=item19fb422d5b:g:Ug0AAOSwEzxYYdfq
Delta servos are not the cheapest on the market nor are they anything like the most expensive so around $600US. You could buy three steppers and drives
for the price of one servo and drive and still have enuf left over to go and get drunk in celebration.
The question is not really whether servos are better/worse than steppers, with attention to specification they both work well. The question is....is the price
premium for servos justified for your machine? Are you intending production runs for instance?. Will you wife kill you if you buy servos without telling her? LOL

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 »