Hello Guest it is April 23, 2024, 11:45:36 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 »
3611
General Mach Discussion / Re: Mach3 MDI line issue
« on: September 26, 2018, 10:15:17 AM »
Hi,
sounds like your in incremental mode.

Confirm that you are in absolute distance mode and IJ Incremental mode.

Next read up on G90 and G91 modes. MDI a G90 to be sure.

Craig

3612
HiCON Motion Controller / Re: Liener scale Feedback
« on: September 26, 2018, 03:51:01 AM »
Hi,
I do not have a Hicon so what follows is my best guess, there would need to be several confirmations of various features
before this could be considered practical.

In the diagram attached note that the Hicon unit (which includes the add-on boards) receives Step/Direction input from Mach and compares
that to the Linear Encoder feedback. The Hicon would be required to process that via its PID processor and output an analogue voltage
to your servo/drive. The servo/Drive would have to be in Velocity mode. The rotary encoder of the servo would still be hooked up to the drive
per normal, its just that it is not used as a positional measure but rather velocity measurement. The output shaft is connected to the axis and finally
the linear encoder is connected to the axis and measures the table position.

This arrangement is shown with the Hicon but could equally describe a Galill controller..

Lets take a few components and look at the requirements to make it work.

The first is the Linear Encoder. It will be hooked to the Hicon so it will require an output that the Hicon can decode, namely A and B quadrature
channels and probably an Index signal. This could be a problem, I have seen linear scales with quadrature output but don't recall seeing one with an Index
signal and yet I suspect that the Hicon requires it. This would best be discussed with Vital Systems.

The second issue, still related to the Linear Encoder is the quality of the encoder itself. Have a look at Hidenhan and Reinshaw websites to see what they
offer, and make sure you are sitting comfortably when you read the price. What sort of corners have to be cut by Chinese (and others) manufacturers
to sell linear scales at the prices they do?

I'm of the opinion that to get decent linear scales, not Heidenhan or Reinshaw, just decent ones is likely to be quite expensive, I'm guessing $200 per axis.

The Hicon itself is not cheap, the basic board is $600 and the addon board and activation cost another $600.

I assume you already have analogue input servos and drives?

What is not certain is that the Hicon can do the PID part without additional on-board programming. The Hicon does offer that low level programming
but could require some very clever programming on your part. There again I would rely on Vital Systems advice as to what is possible 'out of the
box' and what extra may be required to get this setup to work.

Note that this general arrangement is not uncommon, it is uncommon in CNC lathes and mills, but is used in semiconductor wafer processing.
Semiconductor machines require extreme precision. The absolute best (Heidenhan or Reinshaw) linear scales are probably only just good enough.
Some use LVDT (Linear Voltage Differential Transformer) transducers and all the high precision (and tricky) stuff use laser interferometry. Zeeman splitting/stabilization
will get you to about 10nm and iodine cells are required to get you to a few nm.

I make the point that in those situations where linear position feedback is employed the feedback components (scales/LVDTs/interferometers) are very
VERY expensive. While you may not require the sort of precision these technologies seek to achieve I think you can rely of the fact that you will spend
significant money trying to do linear feedback. I suspect rather more than it would cost to fit C5 or better ballscrews.

Craig


3613
Hi,
I suspect the RnR USB card does not support that feature.

The only people who would know are those who make it but good luck trying to find and contact them.

Craig

3614
HiCON Motion Controller / Re: Liener scale Feedback
« on: September 25, 2018, 02:51:01 PM »
Hi,
yes it is possible and it is done for exactly the reasons you have mentioned. It does complicate the issue in a big way.
The Hicon when the feedback part is enabled will probably do it.

Galill controllers are known for their applicability to these situations, they are expensive.

I use C5 grade ground ballscrews which are accurate to less than 18um over 300mm and a cyclic accuracy of less than 8um.
As a consequence if I know the rotational position (encoder) of the screw I have a fairly accurate notion of where the table is. Most industrial
CNC machinery operates that way with C5 or C3 ballscrews.

Craig


3615
HiCON Motion Controller / Re: Liener scale Feedback
« on: September 25, 2018, 08:06:37 AM »
Hi,
why? Are the servos not equipped with encoders?

Craig

3616
Hi,
I use a VistaCNC P1A USB pendant. I seem to recall having a bit of of a battle to get it installed and working correctly buts
its been fine ever since.

Craig

3617
Hi,
I use Autoleveller AE. I had a problem initially that sometimes there would be recorded more data points in the probe log file than
there were G31 calls. I tried all sorts of ways to find out why without success. In the end I wrote a Lua script that could deduce the correct
number of probe points and correct, if necessary, the probe log file.

The full discussion of it is on the Autoleveller forum.

May I suggest that you double check that Mach has not inadvertently put more data points in the file than you expected.

Craig

3618
General Mach Discussion / Re: CS Labs CSMIO/P-A
« on: September 23, 2018, 04:06:43 AM »
Hi,
if you set Machs velocity and/or acceleration higher than the servo/drive then when Mach issues a max velocity positional move,
ie a G0 then the servo cant keep up and will fault out 'following error'.

At all times the servo/drive must be at least as capable as Mach expects. In fact the higher the acceleration of the servo/drive
the better it can follow the commanded input.

It is for this reason that I advocate the servo/dive be programmed for its maximum practical velocity and acceleration.

Note that as the forward gain (velocity/acceleration) is increased if there is a fixed phase lag in the drive chain, the encoder for instance,
then the phase margin reduces and may become unstable. Hood has already described that situation. Even if the velocity/acceleration
commanded by Mach is less than the servo/drive and that the servo/drive loop has an instability (low or vanishing phase margin) the
instability will be excited. It is not because Mach has commanded an impossible move but rather the servo/drive has an instability.
It is for this reason that much is made of self tuning notch filters...they can restore phase margin without undue reduction in forward gain.

By reducing the maximum velocity (or acceleration) of the servo you are in effect throwing away forward gain......ie you bought a servo that has 'sports car'
performance but you throttle it back so it performs like a 'Morris 1000'.

Craig

3619
Hi,
now open the script editor and put this code in it:

Code: [Select]
[mc.ISIG_INPUT3]=function(state)
if state==1 then
toolindex=1
else
toolindex=0
end
end

Save it as 'siglib' or some other unique name.

Note that I have declared a variable 'toolindex', and I have not put 'local' in front of it. It is therefore a global variable and as it is declared,
or least will be when its finished and put in its permanent location, in the screen load script and is therefore visible throughout the GUI.
We may have to get a bit creative if we wish to pass it to a macro because a macro is not technically in the GUI. Anyway that's for the future.

You might ask why I chose input #3? If you look in the screen load script and the signal library table in particular you will see that Mach is already
using, or at least has table entries for inputs #1 and #2. I didn't want to confuse you, or me come to that so I left those out.

If you look on the machine diagnostic page, if the lathe screen set even has such a page you will see that there are LEDs for the first six inputs.
It is convenient to use those to start with because if you reach over and flick the index switch by hand you should see the LED on the diagnostic screen
light up. At a later date you might chose to reassign the switch to input #19 say, of course you wont have an onscreen LED to tell you whether Mach
has seen the switch or not, but by then you have already experimented with it enough to know it works.

If you can tell me how the tool position encoder works we can make a start on that code as well.

Craig

3620
Hi,
having probably confused you....you can now start to use what you have learnt.

You have at least one input, the index switch. You have at least one other, tool position encoder, can you tell us about how that works.

For the one input that we are sure of, we can make an entry in the signal library table for it.

When writing Lua code you will often find that you will write some parts in the form of macros which will end up in the macro folder
but there will be code fragments that end up in the screen load script and other places, this little addition to the signal library table is an example.
Its a good idea to set aside a temporary folder where you can write and maybe test these little fragments of code. Once you are happy with them
THEN you put them in their final location.

May I suggest that you open the main Mach4 folder and make a new folder within your current profile called 'tempfolder' or similar.

Now open the Script Editor under the Operator tab and you will have an untitled script page that you can save in the tempfolder you have created.
This tempfolder will hold all the little bits of code that you will put together.

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 »