Hello Guest it is April 27, 2024, 05:41:22 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 »
7421
General Mach Discussion / Re: Long programs crashing
« on: September 06, 2016, 03:14:02 AM »
Hi Rachie,
I did a bit of searching on the net when I was trying to get this to work and I came across
an article, one of those research paper types from a crew in Germany. Don't have a link
but might be able to find it again.

They were trying to develop machine/methods to wind unusal shapes without a lot of tooling
and so on.

What they did was have the bobbin fixed to the table and the winding head describe an appropriate
path around the periphery under CNC control with the wire exiting a little "L" shaped tube.
Great idea for motor winding and so on. They used a 'you beaut' industrial robot with three arms
varying under computer control. Such machines are capable of high (100's m/sec) and looked good.

I experimented with my 3 axis mill but even screwing everything to the max it would do a turn every
ten seconds or so. It was going to be very slow and as the coils I'm winding are so simple it didn't make
sense. I was impressed by the idea tho... and if I were winding something weird I would certainly go
back and revisit the idea.

Craig

7422
General Mach Discussion / Re: What drive to use with this motor?
« on: September 05, 2016, 08:35:57 AM »
Hi BoronNitirde,
do you know what sort of position feedback it has ie encoder or resolver?

I bought a 'you beaut' servo off eBay thinking to use it for a spindle. When it
turned up it's in beautiful maybe even new condition despite being made in the
mid 90's.

I thought I was going to be able to run it with a sensorless vector  VFD. It does
work but not nearly as well as I hoped or as it is capable of. I started looking for a
drive for it and came unstuck. This servo is fitted with an 8 pole resolver so choices are
limited and those that would work are way out of my budget.

I realise now that AC servos are quite a bit more reliable than the drives and consequently
come up second hand cheap but not so the drives.

I elected to make my own. A brave (read stupid) decision. I haven't bailed on it yet and
I've learnt a lot along the way but....

Craig

7423
General Mach Discussion / Re: Long programs crashing
« on: September 05, 2016, 08:17:03 AM »
Hi Rachie,
I recently wrote a script to wind coils and am interested in how you went about it.

In my case I wanted to wind 500 turns of 0.2mm wire in 5mmwide layers (25 turns)
and 20 layers. It works but needs more work to get it right.
I used an encoder (an old rotary potentiometer with the detent ball taken out) on the spindle.
The spindle is a 24Vdc brushed motor run at about 15V thru a 16Ohm resistor. In runs in
torque mode where I feed the wire by hand to regulate the speed that the spindle rotates.
Provided I don't let it spin to fast the encoder counts OK. I have Mach3 reading the encoder
and do a calculation to shift backwards and forwards to lay the turns down.
I enabled encoder4 in the config ports&pins. The raw count is OEMDRO(143) and I believe
the units count is OEMDRO(173). While I can read them (getOEMDRO(n)) I couldn't reset
either of them (setOEMDRO(n,0.0)). Don't really understand why.
I have since discovered another DRO that holds the corrected units value (OEMDRO(100)) and
this one I can reset. Additionally resetting DRO(100) 'forces' DRO(143) to reset also.

That's about the extent of what I've learnt about Mach3 encoder DRO's at present. Seems I have
more questions than answers at the moment.

I don't know for sure but I think DRO(143), the raw count, is stored as a long integer, ie 32bit
which means it can count up to billions. With my encoder at 96 count/rev it could count millions
of turns before it overflows.

My guess is if you are doing a similar thing that the error is not overflow but as Tweakie has suggested
noise on your Estop circuit.

Would luv to hear what your doing and how you're doing it.

Craig

7424
Mach4 General Discussion / Re: M4 Licence Clarification
« on: September 05, 2016, 03:11:38 AM »
Hi Tweakie,
the syntax examples I've seen of Lua look very much like C/C++ data structures.
If that is the case then there is a learning curve but the versatility and robustness
of the result will be worth the effort.

Aside from anything else every sale of M4 allows the software guys to advance the product
and my estimate from the demo is that where M3 is great M4 is going to be #$#@ing amazing!

Craig

7425
Mach4 General Discussion / Re: M4 Licence Clarification
« on: September 05, 2016, 02:51:56 AM »
Hi All,
just bought a licence for M4 and just to dip my toe in the water Darwin...

Craig

7426
Mach4 General Discussion / Re: M4 Licence Clarification
« on: September 04, 2016, 02:23:12 PM »
Hi guys,
Kool!

Craig

7427
Mach4 General Discussion / M4 Licence Clarification
« on: September 04, 2016, 05:16:36 AM »
Hi All,
can someone clarify the M4Hobby licence situation.

From the Artsoft site I read and understand that a licence is issued to a uniquely
indentified machine.

One of the posts in this forum suggested that a max of five licences can be active.

What I really need to know is whether it is permissible to have two active copies,
one on my machine controller and another on my laptop for test/development
purposes but not actually running a machine?

Craig

7428
Hi neilrlw,
I'm very new at this so it may not help....

This is part of a script I wrote to introduce a correction into a Gcode file.
Note I used a fixed path to a file in myDocuments. Then used a dialog box
to get the name of the specific Gcode file, opened it as input and created
a new file with 'CORRECTED' inserted in the original name as output.


pathname="C:\Users\craig\Documents\eagle\lvdt2\"
 Begin Dialog filenameinput 16,30,180,96,"filename input"
 OKButton 132,20,40,14
 Text 8,8,32,8,""
 TextBox 8,20,100,12,.inputname
 End Dialog
 Dim Dlg1 As filenameinput
 Dialog  Dlg1
origname=pathname & Dlg1.inputname
modname=pathname & "CORRECTED" & Dlg1.inputname

It might be a dirty trick but you could do similar

pathname="C:\.........(to your file directory of interest)"

Use a textbox to get the name of the specific file you want...
The complete filename would be...

origname=pathname&Dlg1.inputname              'inputname="circle.tap" for instance

and the modified filename could be....

modname=pathname & "MODIFIED" &Dlg1.inputname

Now open the original as input and the modified as output and copy line by line
until the end of the file...

Open origname For Input As #1
Open modname For Output As #2
While Not EOF(1)
Line Input #1, currline
Print #2,currline
Wend

As I say it is a cheap and dirty trick but it worked. There was of course a bit more code
within the body of the loop to effect the correction I needed to make but still it worked.

Craig

7429
Hi Samrai,
agreed it is for debug use. The corrected DRO, that is to say the DRO in units is 173.
Unfortunately I couldn't set that either. Worse when I read it getOEMDRO(173) it returns
the value in units OK but reading it again some time later it has incremented as if it
had a velocity component despite setting the velocity correction coefficient to zero.

Causing me some frustration! Confusion and frustration seem to be part and parcel
of learning something new. If I let frustration cause me to say 'to hell with it!' and
chuck it in then I certainly won't learn anything new.

I have a workaround that works and allows me to do the job I set out to do so I
can afford to be a bit patient about the 'understanding' and ask questions and confer
with others like yourself.

Craig

7430
VB and the development of wizards / VB vs VBscript
« on: August 27, 2016, 05:26:43 PM »
Hi All,
I have successfully learnt to write some simple scripts using M3's built in script
editor. If I understand correctly such scripts are written using Cypress Enable.

Is it possible to run a VB program from within M3?

For example call an M code, say M100, and have M100 launch a Windows Form Application
which might include file dialogs and similar. If it is possible can the same M100 generate
Gcode by code " <content derived from VB app>"?

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 »