Hello Guest it is April 25, 2024, 11:37:28 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 »
181
Mach4 General Discussion / Re: I don't see the "SIMULATOR" tab
« on: March 13, 2023, 10:19:53 PM »
Hi,
not exactly sure what you mean. Mach4 does have a Simulation Device but you don't need a license, and you don't need to download it, its part of every
Mach4 build....its already there.

Craig

182
Hi,
sorry the excerpt from the SigLib table is not a screen shot but rather a text file.

Craig

183
Hi,
I have attached a couple of screen shots from my machine. The first are entries in the SigLib  table where a given input, a servo alarm for instance, will cause an Estop
but also write to a register. The second shot is of the Register Diagnostics. Note that the servo alarms are so seldom, if ever, triggered are not especially interesting,
but the AXIS1, AXIS2 reflect the status of the axis select switch on my pendant, which in turn informs Mach of the axis to jog and puts that in another register
just call AXIS and has a number, 0,1 or 2 depending on the axis to be jogged. Note that these values are live, that is to say whenever I flick the three position toggle
switch to select an axis to jog the registers update. I've been using this scheme for months and it works perfectly. If the registers were misbehaving then my pendant would be
misbehaving also,yet it is not.

Craig

184
Hi,

Quote
Craig, my switches are all proximity sensors... are there advantages to using mechanical switches?

For Home switches I believe there are advantages, for Limits, no.

For a Limit switch all that you really care about is that the switch operates when the axis is adjacent the switch. It does not especially matter if it operates +-0.1mm
nor does it particularly matter when the switch deactivates when you back up.

Home switches are different. Recall that Mach references the machine coordinate of an axis to zero (or Home Offset if so programmed) not when the switch activates but when it deactivates.
The axis will advance towards the Home switch until the switch activates and then decelerate to a stop. Then the axis will back up and the machine coordinate zeroed as the switch deactivates.
There is a premium here on exactly when a switch activates and when it deactivates. Snap action micro switches are very good at repeatably activating at exactly the same spot again and again.
The Omron switches I use have a precisely defined and repeatable hysteresis, ie a given travel before the switch deactivates.

With proximity switches and to a certain extent optical switches there is a minor variation not only when the switch operates but most importantly when the switch decativates when the axis reverses.
Its for this reason that I prefer snap action microswitches for Home switches.

Having told you the reason that I like mechanical switches there will be many to say the contrary and with experience to back the claim. I suspect in truth both solutions are adequate.

If you really want accurate homing then you'd use Index Homing. Given that I have servos on all my axes and the the servo drives have an auxiliary encoder output including an Index signal
I could invoke Index Homing easily. It would require an extra input to Mach for each axis of course, so four currently and five coming.

I made my own breakout board for my new mill. It has an eight wire plug for each of the six axes, four wires for differential Step/Dir signalling, one for an Enable, one for a Reset,
one for a servo Alarm and the last one is a 0V Return. I could I suppose redesign to have say a 10 wire plug which would allow at least one extra wire for Index Homing....but really do I need it?
I can Home or Reference my linear axes to within 0.02mm just with snap action microswitches....is that not good enough? I could with Index Homing do better, to within 1um....but is that
really a big advantage of just skiting? Once I fully develop my fourth and fifth axes I may have to revisit this decision, I really need to Home or Reference my rotary axes within say 15 arc secs,
and I suspect that Index Homing may be the only way to get that sort of accuracy. If that were the case then I would retrofit just the fourth and fifth axis with Index encoders rather than redesign
my breakout board.

Craig

185
Hi,

Quote
Are the registers (iRegs, etc...) actually also simply entries in a LUA table as well?  Or are they global variables?

They are certainly global variables and the only way to export data from one Lua chunk to another chunk. What I cannot tell you is whether they are a fixed location,
I suspect they are. As you know most Lua variables are dynamically allocated and throughout a session will be created and destroyed many times. As such the
'handle' for a given variable will vary, however my guess is that registers are fixed.

Craig

186
Hi,
I'm dubious that is the ESS, if there were a fault it would show up again and again. Remember the ESS sees a stream of numeric position data in 1 millisecond slices, It does not
know or care about whether its cutting a W or any other letter.

I would guess its the code rather than  the machine, an electronic or mechanical problem would show up at other times.

Craig

187
Mach4 General Discussion / Re: Tru Cut MACH3 Profile
« on: March 07, 2023, 09:05:40 PM »
Hi,
I'm not a plasma user, although a mighty great plasma torch would make short work of the garden.......but I'm sure plasma users would appreciate a conversational style
Gcode generator.

There is one feature that Hypertherm make a big thing out of, and me be even patented, called 'True Hole'. They claim that if you cut something like a bolt hole in a piece of plate
using True Hole results in the roundest most accurate hole God ever put breath into. I'm very sure if mach users had the opportunity to generate code which mimiced True Hole
they would be very happy.

Craig

188
Hi,
are you familiar with the placement of the switches inside the machine?

It was very common and still is, to have two limit switches per axis, naturally enough one at each end of the axis, and to use one of those switches as a Home switch
when homing but otherwise as a limit switch. This is perfectly acceptable even if it does not really go 'whole hog' such as I described on my machine.

I do reiterate the point that the most valuable use of switch is not  Limits, but rather Home switches. If you religiously Home your machine at startup and enable SoftLimits
then your machine will never cross over the boundary of your machine, ie the Limit switches will never be triggered.

My first mini-mill was like that, I had three Home switches only and thereafter relied on SoftLimits. It worked extremely well. I had three crashes in seven years and in every
instance it was my own fault. I always meant to get around to fitting Limit switches but never did. My new build mill is much bigger ans very much faster, 25m/min rapids,
and so I determined that I needed not only SoftLimits but Limit switches as well.

The reason I mention this is because Home switch can be anywhere in the machines envelope. Limits switches all but have to be at the extreme of travel, but not so Home switches.
Having said that its common to fit them near to one end of an axis, but not strictly required. For example my Home switches are about 10mm 'inside' the boundary. When the machine is Homed
the machine coordinate is usually set to zero at the Home switch position, but optionally can be set at a 'Home Offset'. In my case I make the Home Offest 10. So when the machine
is homed to the Home switch Mach knows that the actual boundary is a further 10mm away.

Being able to locate Home switches at any convenient location may often mean an easier placement, out of harms way, out of the coolant stream or whatever. It may also give you the oppurtunity
to design your Home switch installation that they not be damaged by over-run.

I use Omron roller plunger snap action microswitches for both Homes and Limits. They are high quality and have highly repeatable hysteresis, another matter where  I 'hop up and down a bit'.
I Home or Reference my machine (without the complication of Index Homing) within 0.02mm which is entirely adequate for most things.

https://nz.element14.com/omron-industrial-automation/z-15gq22-b/micro-sw-roller-plunger-spdt-15a/dp/1500340

Craig

189
Hi,

Quote
I have three Home switches, one for each axis, each on their own ESS input. I have 6 Limit switches, two per axis for all three axes, there again each on their own input,
for a total of nine inputs. Then Mach knows exactly which switch operated and what that portends.

I hasten to point out that I have been described as 'anal retentive over this matter'....which I think is rather unfair....I just like hopping up and down on the spot a lot!
I'm not drunk, I'm just holding up this lampost if you really want to know' (not original but a misquote of Tom Waits) ;D

Craig

190
Hi,
I hope I'm not belabouring the point or trying to 'teach my Grandmother to suck eggs' but we have a perfect example of one of Lua's strengths right here.

All Lua variables are a table. The syntax for addressing a table is the name of the table followed by a period followed by the name of the entry in that table.

I'm more familiar with FORTRAN and C and the elements of an array are sequentially numbered integers 0,1,2, etc. In Lua however an entry name may be a number or
a string and any mixture thereof.

As an example:

mc = the name of the table
X_AXIS = Name of an entry in the table
mcJogSetRate() = Name of an entry in the table.

Note the one entry, namely X_AXIS equates to just a number. in this case 0. The other entry, namely mcJogSetRate() is a function. Thus the entries in any given table
my be a mixture of strings, numbers or functions. Compare that to C where all elements in the array must be of the same type, say float.

This is a perfect example of the principle of 'a function as a first class value', that is to say a function can be bandied about as if its just a number.....extremely handy
and much of Lua's flexibility comes from use and re-use of that property.

The 'mc' table must be huge. Think of all the APIs like mc.mcJogSetRate() and the many hundreds like it, mc.X_AXIS and many dozens of other numeric assignments
including mc.ISIG_INPUT43 for example.

Again apologies for hijacking the thread but this property of Lua intrigues me greatly.

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 »