Hello Guest it is April 26, 2024, 02:28:56 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 »
3171
Mach4 General Discussion / Re: Un-Supported wxNumberEntryDialog
« on: January 26, 2019, 06:20:31 PM »
Hi Steve,
after my post I tried a Dialog and used ShowModal() and it worked. I am a little familiar with ShowModal() syntax as
I have seen it used and I have copied/pasted and edited to use it  myself.

I have used a statments like:

if (UI.<dialogName>:ShowModal()==wx.wxID_OK) then.....

which achieves the same result as:

rc=UI.<dialogName>:ShowModal()

and then testing rc.

Either way I have some more stuff to experiment with. Thanks again.

You are correct.....letting wxFB generate the Lua code and then looking closely at the code is very illuminating.

Does your missus get sick of you being right all the time.... ;D....or does she even think that????

Craig


3172
Mach4 General Discussion / Re: Motor Tuning in Mach 4, Very Stuck
« on: January 26, 2019, 06:05:23 PM »
Hi,
you've seen the calculation......2000 pulses per rev and 5mm per rev (pitch) means 2000/5 =400 pulse per mm.

Under the assumptions I have made that is correct. Put 400 in the 'Steps per Unit' setting.

Zero your X axis and MDI g0 x100. <MDI Cycle Start>. How far did it move, it should be 100mm....exactly.
If it has moved exactly 100 mm then leave that setting alone, you'll never touch it again in the life of the machine.
The max velocity and acceleration you can change at will but the steps per unit set the dimensional accuracy of the machine.
If you do a cutting move of g1 x100 f300 say and it only moves 95mm then your part is going to be undersize....rubbish.

As a start set the max velocity to 2500 (mm/min) and try acceleration of 250 (mm/sec2)

Craig

3174
Mach4 General Discussion / Re: mcCntlGcodeExecute best practice
« on: January 26, 2019, 05:47:39 PM »
Hi,
there is another API which is more suitable and recommended under most circumstances:

Code: [Select]
LUA Syntax:
rc = mc.mcCntlGcodeExecuteWait(
number mInst,
string commands)

Description:
Execute G code as a unit of work and wait until it is complete

Note also that it has a return code which can be tested for success.

Code: [Select]
Returns: Return Code Description
MERROR_NOERROR No Error.
MERROR_INVALID_INSTANCE The mInst parameter was out of range.
MERROR_NOT_NOW The operation could not be completed at this time.
MERROR_NOT_COMPILED The macro scripts could not be compiled.

Craig

3175
Mach4 General Discussion / Re: Motor Tuning in Mach 4, Very Stuck
« on: January 26, 2019, 05:28:27 PM »
Hi,
my apologies, in your original post you specified that you have an ESS, so disregard the question about the controller.
The ESS will handle anything you care to throw at it at a canter.

Craig

3176
Mach4 General Discussion / Re: Motor Tuning in Mach 4, Very Stuck
« on: January 26, 2019, 05:20:03 PM »
Hi Dale,
are you Aussie? Is it warm enough yet!

Ok, the stepper driver has a setting which would make your desired 'Steps per Unit' 1000.
If you set your stepper driver to 5000 pulse rev revolution combined with directly driven 5mm pitch screws
results in 1000 Steps per Unit.

Its another way of saying that every pluse issued by Mach/BoB/Controller will advance the axis 1 um. That's pretty impressive.

You have not said what sort of controller you are using?.

If you wish to spin your motors at 500 rpm and your driver is set to 5000 pulses per rev then
Pulses per minute= 500 X 5000
                          =2,500,000
or Pulses per sec  =41666 or near as dammit 42kHz.

As you can see my question about your controller is not idle. Machs parallel port is natively 25kHz. It would not be
fast enough to signal your driver with that high resolution. You can increase the kernel speed in Mach3 parallel port,
if I recall there is a setting for 45kHz. The downside is that the faster you try to make a parallel port go the likelihood
of glitches /stalls and stutter goes up markedly.

For this reason I would not recommend such high resolution if you are attempting to use a parallel port, your original
setting of 2000 pulse per rev is better. That corresponds to a linear resolution of 2.5um per pulse, still very impressive.
Even 2.5um resolution is likely to be more accurate than your machine....or if your machine is that good/expensive
then what are you doing pissing around with Mach in the first place?

If you are using an Ethernet SmoothStepper say, by way of comparison, that has a max pulse frequency of 4Mhz.....
that is 160 TIMES faster than Machs parallel port (at 25kHz), thus you can set your resolution high, even higher than 5000
pulse per rev and still be within the capability of  the SmoothStepper.

Resolutions of finer than 1um (excepting wafer scale semiconductor manufacturing gear at millions of dollars each) is for those
people who like to jerk off and/or brag.....not what I would expect from an Aussie! ;D

Craig

3177
Mach4 General Discussion / Re: Motor Tuning in Mach 4, Very Stuck
« on: January 26, 2019, 04:47:07 PM »
Hi,

Quote
1000 counts per unit

You cant arbitrarily set the 'Steps per Unit' to whatever value you like.

If you have a manual car and are cruising in top gear if the engine is doing 3000 rmp and you are going 100km/hr
unless you change the gearing, or the diff or the size of the wheels you can't suddenly decide 'I want to go 120km/hr
at 3000 rpm'. The ratio is fixed by the mechanics of your car.

The analogy is that if you have set your stepper drivers to 2000 pulses per revolution and the pitch is 5mm per revolution
then the Steps per Unit IS 400.....no if...no buts. If you want to change it then change the number pulse per revolution
ie your stepper driver OR change the pitch of your ballscrews OR introduce some gearing between the motor and the
ballscrew.

Craig

3178
Mach4 General Discussion / Re: Motor Tuning in Mach 4, Very Stuck
« on: January 26, 2019, 04:37:23 PM »
Hi,
who knows.....you have given us no information.

First...tell us about the stepper drivers or better yet post the manual
Are the steppers direct coupled to the ballscrews or through some sort of gear/belt reduction?
You said you are using 1605 ballscrews....can you confirm and in particular that they are 5mm pitch?

I will make some assumptions based on what you have said, I know 'assumption is the mother of all 'f......ups'
but here goes.

If your ballscrew is direct coupled and it is 5mm pitch AND you have set the drivers to 2000 steps per revolution THEN

Steps per Unit (mm)=2000 /5
                              =400

I would suggest you start with the velocity setting of 2500 (mm/min) and an acceleration of 250 mm/sec/sec.

When you say that the axis is traveling very slowly, how are you instructing it to move?
I would be prepared to guess that you are jogging it and the jog rate is set vey low.

Do yourself a favour and learn a little Gcode and use MDI instructions instead.

If for instance you code:
g0 x100 <MDI Cycle Start> the X axis should move at its fastest possible (2500 mm/min if you have followed my recommendation)
speed to X=100 mm.

If you code:
g1 x100 f500 <MDI Cycle Start> then the X axis should move to X=100 at 500 mm/min.

Thus by using MDI commands you have explicitly told Mach how fast to drive the axes....you are not reliant on jog speeds.

Craig

3179
G-Code, CAD, and CAM discussions / Re: G-Code bad character used
« on: January 26, 2019, 04:13:17 PM »
Hi,
with Eagle open Options/Directories and update the path to the pcg-gcode folder.

Craig

3180
G-Code, CAD, and CAM discussions / Re: G-Code bad character used
« on: January 26, 2019, 03:57:09 PM »
Hi,

http://eagle.autodesk.com/eagle/ulp?utf8=%E2%9C%93&q%5Btitle_or_author_or_description_cont%5D=pcb-gcode&button=

As I recall I downloaded and extracted to a folder in MyDownloads. I seem to recall it was necessary to inform Eagle of the path to
that folder.

To generate Gcode at the Eagle command line type 'run pcb-gcode'<enter>.
To enter the setup type 'run pcb-gcode-setup'<enter>.

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 »