Hello Guest it is April 23, 2024, 02:38:35 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 »
3191
Share Your GCode / Re: Wait for signal
« on: January 25, 2019, 12:52:24 PM »
Hi, cont...

You should now see your open document in Zero Brane as waitscript.mcs and see the location in the navigation tree.

Craig

3192
Share Your GCode / Re: Wait for signal
« on: January 25, 2019, 12:49:19 PM »
Hi,

Quote
To write a script for Mach 4 though i can type it in a notepad right? I shouldn't need any lua software to write a simple script of  if - else commands etc.

Yes you could write a script with a text editor but Zero Brane has been provided for the purpose. It has auto-complete,
context sensitive formatting, a compiler, and can debug, ie run in single step, to breakpoints etc.

You will be coding in Lua and using he API. I have this online manual open on the desktop when coding:
https://www.lua.org/manual/5.2/.

Open the Script Editor (or alternately Edit/Debug scripts). Open a new document.

I suggest that you make a temporary folder within you profile, called 'temp' say, in which to store your script,
'waitscript.mcs' say.

Using SaveAs, navigate to your profile and create a new folder 'temp'.

Open the new folder and save your script as waitscript.mcs. Its not the end of the world if you name it *********x.lua but the
debug features wont work, you'd have to rename it *********xx.mcs

3193
G-Code, CAD, and CAM discussions / Re: G-Code bad character used
« on: January 25, 2019, 02:31:16 AM »
Hi,

Quote
I created a foil pattern for an electronic circuit in Eagle, sent the gerber file to copper cam on line, and received the attached g-code

Why bother? I use Eagle to make circuit boards but use the U(ser) L(anguage) P(program) pcb-gcode and it generates
Gcode directly and I have used it in both Mach3 and Mach4 without problem.

Craig

3194
Hi,

Quote
Im thinking it may have something to do with the keyboard plugin?

No, that is incorrect, it is a fault with the ESS Mach4 plugin. Andy, the service and development guy at War9 TD is aware
of the problem. He is currently fully engaged with developing THC for the Mach4 ESS plugin, but he will be addressing
this problem in due course.

Craig

3195
Mach4 General Discussion / Re: Can't set machine position in script
« on: January 25, 2019, 01:48:41 AM »
Hi,

Quote
Quote

The correct approach is to at the start of the new session reference (home) your machine and THEN using your stored
work offsets resume the job from where you left off.



We are fully aligned  8) This will be my way of doing it. Thanks!

Aww crikey Brian, I thought, even sort of hoped, that you were a sick puppy!!!

I recall when I tried to develop a workaround to programmatically set machine coordinates I did have to think very carefully
about homing, coordinate offsets and so on. I learnt a lot as a result.

Even having developed a workaround the standard procedure I and Chad are promoting is still preferred, and how I do it
for instance. I have not found a legitimate use for my workaround.....maybe its only value is what I learned in pursuit of it!

Craig

3196
Share Your GCode / Re: Wait for signal
« on: January 25, 2019, 01:34:50 AM »
Hi,

Quote
So I need mach 4 indutrial in order to be able to get signals and manipulate the g code
No, absolute rubbish! What I said was that Mach4 Industrial supports Gcode that includes conditional statements.
IF you had conditional statements you could code what you require in Gcode.

With Mach3 OR Mach4Hobby which don't have conditionals that approach wont work. There is however another which will work
equally well.

In Mach4 you would write a script that test the input at regular intervals ( every few milliseconds) and issues a <feedhold>
instruction if the signal is low or a <cycle start> instruction if the signal is high.

This is conceptually easy. Another variation which is more programmatically efficient is to use the SigLIb table (Signal Library).
It takes more thinking about and displays the underlying strength of Mach4.

Irrespective of the approach you adopt, you might choose the easy way first AND THEN have a go at the SigLib idea, you
will have to learn a little Lua and use the API. Are you up for it?

Look in the Mach4Hobby/Docs directory and you will find all sorts of good stuff, the API.chm, Mach4 Scripting Manual and
Mach4 Gcode programming. Note that with Mach enabled the docs directory can be displayed with the <Help Docs> button,
too easy.
Craig

3197
General Mach Discussion / Re: z height and machine 'parking" - mach3
« on: January 25, 2019, 01:15:26 AM »
Hi,
look up the Safe-Z-Height setting.

Craig

3198
Mach4 General Discussion / Re: Can't set machine position in script
« on: January 24, 2019, 12:37:10 PM »
Hi,

Quote
My reason for doing it was to make it possible to save the position for all coordinates and then be able to shut down the machine and pc (for what ever reason) in a random position. Then I could start it all again (the next day maybe) and load all positions and continue where I stopped.

The correct approach is to at the start of the new session reference (home) your machine and THEN using your stored
work offsets resume the job from where you left off. For this to be effective you need accurate homing. I use roller plunger
microswitches and achieve 0.02mm repeatability. Using index homing would allow even closer (1 um) repeatability
but as it transpires 0.02mm is adequate for me.

You can, as you have done, use persistent registers, or you could write them to a file. I do this with circuit board programs.
The file name of the stored data is the same as the Gcode etch file with "OFFSET' appended.

Note however that such explicit methods are strictly not required because the current Work Offsets (G54, G55, G56....etc)
are stored at shutdown and restored at restart, ie they are stored in persistent registers.

If you shut down your machine and record both the work coordinates and the machine coordinates and then restart the machine
and restore the coordinates at restart. That would work IF the machine did not move, you can usually be assured that is so.
However if you use microstepping with your steppers then in effect your machine will 'move'. Lets say you use 1/8th
microstepping. At the moment of shutdown  (when you recorded your coordinates) the machine was at the third of the eight
microstepps between full step positions. When you restart your stepper driver will be at a fullstep position and you will
have lost that 3/8th of a step. Having said that the loss of precision is likely to be small and may well be tolerable.

There is a workaround that would allow you to proceed with that solution if you wish. It relies on doing an  effective
'home in place' at the end of your session and then at restart programmatically unlinking the motors and doing a 'dummy
move to the stored original machine coordinates' doing another 'home in place'.

I have one this before, it was confusing as hell but it did work. Let me know if you want further details.....you poor sick little
puppy!

Craig

3199
Share Your GCode / Re: Wait for signal
« on: January 24, 2019, 11:57:20 AM »
Hi,
Gcode as used by mach3 or Mach4Hobby does not include conditional statements. Without a conditional you cannot write
Gcode  to do it. Mach4Industrial enacts Marco B programming which does have conditionals and could do it in Gcode alone.

What you require is a macro running in the background that causes a <feedhold> when low and a <cyclestart> when high.

I use Mach4 and would code this in Lua easily enough. I presume you could do a similar thing in Mach3 but I can't be bothered
with Cypress Enable.

Craig

3200
Hi,
there is a discussion of this condition on the Warp9 website.

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 »