Hello Guest it is April 24, 2024, 04:51:08 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 »
1091
Mach4 General Discussion / Re: About G Code of Mach4 Demo
« on: August 30, 2021, 08:38:01 AM »
Hi,
the status message says Line0: Feature not supported.

Is the line of Gcode you've pointed at Line0.....I don't think so.

Post the whole Gcode file....we need to find Line0.

Craig

1092
Mach4 General Discussion / Re: About Mach4 Touch Module and Probing
« on: August 30, 2021, 03:44:04 AM »
Hi,

Quote
In Japan, G31 is described as a skip function.

I don't think that is correct, it is a 'Feed until skip'. This is for example the Fanuc21 interpretation which Mach4 follows closely.

Quote
G31   Feed until skip function           Used for probes and tool length measurement systems.

The command causes feed, at the prevailing feed rate, until an event, then skip the remainder of the move.

Quote
If X, Y, Z input the measurement signal to Mach4 before reaching the end point coordinates, Mach4 seems to measure without stopping.

I don't believe this is correct either. Ordinarily Machs Gcode interpreter would have several lines of Gcode in its buffer called look-ahead.
The trajectory planner can therefore do things like blend one move into the next without stopping, called CV mode. With a g31 block however
Mach cannot look-ahead because it has to make a move at the prevailing feed rate until the probe event, whereon the machine must
stop, the controller must report 'AllStopped' followed by the x,y,z location.....and abort the remainder of the move. It's this abort
the remaining move means that Mach cannot have further move instructions in the pipeline because otherwise there would be a time gap between
the probe event and the next scheduled move after the g31 block. This variable time gap would crash the motion controller which MUST
have time-continuous move instructions, even if the move instuction is nil, ie 'don't move' but it must get such an instruction every millisecond,
any gap in that stream of instructions will crash the controller.

Craig

1093
Mach4 General Discussion / Re: About Mach4 Touch Module and Probing
« on: August 30, 2021, 12:22:55 AM »
Hi,
Mach4 has a module called mcTouchOff, which as no doubt you have discovered allows you to automate such things
as touching off to a workpiece corner say, or a boss or some other feature, very handy.

The module is in fact a Lua routine which is viewable and editable and based on the repeated use of g31, the Gcode
probe command. Once you understand how g31 works you can easily write you own Gcode probing routines much like
mcTouchOff.

mcMapSurface is a wizard not a module. In this particular case the compiled code is published but not the source code.
Therefore you cannot view or edit it. What certainly is true is that it makes use of g31 to probe the surface at regular intervals
and thereby generate the data required to 'flatten the surface' in software. Even were the source code published I'm guessing you
could see regular Lua code for the probing routine and it would look similar to mcTouchOff  but what would not make sense is that
Machs trajectory planner must interact with mcMapSurface in order to modulate the Z axis, and that interaction will almost certainly
require C code rather than Lua.

You may have noticed that in Mach4CoreAPI.chm that nearly all APIs have both C syntax AND Lua syntax, but not so with the
mcMotion...APIs, they have C syntax only. As mcMapSurface is as much concerned with motion as it is about probing a surface
much of the wizard would be unrecognisable to anyone familiar with Lua.

The hierarchy is:
g31 probe command, enacted in realtime on the controller board,
mcTouchOff Lua code probing routines to automate the required g31 probe commands,
mcMapSurface a proprietary wizard that uses g31 to gather surface data and interacts with Machs trajectory planner to 'flatten' a surface.

Craig

1094
Mach4 General Discussion / Re: Mach 4 question
« on: August 28, 2021, 05:50:02 AM »
Hi,
kool, starting to make some progress.

A probe, a good one, should go open circuit if it touches and deflects in the Z axis AND/OR the X and Y axes as well.
As you now understand Mach is looking for, and will error out if it does not get, a probe event BEFORE the terminal
of the g31 move.

When I probe circuit boards I zero the Z axis on the top surface of the PCB. Thereafter the probing routine will move to a series of
preplanned x,y locations and probe in the Z axis. The moves are:

g31 z-2 f200
g0 z2
g0 x...y...
g31 z-2 f200
g0 z2
g0 x...y...    etc.

So the machine moves to a probe location, then probes  and expects, not only expects, but requires a probe event before the Z axis descends to
z=-2. It will stop, record the probe coordinates, retract to z=2 then rapid traverse to the next probe location.

Thus it would make no difference if I used this:
g31 z-20 f200
g0 z2
g0 x...y...
g31 z-20 f200

It would just mean that the machine will drive downwards until the probe event, lets say z=-0.054mm....but if the probe circuit were faulty it will carry on
and drive my probe tip to -20mm and totally wreck it. So there is distinct value in specifying a terminal g31 position so that a crash is not too catastrophic
should Mach/controller miss the probe event. On te other hand if I speciified:
g31 z-0.5 f200
g0 z2   etc
and at this particular location the top surface of the PCB is at -0.65mm then my probe would never detect the surface and throw an error such as you
have already seen.

A thorough understanding of how g31 works will help immensely when you go to write your own probing routines or try to diagnose faulty routines.

Craig

1095
Mach4 General Discussion / Re: Mach 4 question
« on: August 28, 2021, 05:07:26 AM »
Hi,
you should not be running the probing  routines....you can't get a regular g31 block to execute let alone the probing routine.

Execute MDI g31 moves only. Once you have got that mastered then move on but not before.

Jog to 0,0,0 then MDI g31 z-50 f10 and make sure to manually open the probe circuit before the move terminates.

Craig

1096
Mach4 General Discussion / Re: Mach 4 question
« on: August 28, 2021, 05:00:55 AM »
Hi,
will you just try to operate the manual switch BEFORE the g31 endpoint. The error message you are getting is BECAUSE
Mach is not detecting a probe event.

Craig

1097
Mach4 General Discussion / Re: Mach 4 question
« on: August 28, 2021, 04:39:14 AM »
Hi,

Quote
I haven't touched the probe manual switch.

THATS WHY IT FAILING....you have to operate the probe switch before it reaches the end.

Craig

1098
Mach4 General Discussion / Re: Mach 4 question
« on: August 28, 2021, 04:07:20 AM »
Hi,
No, the problem is that the probe event is not happening before the g31 block hits its end point.

There is (probably) no fault of the motor, no fault (probably) of the mcProbing module code, it's operator error,
you are not activating the probe button before the g31 finishes.

As an experiment try:
g31 z-5 f10
If the probe starts a z=0 it will take 30 seconds before the Z axis descends to z=-5mm and should give you plenty of time to hit the button
before the window of opportunity finishes.

Craig

1099
Mach4 General Discussion / Re: Mach 4 question
« on: August 28, 2021, 03:13:03 AM »
Hi,
you are using the Probing module, the fault could be in the code, or it could be your probe simulation set-up, or it could
be a machine fault.

Why don't you try writing some MDI code to test the g31 cycle, your machine and simulation procedure?
Once you have proven all those to your satisfaction THEN try running the module code. Note tat the Lua source code is
freely published for you to inspect, read, edit as you wish.

Mach4Hobby/Modules/mcProbing.mcs

Craig

1100
Mach4 General Discussion / Re: Mach 4 question
« on: August 28, 2021, 02:12:20 AM »
Hi,
if the controller does NOT detect a probe event BEFORE it gets to the g31 endpoint, its a fault.....end of story.
I'm not quite sure what you would expect.

Essentially what you are saying when you execute a g31 block like g31 z-5 f200 is 'advance to z=-5mm but expect to stop
before you get there', if you don't get the signal to stop, ie a probe event what do you want Mach to do? It did not detect the surface
it expected to find......thats a fault isn't it?

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 »