Hello Guest it is April 27, 2024, 08:46:11 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 »
7441
General Mach Discussion / Re: G31 alternative
« on: August 21, 2016, 03:24:06 AM »
Hi All,
very interested it Rob's comment about the probe setup.

I have an issue with my machine which doesn't prevent me using it but is a
concern.

I use Vexta 5phase steppers and I would swear one or more of them are leaking
to earth. The frame of the machine is earthed via the spindle earth. At one
stage I had the spindle dismounted and lo and behold the frame of the machine
goes to about 130V!!! Yeah, that's correct 130V.

I fitted an earth wire back to the common point in the controller box and measured
30mA return current. I did an insulation test on each of the steppers with the drive
disconnected with a 500V tester, no problems. But the fault is definitely in the stepper/
drive arrangement because when you depower the drives the fault disappears and yet
no leakage from the steppers???

The Vexta drivers I use produce around 130V at the DC link so its related somehow.
Vexta is really good quality Japanese gear and having paid thru the nose for it don't
want them to be faulty but what other conclusion can I come to? Even worse is that
the steppers and low (3 arc min) backlash planetaries work like real troopers. They
maintain good torque right up to 2400rpm. At cutting speeds the thrust they and
the gearbox produce is formidable, 1500lbf, and these are 23 size. I refuse to throw
them away, they are just too damn good!

My best guess is the dreaded 'homopolar' current, which according to Kirchoffs laws shouldn't
be. Then again I don't think Kirchoff ever published anything about CNC! Two hundred years
or so before his time... but still.

When I made a probe circuit I certainly didn't want any mystery currents flowing back into the
BOB/controller so I made an opto-isolated probe. Additionally I put a bridge circuit in the open
collector lead so that the hook-up to the BOB is polarity insensitive. It raises the low output voltage
to about 1.5V but my BOB has no trouble with it. Really simple and fits battery and all into a little
plastic cup a bit bigger than an eggcup and worked flawlessly from the start.

Craig

7442
VB and the development of wizards / Re: confusion over DRO numbering
« on: August 21, 2016, 02:30:33 AM »
Hi All,
had some pretty good success. Have managed to write and run a simple
coilwinding script.

Still haven't had any luck trying to set or reset DROs 140 thru 146 or 170 thru 176
using setOEMDRO(n,0.0). Beginning to think that they can't be written to directly
a bit like some of the coord positions on the diagnostics page, you can highlight them
write in the cell and Enter but the coord reverts to whatever it was. To change a coord
you need to change the underlying data which are used to calculate the coord concerned.

The simple expedient is to preread the DRO and store its initial value and subtract within the
body of the script.

The second issue where DRO(173) would increment at each read despite DRO(143) from which it
is calculated not changing still perplexes me. Despite setting the velocity component in Ports/Pins to zero it
still behaves as if it has a velocity component.

The way around it was just to read DRO(143), the raw encoder count, and divide by the counts/unit
value.

The last thing I encountered was that I was using a while loop until the turns counter reached 500
and if for any reason I could not achieve the magic 500, broken wire, the house catches on fire or
whatever I could of course Estop but could not prevent the script from running at reset. In the event
I crashed Mach several times and had to reboot the controller, not ideal! I had to add an 'abort' function
in the loop.

I have a running script, 'yehay', it might not be elegant, efficient or robust but it works. I can get on with
the project and have learnt some new stuff on the way.

This hobby is one very big learning experience.... and it doesn't seem to stop! I am delighted to have learnt
at least a little VB, the flexibility and power that it brings to Mach can't be understated.

This leads me to my next question. I have written a script that takes a Gcode text file and processes a correction.
The script works very well as is and surprisingly fast at processing files of 500k.
I have used a textbox to input the path and filename but it is pretty tiresome and mistake prone. Is there a
'browse' function/object in VB that I might use?

Craig


7443
Hi,
I have used Vexta 5 phase steppers which require their own special drivers.

A number of highly respected CNCers on this forum recommend Geko drives.

I personally use 2 parallel ports and has proven to be more than adequate. I would
suggest you start that way and later if demand exists and budget allows migrate
to an eternal motion controller. Your familiarity with an existing machine will
lower the learning curve.

Craig

7444
VB and the development of wizards / Re: confusion over DRO numbering
« on: August 20, 2016, 08:03:49 AM »
Hi ger21,
will try them out tomorrow.

I imagined that encodersX-Z would affect the multifunction displays and so decided against
using them. For my purpose provided multifunction X actually reflects X position and at least
one other reflects the number of turns wound that would be fine.

I encountered another issue which baffled me. I was stepping thru my macro and found that
the turns counter would increment despite not having rotated at all, I'm turning it by hand
while testing. In the Ports/Pins page I nominated count/unit as 96 but left velocity at its default
of 100. It has occurred to me that it may be causing my counter to increment unexpectedly.
Again will have to wait until tomorrow to test.

I'm grateful that you have taken the time to reply, your assistance has helped me along the path
considerably.

Craig

7445
VB and the development of wizards / Re: confusion over DRO numbering
« on: August 20, 2016, 05:40:47 AM »
Hi All,
have been experimenting on the machine and have made progress but questions remain..

Following ger21's advice I'm using DRO's 143 and 173.

DRO 143 gives the actual pulse count whereas DRO 173 gives the value in units. I using
a recycled rotary encoder which has 24ppr for 96 counts per revolution. With Encoder4 enabled
in Ports & Pins I can see the pin state LED's operate on the Diagnostics page.
I can read both 143 and 173 and display them in DRO's 802 and 803. So far so good.

What I can't do is set either 143 or 173 to zero.

Have tried many variations of setOEMDRO(143.0) without success.
Am I correct in assuming that it is not possible to set or reset an encoder DRO?

Craig

7446
VB and the development of wizards / Re: confusion over DRO numbering
« on: August 19, 2016, 08:11:28 PM »
Hi All,
just as a matter of interest the coils I'm winding are for a LVDT that I'm making for use as a toolsetter/probe.

I use 0.2mm drills and 0.4mm endmills on circuit boards and they are VERY tender. Any force used to probe or
touch off breaks them. What I want is a device that I can place on top of the object, a blank circuit board typically,
to be milled and touch off to it with a force of 10grams or less. I use cuts as light as 50um on circuit boards and
need a repeatable accuracy of 5um or better.

I've made a handwound LVDT with a ferrite armature and a homebrew exicter oscillator/demodulator. I measured
its sensitivity yesterday at 84mV/mm with 2.5Vrms excitation for a specific sensitivity of 33mV/mm/V. This is still
at the low end of the published sensitivities by various commercial makers.

The new coil arrangement I have designed should up the sensitivity to 80mV/mm/V. The noise floor is about 0.3mV
so I'm hoping to achieve a repeatable accuracy of 1um with a linear range of 5mm.

My current design uses a passive demodulator with an estimated voltage loss of 14dB or a factor of 2.25. If I use
an active demodulator with 0dB loss and can hold the noise floor down the sensitivity could be a high as 179mV/mm/V
which is very respectable.

The best part is that so far its cost me about $50US for parts/materials that I couldn't make or recycle and those parts
are enuf to make 8 of them.

Craig

7447
VB and the development of wizards / Re: confusion over DRO numbering
« on: August 19, 2016, 06:51:42 PM »
Hi ger21,
it starts to make sense and given that I'm surprised it works as well.
Will experiment a bit more today and report back.

Craig

7448
VB and the development of wizards / Re: confusion over DRO numbering
« on: August 19, 2016, 11:31:35 AM »
Hi ger21,
thanks for your reply, the wiki is excellent, clear and concise.

I found 17203 in OEM List Alpha 6.1 XLS near the top of the General Forum page.
Its new description is 'Encoder position A'. I read it using getOEMDRO(17203).
It was to my knowledge at that time the only DRO which was monitoring Encoder1
which I had enabled.

Looks like I have some more experimenting to do!

Craig

7449
VB and the development of wizards / Re: confusion over DRO numbering
« on: August 19, 2016, 10:16:12 AM »
Hi,
I wish to read the spindle encoder and display it, that  I can achieve. The spindle motor is a current
limited DC motor acting as a torque motor where its speed will be regulated by me impeding the
wire. I want Mach3 to count the turns and shift the Xaxis to lay them down, up to 20 layers deep.

My hope is that provided I keep the spindle speed low enuf, say 1 rev/sec, that the Xaxis will maintain
step.

As it turns out I have written the code and tested it on my laptop but have yet to try it on the machine,
that is tomorrows adventure.

My confusion is more about the DRO numbering setup. I found that I could read the encoder at DRO(17203)
and yet to display it  using Machs existing DRO at 803. The XLS file in the general forum indicates 'old' and
'new' numbers. Can I use either?

I am also confused about the distinction between predefined and user definable numbers, how do I distinguish
the two?

Apologies if these questions seem absolutely basic. I have recently coded in C a field oriented servo controller
so I can program but with VB I'm back in the deep end until the confusion clears!

Craig

7450
VB and the development of wizards / confusion over DRO numbering
« on: August 19, 2016, 03:03:17 AM »
Hi All,
I have just started to write my own macros for a coil winding project.
I have some code written and it appears to work although have yet to try
it out on the machine.

My confusion over DRO/LED/Button numbering means that it has been a slow
process.

I have an encoder mounted on the winding spindle and have enabled 'encoder1'
on the ports and pins page. I have successfully read the encoder at DRO 17203.
This much at least I have tested on the machine.

I have found no definitive documentation which tells me what DRO's monitor encoders
1 thru 4 on the ports and pins page.
 
Additionally while I can read 17203 (by my understanding a 'new' number) I cannot load
the existing A axis DRO with the result except by using setOEMDRO(803), an 'old' number?

Is there a logical explanation for the seeming numerous numbering systems?

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 »