Hello Guest it is April 19, 2024, 07:56:47 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 »
6441
Hi,
Quote
The Cs Labs  CSMIO/IP-M 4  is around £270 and doesn't require BOB.
Check out the restricted functionality, it doesn't look quite as appealing.

Plain two phase steppers are as you say very common. I have no recomndation to make that favours one manufacturer over another.
Not all manufacturers list the inductance but is an important figure of merit, go for the least in a given size. 800+ oz.in 34 size are likely
to be 6+A try to find units with inductance less than 5mH.

Craig

6442
Hi,
the daughter board 'Mach4 Toolbox' is the right spot.

It is my experience that a large fraction of users don't read or search the forum. Would they find anything?

Generating some useful code is worthwhile but learning how to write it and the thinking that goes on to improve and develop the code is
even more valuable.

Craig

6443
Hi,
I can find some documentation about the SEM30 and Norwin drives, but doubt the models I've seen are indentical to yours but none the
less can well imagine that you wish to retain them if they are in working order. That would require an analogue output controller.
As you say CSLabs do a nice unit but around $600 and Vital Systems also have a good reputation but their analogue ready controller is $1200.
Galill is really classy gear but three axis analogue around $2000.
An ESS by Warp9 (step/dir) is $180. The difference between the CsLabs analogue and the ESS is about $400, still not enuf to replace the servos
certainly with AC servos but you may find that good sized steppers and drives can be had for that budget.

My concern would be 'what happens if one of the Norwin drives craps out?' Can I repair it? Could it be replaced and how much? So there is a risk
in retaining the old servos and drives over and above the premium paid for an analogue controller.

Price two 34 size low inductance steppers, big suckers, 800 oz.in or better, 72V supply and two AM882s. When set up properly they should not lose steps
and will be quick if not as fast as the servos they replace. You may like the idea that the smart drives can overcome lost steps but if you are pushing steppers
to the extent that they start losing steps then its probable that the drives will throw a 'following fault' error. Don't be taken in by the advertising hype.

Craig

6444
General Mach Discussion / Re: Is there a way to slow the speed of x and y
« on: October 04, 2017, 09:43:16 AM »
Hi,
if the material allows the use of an ohmic probe touching off is so simple and accurate. Probing has become for most operators the technique of
choice.

If the material is non conductive a small piece of metal of known thickness and connected via a flexible wire to your controller is laid on the work surface.
Either an on-screen probe button or and MDI G31 probe code is issued and the spindle (not running) lowers until contact is made with the metal.
The Z co-ord is set to the gauge thickness of the metal.

If the work piece is conductive but is isolated from the frame of the machine a wire from the conductive surface is connected to your controller.
Probe contact occurs when the tip of the tool which is clamped with metal collets in the spindle which is in turn earthed to the frame of the machine.
This is a common procedure for me when I make circuit boards. One probe wire is clipped to the top copper surface of the circuit board blank
and the other wire is clipped to the spindle shaft with an alligator clip. The probe input of my controller detects the short that occurs when the tip
of the tool touches the circuit board blank. In this case the gauge thickness is zero, ie the Z work co-ord is set to zero, easy.

Craig

6445
General Mach Discussion / Re: Is there a way to slow the speed of x and y
« on: October 04, 2017, 09:09:32 AM »
Hi,
as you say it is a matter of preference.

A common procedure is to touch off to the material surface and zero the Z work co-ord. Half an inch above the material is 0.5
and a 1/8 inch cut is -0.125. The rule here is any positive Z is above the work (safe) and you can use G0 (rapids or traverse) to move around.
Any negative Z is cutting ie spindle at speed S, moves are G1 at feed rate F.

I find it simplest and therefore least confusing. As it turns out operator confusion is by far and away the most common cause of crashes. Any
procedure that minimises confusion is worthwhile.

Craig

6446
Hi,

Code: [Select]
function m4();
local inst=mc.mcGetInstance();
mc.mcSpindleSetDirection(inst, mc.MC_SPINDLE_REV);
mc.mcCntlSetLastError(inst,"m4 waiting");
local returncode=mc.mcSignalWait(inst,mc.ISIG_SPINDLE_AT_SPEED,mc.WAIT_MODE_HIGH,10.0);
    if (returncode==mc.MERROR_TIMED_OUT) then
        mc.mcCntlSetLastError(inst,"spindle does not respond");
        mc.mcSpindleSetDirection(inst,mc.MC_SPINDLE_OFF);
    else;
        mc.mcCntlSetLastError(inst,"m4 at speed");
    end;
end
if (mc.mcInEditor() == 1) then
    m4()
end

Code: [Select]
function m5();
local inst=mc.mcGetInstance();
mc.mcSpindleSetDirection(inst,mc.MC_SPINDLE_OFF);
mc.mcCntlSetLastError(inst,"m5 stopping");
local returncode=mc.mcSignalWait(inst,mc.ISIG_SPINDLE_AT_ZERO,mc.WAIT_MODE_HIGH,10.0);
    if (returncode==mc.MERROR_TIMED_OUT) then
        mc.mcCntlSetLastError(inst,"spindle does not respond");
        mc.mcSpindleSetDirection(inst,mc.MC_SPINDLE_OFF);
    else;
        mc.mcCntlSetLastError(inst,"m5 is stopped");
    end;
end
if (mc.mcInEditor() == 1) then
    m5()
end

Craig

6447
Hi Hakan,
try this for m3:
Code: [Select]
function m3();
local inst=mc.mcGetInstance();
mc.mcSpindleSetDirection(inst,mc.MC_SPINDLE_FWD);
mc.mcCntlSetLastError(inst,"m3 waiting");
local returncode=mc.mcSignalWait(inst,mc.ISIG_SPINDLE_AT_SPEED,mc.WAIT_MODE_HIGH,10.0);
    if (returncode==mc.MERROR_TIMED_OUT) then
        mc.mcCntlSetLastError(inst,"spindle does not respond");
        mc.mcSpindleSetDirection(inst,mc.MC_SPINDLE_OFF);
    else;
        mc.mcCntlSetLastError(inst,"m3 at speed");
    end;
end
if (mc.mcInEditor() == 1) then
    m3()
end

Tidy and tight!

Craig

6448
Hi Hakan,
Chaoticone is spot on, mcSignalWait is perfect.

Quote
rc = mc.mcSignalWait(
   number mInst,
   number sigId,
   number waitMode,
   number timeoutSecs);

Description:
Wait on a signal to change state.

Parameters: Parameter Description
mInst The controller instance.
sigId A valid signal ID. (NOT a signal handle)
waitMode An integer specifying whether to wait on the signal to go high (WAIT_MODE_HIGH) or low (WAIT_MODE_LOW).
timeoutSecs A double specifying a timeout period.


Returns: Return Code Description
MERROR_NOERROR No Error.
MERROR_INVALID_INSTANCE The mInst parameter was out of range.
MERROR_INVALID_ARG sigId or wiatMode is out of range or timeoutSecs is negative.
MERROR_NOT_ENABLED The control is not enabled.
MERROR_TIMED_OUT The timeout period was reached without a change of state.

Should be able to simplify the macros really well, don't even need  the signal handle!

Craig

6449
General Mach Discussion / Re: Coordinates
« on: October 04, 2017, 01:29:51 AM »
Hi,
you need to reference your machine, that is go to a particular location, repeatably, on each occasion you fire Mach up.
When you first turn on Mach doesn't know where it is UNLESS you tell it, usually specifying that location as 0,0,0. Note
these are machince co-ordinates. Mach does a very good job of tracking where it is at any given moment from that starting point
but you do have to tell it where the start is.

If you confirm the start position then you can tell Mach 'the left hand boundary is 9.5 inches to the left of 0,0,0' and likewise other
boundaries. Boundaries make no sense unless the machine has been referenced.

You may be able to wangle a way of using your limit switches to signal a location but I would recommend independent home switches.
They need to be good quality microswitches or similar to repeatably and accurately reference your machine. Does your controller have
spare inputs? Three would be ideal....you can combine them into one circuit with one input pin but one input per switch is preferred.

Craig

6450
Hi,
kool guys, thanks for that.
mcSignalWait sounds very promising. I had a loop which introduced a 1 second delay until the signal came good.
One advantage of doing that was I had an incrementing counter so that if the signal didn't come good after a
reasonable time it would fault rather than hang.

Every time I think 'Oh yeah, that looks easy I'll help the bloke with that' I end up with my sleeves rolled up and
end up learning as much as the person I was supposedly helping. Keeps me off the streets.

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 »