Hello Guest it is April 20, 2024, 09:43:15 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 »
551
General Mach Discussion / Re: Can you Explain NC Code?
« on: August 15, 2022, 03:24:26 PM »
Hi,
OR use MasterCAM properly.

MasterCAM is by far and away better than CAMBAM or any other Johnny-come-lately CAM program having
been in continuous development since the eighties. The only other CAM program that comes close is HSMWorks.
Both of these programs cost over $20,000 plus annual fees.

If I could afford either I would have them....fullstop. Sure they have a huge learning curve, but that's what you get with the most
comprehensive CAM programs on the planet.

Craig

552
General Mach Discussion / Re: Can you Explain NC Code?
« on: August 14, 2022, 08:20:47 PM »
Hi,
the early M6 is quite common. The machine is being set up to do the job, so the CAM program calls for the tool to be used. The fact that it may already be in the machine
and therefore no M6 is actually required is completely unknown to the CAM program, so it calls for an M6 to ensure that the right tool is used. Likewise it will call a G43
for the tool, after all the tool length offset is an important parameter, that you have arranged it so the tool offset is not required is again unknown to the CAM program.

As far as the G3 moves, use MasterCAM to simulate the toolpath, is the toolpath correct? The rule is to use the CAM program to simulate the toolpath rather than doing a dry run on the
machine. That absolutely requires that the CAM program have a perfectly accurate description of your machines motion characteristics, things like axis orientations etc.
MasterCAM has an excellent, albeit difficult to use, machine description module. It will take many hours to learn to understand the machine description module but is essential if you want to
produce sensible code without you coming along and editing it.

Craig

553
General Mach Discussion / Re: Mach3 Estop triggered when spindle stops
« on: August 14, 2022, 06:57:38 PM »
Hi,

Quote
Would a high debounce time cause any issues for the homing/limite switches?

Debounce is applied to each individual input. If you applied excessive debounce to either homing or limit switches then yes it will effect the response of homing
and/or limits. The debounce on the EStop input would have no effect on homing/limits.

Quote
what sort of value for debounce is thought of as standard?

There is no standard. The general rule is to use the minimum necessary to get good results. If that requires excessive filtering (debounce) then that means you have a problem
elsewhere interfering with your circuit and you are just using filtering to cover another fault.

Craig

554
Mach4 General Discussion / Re: ESS + Mach4 - feedrate problem
« on: August 14, 2022, 06:51:21 PM »
Hi,
as your code is written I would expect the the X axis does 1273, or some close approximation, and the Y axis do the same, thus the blended speed is:

Blended speed= (12732+12732)1/2
=1800

Is that close to your observation?

Craig

555
General Mach Discussion / Re: Mach3 Estop triggered when spindle stops
« on: August 14, 2022, 06:46:44 PM »
Hi,
this is just my guess but as the spindle starts to decelerate a voltage spike occurs and that is somehow being coupled into your Estop circuit.
Given that it is an electromagnetic process it may well occur randomly.

Try a very long time constant debounce on you Estop circuit, or maybe even disconnect it altogether....does it change anything?

Craig

556
Mach4 General Discussion / Re: Configuring limit switches
« on: August 14, 2022, 06:40:47 PM »
Hi,
This post belongs on the Mach4 General Discussion Board....this board is about Mach3. No doubt Tweakie will shift it in due course.

What plugin are you using for the UC100? Where did you get the profile....did you make your own or did you import it from somewhere?
Does the plugin diagnostic show a dedicated EStop input?. If it does is the pin configured Active High or Active Low?

Craig

557
General Mach Discussion / Re: Mach3 Estop triggered when spindle stops
« on: August 14, 2022, 06:34:56 PM »
Hi,
I suspect that when the spindle is being called to stop that it is generating a voltage spike which is causing the Estop.

When the spindle is spinning and then stopped as the spindle winds down it is a generator and can generate back into the power supply.

What is the spindle? How is it driven? Do you have agressive acceleration/deceleration setting for the spindle? Does it have a braking resistor?

Craig

558
Hi,
if using Mach4 then this post belongs on the Mach4 General Discussion Board.....this board is about Mach3. No doubt Tweakie will shift it in due course.

Homing is a realtime procedure that is entirely enacted by the motion controller, not Mach4. When a Home switch activates the machine must respond imediately, or at least
within microseconds. The communication delays from the motion controller board TO Mach4 and then FROM Mach4 back through the motion control buffer would be a delay of
100 milliseconds or more, way, way too slow. Ergo the motion controller must do the job, and is one of the foundational realtime supports that a motion control must offer
to be useful.

Most motion controllers for Mach4, like an Ethernet SmoothStepper can read an encoder, but to my knowledge cannot trigger a Home event based on the output of an encoder.
Remember also that when a machine is Homed or Referenced it is the Machine Coordinates that are zeroed, and you cannot manipulate Machine Coordinates directly, in fact you
can ONLY set them as a Homing or Referencing operation, ie the motion controller alone can set the Machine Coordinates, and the motion controller requires Home switches.

I think Homes switches are in order for a simple and direct solution. I could forsee a couple of methods that might allow the use of linear scales to set Machine Coordinates, but
the complexity counts against them.

Craig

559
Mach4 General Discussion / Re: lua in Mach 4
« on: August 09, 2022, 09:54:40 PM »
Hi,
when I'm coding Lua, this link is permanently open in my browser:

https://www.lua.org/manual/5.3/

It tells you about the basic syntax, control structures, scope etc. My guess is you'll use the Standard Libraries quite a bit too.

The next thing you want open and you will consult dozens of times per hour is Mach4CoreAPI.chm, its the API Help file, found in C:/Mach4Hobby/Docs.

It helps to know about Machs structure and organisation but if you are reasonably familiar with the API and can refer to the Lua Reference Manual,
the link above, then you'll be able to handle 90% of what comes up.

Craig

560
Mach4 General Discussion / Re: lua in Mach 4
« on: August 09, 2022, 07:29:48 PM »
Hi,
Quote
In short i want to build a text variable that contains mc.OSIG_OUTPUT# as text and use that value in the statement seems that would be the most efficient

That does not work in Lua. In order to address and either set or read a variable you must first get its 'handle', which in effect a number corresponding to the memory location of the
variable.

For example:

local VariableHandle=mc.mcSignalGetHandle(inst,mc.OSIG_OUTPUT5)
mc.mcSignalSetState(VariableHandle,1)

So the only way you can address a signal is by using its handle. That's the way Lua is and always has been.

Unlike languages that you may be used to which have a variable table and using it you can address any variable you require and remains fixed for the duration of the program.
In Lua variables come and go and are located in different addresses as the program progresses, in fact many of them are in a stack which will be garbage collected once the variable
goes out of scope.

Lua is not really a computer language, but rather a scripting language, and is meant as an extension to the main program. In the case of Mach the main program is all C/C++, and
Lua is the scripting language laid on top of it for our use.

So when a Lua function is encountered  the PC sets up a stack and all variables (local) are put (called 'pushing') onto the stack while the function runs, so the memory location of a variable is changing
as new stack entities are 'pushed' onto the stack or 'popped' off it, ergo the repeated and common use of a 'handle' rather than a textual variable name.

You may find the PDF I wrote about using the SignalScript and covers some of these ideas useful:

https://www.machsupport.com/forum/index.php?topic=40051.msg267764#msg267764

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 »