Hello Guest it is April 26, 2024, 03:49:39 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 »
1521
Hi,

Quote
Why does everyone focus on this one thing? 

Whatever.

Mach4 has a logging feature which offers a very granular diagnostic potential, for example the attached pic.
You wanted to know if Mach4 had better documentation, it does but more importantly it does have superb diagnostic
logging.

Craig

1522
Hi,

Quote
Does Mach4 have either better documentation or stick better to ansi standards?

Mach4 documentation is much better than Mach3, having said that it tends to lag the latest developments. Probing
(there are four probe channels in Mach4) is of course very mature and so the documentation is pretty good. In particular
there is an excellent description of the sequence of signals between Mach4 and the motion controller with a g31 code.
And by the way if you read it you will discover that a g31 does not retract....contrary to your belief, the retract requires
a second gcode move.

Quote
Probing
Motion plugin probing procedure.
The probe moves are really just G01 moves in exeact stop mode with the addition of being marked as EX_PROBE in the execution_t struct from mcMotionCyclePlannerEx().

When executing a G31, the core considers the move as an exact stop move and therefore will request a motor stop report. It waits on one of two conditions:

A probe strike condition where the motion plugin calls mcMotionSetProbeComplete().
An end of move condition where the motion plugin reports the motors as being still.
Until either of these conditions are satisfied, the core will generate no more moves after the EX_PROBE marked moves. In other words, all you will get out of mcMotionCyclePlannerEx() will be EX_NONE type data. In the event of a probe strike, this makes it safe to clear the planner and be sure that future moves are not removed by accident.

A motion plugin should implement probing in the following way:

Upon seeing the first move marked as EX_PROBE, the plugin should arm position latches on the hardware.
Then consume the EX_PROBE marked moves as normal.
If the probe stikes, the plugin should:
Cancel any MSG_REPORT_MOTOR_STOP requests. (see g. VERY important!)
Report the latched positions via mcMotionSetProbePos() for each motor.
Clear the hardware of any additional moves.
Call mcMotionClearPlanner() to clear the Mach planner of any unretrieved EX_PROBE moves.
Update Mach with the hardware's current position via mcMotionSetPos().
Call mcMotionSetProbeComplete().
If a MSG_REPORT_MOTOR_STOP has been received, do not acknowledge it. mcMotionSetProbeComplete() does this for you and a position sync as well.
If no probe strike, then the move continues to it's end point as if it is a regular move.
The plugin should ack the MSG_REPORT_MOTOR_STOP messages with mcMotionSetStill().
The positions latches should be disarmed (if needed) when a MSG_PROBE_DONE is seen.
In the event that the probe move is aborted, the plugin should:
Call mcMotionClearPlanner() to clear the Mach planner of any unretrieved EX_PROBE moves.
Call mcMotorSetPos() for each controlled motor.
Call mcMotionSync.
Call mcMotionSetStill() for each controlled motor.
Probe Operation Overview.
Upon executing G31, the core will mark those moves as EX_PROBE in the data stream.
If the probe strikes before the end of the G31 move, the plugin aborts the rest of the probe moves as described above. If a probe data file has been opened via mcCntlProbeFileOpen(), then the positions recorded by the motion plugin are inserted into the probe data file in the specified format.
If the probe doesn't strike and the G31 move reaches its end point and a probe data file has been opened via mcCntlProbeFileOpen(), then the end point positions are inserted into the probe data file in the specified format.
Using the probe data file routines.
int mcCntlProbeFileOpen(MINSTANCE inst, const char *filename, const char *format);
The format argument is a printf style format with expanding macros for the axis values. AXIS_X, AXIS_Y, AXIS_Z, AXIS_A, AXIS_B, AXIS_C. It is used in the following manner:


mcCntlProbeFileOpen(inst, "myProbeFile.csv", "%.4AXIS_X, %.4AXIS_Y, %.4AXIS_Z");
This will produce a probe file in CSV format like so:



1.0000, 2.0000, -1.4356
1.0100, 2.0000, -1.4343
1.0200, 2.0000, -1.4324
...

A format of "X%.4AXIS_X, Y%.4AXIS_Y, Z%.4AXIS_Z" would yield:



X1.0000, Y2.0000, Z-1.4356
X1.0100, Y2.0000, Z-1.4343
X1.0200, Y2.0000, Z-1.4324
...

A format of "X%.4AXIS_X\tY%.4AXIS_Y\tZ%.4AXIS_Z" would yield a tab delimited file:



X1.0000 Y2.0000 Z-1.4356
X1.0100 Y2.0000 Z-1.4343
X1.0200 Y2.0000 Z-1.4324
...

int mcCntlProbeFileClose(MINSTANCE inst); Closes the probe data file.

Mach4 is generally ANSI compliant, but more importantly is made to be Fanuc 21B compliant, which is the template for ANSI.

I've been using Mach4 for five years and regularly probe parts and surfaces and have had no problems whatever.

Craig

1523
Hi,

Quote
When I run g31 with the current position minus one inch, it works fine, it stops (but does not retract any which the specification says it should),

Thats not my understanding.

Quote
The machine will move toward the specified end point, at the same time it is looking for the probe input to be activated. When the probe input is activated the current position is recorded to # variables according to the table below and motion is stopped. The recorded position can then be used to calculate tool offsets, work offsets, measure parts, etc.

It does not say anything about retracting. When you have a probing routine it takes two Gcode instructions, a G31 which
does the probe move per the description above followed by a G0 which retracts the Z axis.

Craig

1524
General Mach Discussion / Re: Add 2nd DRO for Y axis
« on: April 23, 2020, 06:15:14 PM »
Hi,
if you had an encoder on the stepper then yes the second DRO would record the actual position so you
could see the difference between commaned and actual positions.

The expense and complication of doing that would be better invested in fixing the fault that causes lost steps.

I use Vexta steppers and Vexta drivers, they are great, not hugely powerful but because they have low inductance and the voltage
of the driver is a whopping 150VDC they really sing. I have not lost a step in five years.

Craig

1525
General Mach Discussion / Re: Add 2nd DRO for Y axis
« on: April 23, 2020, 03:46:29 PM »
Hi,
even if you add another DRO it would display the commanded position only. If a stepper loses steps Mach dosen't
know. So the commanded position could be '2000' say butthe stepper has lost five and is actually at position '1995' but
the DRO is still going to say 2000. What does a second DRO gain you?

Craig

1526
Mach4 General Discussion / Re: Mach4 use with XHC card
« on: April 22, 2020, 03:40:18 AM »
Hi,

Quote
There is a poor communication with Chinese factory, but they do respond.

By all means try them. We really need to know how they have set up the servo, how many pulses per rev.
Ballscrew ptch and gearing would mean that you don't have to stri the machine.

Good luck
Craig

1527
Hi,

Quote
Just curious - customize in what way?

Lets take a fairly simple example. Lets say you have a large VMC and the operator Estops it.
Because of the weight of the Z axis it slumps down under gravity, which would be VERY dangerous to the operator.
A machine builder might customize the control program such that before the power is disconnected from the Z axis
motor the brake is engaged.

Another example might be that you have an independent axis that rotates a part in discrete amounts. A machining
operation is performed and then the part is rotated another 30 degrees say before the maching operation
starts again. You could of course do that with a fourth axis but it is possible to do it with an Out-of-Band axis, of
which Mach4Hobby is allowed six. So you could have multiple OB axes manipulating parts say, or jigs or clamps...
The last feature for instance is likely to be important to a machine builder whom needs a flexible control for his new
machine....prehaps less so to you.

Quote
1) Reliable controller
2) Ability to restart a job partway through if I have to stop it for some reason
3) ability to do tool changes (manual at first, auto later maybe)
4) Has to handle homing/limit switches
5) has to support a touch probe
6) ability to control spindle speed through VFD
7) ability to turn coolant on/off
8) e-stop that shuts off the spindle along with the rest of it.

All of this is pretty much bog standard for any CNC solution and yes Mach4 can do it all.

Craig

1528
Mach4 General Discussion / Re: Mach4 use with XHC card
« on: April 22, 2020, 12:01:32 AM »
Hi,
given that it is a servo machine calculating the 'steps/unit' from first principles may not be that easy.

You are correct we would need to know the pitch of the ballscrews, any gearing between the servo and ballscrew
but would also need to know the pulses per rev of the servo. This last item may not be available to you. Many
servos have 'electronic gearing' programmed into them and most likely you don't have that information nor
will the machine builder provide it.

All is not lost however. You can do it manually.

Lets say you MDI a a command g0 x100, you would expect the x axis to move 100mm right? If however you measure it and find
it moves only 91mm then you have a problem.

If you do the calculation 100/91=1.0989, then you open the x axis motor tuning page to see what the current 'steps/unit'
are, then you need to increase it by a factor of 1.0989.

For example lets say the current 'steps/unit' are 2450, then 2450 x 1.0989=2692.23. Substitute the new number, restart
Mach to have the new setting be propagated through the machine and try again.

When you MDIed a 100mm move, measure how far it ACTUALLY moves. The more accurately you can do this the better.

Using this 'suck it and see' appraoch means that you don't have to know anything like screw pitches etc.

Craig

1529
Hi,
Mach4 is a highly flexible CNC solution, it can be programmed to do many things.
As a straight out CNC user I would not expect Mach4's flexibility to be significant to you.....
but you never know. Many people here thought they would never customize their machine
and yet a few months later thats exactly what happens,

Craig

1530
Hi,

Quote
All you will need is a motion controller, Smoothstepper, or CSLabs or one of the many others out there it all comes down to your budget.

There are a number of posts on this board (Mach4 General Discussion) that talk about the shortcomings of the CSlab
products with Mach4. The hardware quality is good and the Mach3 plugin is fully developed but the Mach4 plugin is
buggy and CSLabs, contrary to their reputation, have not been botherd to fix it. Given the cost of the CSMIO boards
hard to recomend for Mach4.

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 »