Hello Guest it is April 26, 2024, 02:59:28 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 »
5791
Mach4 General Discussion / Re: Reference all home help.
« on: November 29, 2017, 03:57:01 AM »
Hi,
I suggest putting this in your profile/macro folder. Allows you to debug and work on it. Once you get it polished then we'll put it in the screen load script
and attach it to the button.

Craig

5792
Mach4 General Discussion / Re: Reference all home help.
« on: November 29, 2017, 03:53:39 AM »
Hi,
this code seems to work...haven't really tested it fully

Code: [Select]
function GoCenter();
local inst=mc.mcGetInstance();
local Xhand=mc.mcRegGetHandle(inst,'iRegs0/Xcenter');
local Xcenter=mc.mcRegGetValue(Xhand);
local Yhand=mc.mcRegGetHandle(inst,'iRegs0/Ycenter');
local Ycenter=mc.mcRegGetValue(Yhand);
local Zhand=mc.mcRegGetHandle(inst,'iRegs0/Zcenter');
local Zcenter=mc.mcRegGetValue(Zhand);
local homed=0;
local enabled=0;
if (mc.mcAxisIsEnabled(inst,mc.X_AXIS)==1) then enabled=enabled+1 end;
if (mc.mcAxisIsEnabled(inst,mc.Y_AXIS)==1) then enabled=enabled+1 end;
if (mc.mcAxisIsEnabled(inst,mc.Z_AXIS)==1) then enabled=enabled+1 end;
local Xhomed,rc=mc.mcAxisIsHomed(inst,mc.X_AXIS);
local Yhomed,rc=mc.mcAxisIsHomed(inst,mc.Y_AXIS);
local Zhomed,rc=mc.mcAxisIsHomed(inst,mc.Z_AXIS);
if Xhomed==1 then homed=homed+1 end;
if Yhomed==1 then homed=homed+1 end;
if Zhomed==1 then homed=homed+1 end;
if (homed+enabled)==6 then
    mc.mcCntlGcodeExecuteWait(inst,"g53 g0 z"..Zcenter.."\n g53 g0 x"..Xcenter.."y"..Ycenter)
end
end
if (mc.mcInEditor() == 1) then
    GoCenter()
end

Craig

5793
Mach4 General Discussion / Re: Acceleration Settings
« on: November 29, 2017, 03:11:47 AM »
Hi,
my PCBs are for various uses. The one which is difficult to make and very very expensive if I were to have it made for me is a heavy copper board,
the copper layer is 420um thick (0.42mm). That is 12 times thicker than normal. You can get them etched but double side boards with heavy vias
can cost $1000 per sq foot.

I have broken a lot of tools trying to make theses boards but am getting the hang of it now. When I go back and count the number of small endmills (16 thou
and 20 thou) I have not in fact broken hundreds, about 60 over three years.

They are carbide tools and the trick is to cut the barest minimum of fiberglass as it dulls tools big time. I use a software tool called Autoleveller to assist cutting
the barest minimum I have to.

Don't slow the tool down, spin it as fast as you can. If you are using inches the .001 (1 thou) chip load is too much.

My post recommends 1% of diameter....0.01 (%)x 0.02 (diameter)=0.0002    read that again...that is two tenths of a thou. What you are proposing (1 thou) is
five times what I'd recommend. You will break it for sure.

For a slotting toolpath the depth of cut should be 25% of the diameter. Slotting is very challenging, if you try to slot full depth in one pass you will break tools
or I certainly did. I also reduce the feed rate to half when slotting and reduce plunging to a quarter.

My wee mill has low lash (less than 2 arc min) planetary reduction boxes on the steppers and so the rapids are slow (1200mm/min) but the accelerations are high
(375mm/sec/sec). Quite frankly CV and accel mean squat when trying to establish the correct conditions for long tool life with these micro tools, its about matching
the chip load to the strength of the tool and clearing chips to reduce the torque drag. About half the breakages I've suffered are due to the spindle twisting the tool
off. The other half is where the feed over runs the cutting ability and snaps it off sideways.

Craig

5794
Mach4 General Discussion / Re: Reference all home help.
« on: November 29, 2017, 02:36:19 AM »
Hi,
writing code as we speak.

Yes the function can only work IF the machine has been homed or referenced otherwise you could crash. Also trying to stop the function from running if
any of the axes are not enabled otherwise the GUI will block.

You could hard code the numbers in the code but if you ever wish to change them you'd have to delve into the code to change the numbers. If you use
registers you can use the Diagnostics of Mach and edit the numbers directly and easily, no messing around editing Lua code and recompiling.

If you go to Configure/Plugins/Regfile and create three new registers (the little green plus sign adds a new line)...

Craig

5795
Mach4 General Discussion / Re: Reference all home help.
« on: November 29, 2017, 01:03:50 AM »
Hi,
oops... posted before I'd completed...

Quote
LUA Syntax:
enabled, rc = mc.mcAxisIsEnabled(
      number mInst,
      number axisId)

and:
Quote
LUA Syntax:
homed, rc= mc.mcAxisIsHomed(
      number mInst,
      number axisId)

Craig

5796
Mach4 General Discussion / Re: Reference all home help.
« on: November 29, 2017, 01:01:19 AM »
Hi,
couple of preliminary items:
1) If the machine has not been referenced you CAN'T use the Go_Center function. When you first turn Mach on the machine co-ordinates could be any where.
If the machine drives to a specific machine co-ordinate location it could easily go outside its envelope and crash. Soft Limits won't help either as they ONLY make
sense and do any good once the machine has been referenced.
2) You will direct the machine to execute some Gcode but if one of the axes is not enabled then the machine can't do as you've asked and it will hang up and
you'll have to crash it to get it to unblock, not desirable. Before executing Gcode need to establish that all required axes have been enabled so the code doesn't block.
3) The machine co-ordinates of the center of the table should be held in registers. It makes it easy to tweak, just edit a register rather than delve into a script.
4) The Go_Center function should probably go in the screen load script rather than the signal script or a macro, the screen load script functions are visible throughout
Machs GUI. Having said that I propose to write it as a macro initially, it allows a convenient set of editing and debug functions.

Two API calls of use to us:

5797
Hi,
there is ONE right number for your machine...it is the number of pulses that Mach has to issue to get the axis to move one unit, whatever units you
choose. If you put the wrong number, say 10000, when your machine  is actually 5080 Mach will issue 10000 pulses and you expect the machine to move one
inch but it in fact moves closer to two inches.

What is the native units of your machine?

Craig

5798
Hi,
I think ger21 is right, without the correct steps per unit you could be demanding that your stepper go way too fast and it will
fail to do so and quite probably give you the symptoms you describe.

You cannot guess about these things, if its not right, everything else is rubbish.

Microstepping is used because it results in smoother motion of the stepper motor. Most people  use '8 micro steps' or maybe '16
microsteps'. You could use even more if you wish but then Mach may not be fast enough to drive the machine to high speeds.
As a consequence 8  or 16 microsteps is a good compromise. It sound like your driver is set to '2 microsteps'. I really want you
to study the manual to resolve this. I would set the switches to '8 micro steps' which is the same as 1600 pulse/rev or
1600 steps/rev.

Note that is steps per rev, so if the machine moves 8mm per revolution of the screw then the steps per mm would be 1600/8
or 200 steps per mm, or in inches, 200 x 25.4= 5080 steps per inch.

What are the native units of your setup? Look under Config/Select Native Units....you can use either but once you choose it
then leave it alone. If you want to run some Gcode in inches use G20 or in mm use G21, don't fiddle with the native units.

Craig

5799
Hi,
is that 400 pulses per rev? That would be called 'half-step'. A normal two phase stepper is 200 pulse/rev.
At 'half step' 400 pulse per rev. At '4 microstep' 800 pulse per rev. At '8 microstep' 1600 pulse per rev.

If that is correct your steps per mm would be 400 (pulse/rev)/ 8 (mm/rev)=50 steps per mm.
If in inch units 50 (step/mm) x25.5= 1270 steps per inch.

Seems like a large discrepency between what you've set and these numbers.

Can you post the manual for your drivers? I suspect, as it stands, there is some confusion between microsteps and pulses
per rev.

Craig

5800
Hi,
what number of microsteps?

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 »