Hello Guest it is April 23, 2024, 04:04:36 AM

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 »
1051
Mach4 General Discussion / Re: Gage Block DRO
« on: October 08, 2021, 04:08:45 AM »
Hi smurph,
yes, I did compare the On Modify script between the two builds and they are the same. What is it about the later build that requires extra code?
Is there an example of the code required?

Craig

1052
Mach4 General Discussion / Re: c axiss move while z axiss comand
« on: October 06, 2021, 08:43:50 PM »
Hi,

Quote
its help but i cant always be sure all nc file customer use will have all axess movment
in my pp i can control and add,but in other??

No I don't think you can stop it by programming Mach, I suspect its a shared issue between Machs trajectory planner and your motion controller.

The only time I have observed it is when an un-commanded or referenced axis's Direction signal will change state, but even if it does change state who cares,
the axis will not shift UNLESS there is also a Step signal.

What I found was that Machs output, being essentially numeric is active high. If however your motion controller output or BoB output is naturally active
low then an un-commanded move MAY OCCASIONALLY STILL experience a change of state. I found that if I reversed the active high/active low circuit arrangement without reversing
the direction of the motor that the natural state of the motion controller/BoB output matches the un-commanded state of Mach the issue largely disappeared.

Craig

1053
Mach4 General Discussion / Re: Gage Block DRO
« on: October 06, 2021, 04:39:56 PM »
Hi,
I have an earlier build (4162) on my desktop PC and it appears to work as I expect, namely that I can change the DRO by editing the value and hitting
<Enter>. The only difference I can see between the two DROs properties is that the later build (4735) has 'AnalogIn' and 'AnalogOut' properties. Neither
are populated however, but could their existence stop the DRO editor?

Craig

1054
Mach4 General Discussion / Gage Block DRO
« on: October 06, 2021, 04:17:58 PM »
Hi All,
I have build 4735 installed and have found a fault that I have not encountered before.

I use the gage block DRO occasionally and normally I would click on the DRO, enter the desired gage block height, hit <Enter> and the
new value sticks in the DRO. With this current build (4735) the value of the DRO is 5.0000 and if I update the DRO and hit <Enter> the value
remains 5.0000.  I've opened the screen editor and the DRO has an EditorProperty of 'In Place', and I would therefore have thought that the DRO should
update, but it does not?

Any ideas?

Craig

1055
Mach4 General Discussion / Re: c axiss move while z axiss comand
« on: October 03, 2021, 08:09:57 PM »
Hi,
try an explicit command like:

g0 z10 c0
g0 z0  c0

I'm wondering if the Gcode interpreter requires a specific C coordinate.

Craig

1056
Hi,
how wide have you set the following error window?

If you set it to say 15, that is 15 encoder counts then if a servo gets at worse 15 counts away from where its supposed be it should alarm out.
The fact that it can get so far out tells me you have not tuned the following error window. When they come from the factory the following error window
is set wide, very wide as a rule so that you don't get nuisance alarms while you are tuning up. You have to set the window much narrower once
you have it tuned.

Craig

1057
Mach4 General Discussion / Re: Mach 4 auto "bed" compensation
« on: September 30, 2021, 09:22:41 PM »
Hi,
there are two ways that I know of.

I use Autoleveller, a freeware program that generates a Gcode probing routine from your original Gcode file,
then probes the substrate, then corrects the original Gcode file to accommodate the substrate not being perfectly flat.
I've been using it for years making PCBs which are very sensitive to Z axis engraving/cutting height.

The other is the mcSurface wizard of Mach4. It will probe an area according to your definition and then automatically
adjust ALL z axis ordinates thereafter, on the fly, without recomposing or otherwise editing the Gcode.

Both achieve the same result. Autoleveller is a clear and transparent process that is used again and again as required. mcSurface
is more intended that the baseboard of the router be probed and thereafter all corrections happen within Machs core and not
really subject to your control. It was always intended as a 'probe once and forget' type solution whereas Autoleveller is a
'probe each workpiece and modify the Gcode to suit' solution.

Either will work.

Craig

1058
Mach4 General Discussion / Re: Mach3 script conversion into macros for Mach4
« on: September 30, 2021, 04:43:31 AM »
Hi,
and yet you asked how to transform Mach3 scripts into Mach4 scripts...did you not think that might involve some programming?
Mach4 is great but its not magic.

99% of Mach4 is ready, complete and ready to use, and so if you choose to do no programming you can still do all the basics, but if you want a little
more, say an extra LED on screen to tell you if the pump is running, or maybe an alarm for each axis so you know where to look......then you'll
have to do a little coding of your own.

You might be tempted to imagine that because you need or want your machine to behave in this particular way that everyone wants the same....they
don't. The real power of Mach4 is that it can so simply be customized to your requirement. I use 'simple' to reflect that the extra code and/or code
edits are simple by and large, not that they are easy to contemplate and enact, at least at first.

Craig

1059
Mach4 General Discussion / Re: Mach3 script conversion into macros for Mach4
« on: September 30, 2021, 04:14:13 AM »
Hi,
Bill_O is right, you really must learn the basics of Lua, when you do you'll realise just how powerful it is and therefore how powerful Mach4 is.

There are several areas which form the learning curve.

The first tip is to use various scripts and macros that are shipped with Mach4....they are examples of how things work. Often its a matter of selecting
one or more chunks of code and combining and editing them to meet your own particular need.

First there is Lua itself....and that is best researched and understood  with this:
https://www.lua.org/manual/5.3/

Take particular attention of the 'scope' of a function or variable, the principle of a 'function as a first class value', and the structure and use of
tables in Lua. Lua has ONLY one data structure, the table, and despite its apparent simplicity it can be extended to do things that are difficult
to do in much more powerful languages like C. A perfect example of this is the text functions of Lua. Most computer languages use some
variant of POSIX compliant text functions, whereas Lua has an apparently small set of such functions. Despite that you can combine what Lua functions
there are to achieve anything a POSIX compliant text function set can do, but instead of being 5Mbyte of code Lua's code is less than 500kByte.

'Function as a First Class variable' is another critically important concept, and is very cleverly used in Mach4. In addition it allows you to make a state
variable function, which is bloody hard to do in many other supposedly better languages.

The next area that might at first seem strange is Machs API, the full listing is in Mach4Hobby/Docs/MachCore4API.chm. Using the APIs contained therein you can
do almost anything in Mach. The APIs are each the means that a user can direct Machs core to do certain things......no SDK or other BS, just one complete
API. Note that all APIs have at least one output called 'rc' or return code, and that will signal the success or otherwise of the function (API) call.
It's tedious to test each and every rc but MAN does it help track down code bugs!

As an example take this API:
Code: [Select]
LUA Syntax:
value, rc = mc.mcCntlGetValue(
number mInst,
number valId,
number param)

Description:
Get the value of a core variable.

Note that the function has two outputs, 'value' and 'rc'. If you follow the Lua reference manual you'll see that multiple outputs of a function come
about because the function itself is a table. Notice also that the syntax of ALL APIs is prepended by a 'mc.', so ALL Machs APIs, ENUMS and more
are ALL entries in a mega table called 'mc'. Very clever indeed.

There are other namespaces like 'scr.' meaning screen, which is another table of function related to the screen GUI. Its not one I use a great deal,
there are usually superior mc. APIs that achieve the same goal.

There is one namespace or table that you will over time have to come to terms with and thats the 'wx.' table, short for wxWidgets. Its responsible for
all the screen text boxes, file dialogs and so on. I personally find wxWidgets to be difficult to follow. The reference manual is here:
https://www.wxwidgets.org/docs/
Its written by geeks, for geeks and written in geekese, despite being complete and accurate! I have found this is where I use built-in Mach scripts
to learn and understand wxWidgets. Another good tool is wxFormBuilder, its a software suite that allows you to generate good wxWidget code and
if you invest the hours you will come to appreciate its power and flexibility.

Quote
I thank you for your advice, unfortunately I am not able, I work metal, I am not a programmer.

You may not think of yourself as a programmer....that's why Lua was chosen as a scripting language....so that metal workers, and hey, metal workers
are skillful even if they don't believe in their own abilities as programmers, can customise their machine to do anything they want. If you choose NOT to learn
the rudiments of Lua, Machs API and structure you'll severely limit what Mach4 can do for you.

Craig


1060
Mach4 General Discussion / Re: Cant get MPG smooth incremental jogging
« on: September 28, 2021, 10:44:36 PM »
Hi,

Quote
How can I change the to have a nice and smooth jog? I'm open to all suggestions.

When Mach jogs in incremental mode it jogs number of complete steps, if those steps are large but with long time intervals between them the motion appears
rough its not, it just stopping between small increments. If you spin the heel fast then it does not happen. The only solution is to use small incremental steps.
This is nice for slow, smooth and precise touch offs say, but is a PITA if you need to traverse a significant distance. That's why there is Velocity mode.

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 »