Hello Guest it is May 04, 2024, 10:58:55 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 »
6501
Mach4 General Discussion / Re: Mach4 Spindle At Speed, Spindle Zero Problem
« on: September 30, 2017, 02:53:28 PM »
Hi,
first you need to add the two signals into the signal library, its a table called SigLib in the screen load script, add the following:
Code: [Select]
[mc.ISIG_SPINDLE_AT_SPEED] = function (state)
    if (state==1) then
        AtSpeed=1
    else
        AtSpeed=0
    end
end,
[mc.ISIG_SPINDLE_AT_ZERO]= function (state)
    if (state==1) then
        IsStopped=1
    else
        IsStopped=0
    end
end,

This allows you to use AtSpeed and IsStopped global variables throughout Mach. If you have a look at the bottom of page 9 and the top of page
10 of the LUA Scripting Guide in your Mach4 Help Docs you will see that Mach4 has built-in m3, m4 and m5 which cannot in fact be altered. What
you can do is write your own m3, m4 or m5 and Mach will execute your script instead. Any functionality in Machs internal script will have to be duplicated
in your external script in addition to whatever extra 'fruity bits' you want to happen.

Next little trap is that you should name your scripts with lowercase m and the script number without leading zeros. Thus M03 is likely to result in error
whereas m3 will be fine. Remember if Mach doesn't find your script it will use its own, if you name your script badly it may miss the fact that its there.

I will gather some more info and comeback with some suggestions.

Craig

6502
Mach4 General Discussion / Re: Mach4 Spindle At Speed, Spindle Zero Problem
« on: September 30, 2017, 01:36:53 PM »
Hi,
the desired behaviour is that the machine wait until the spindle is up to speed before setting off on its moves.

The machine must therefore measure the spindle speed and compare it against its programmed speed, that is the meaning and use of
'Wait on Spindle to Stabilise' and 'Percentage' entries on Configure/Mach/Spindle page.

If you don't want to use that functionality then use Spindle Up To Speed signal. It is as it stands just a predefined signal, it doesn't do anything.
If you wish it to do something then YOU must program that something.

It certainly is possible to modify the existing m3,m4 and m5 scripts.

I think it will be necessary to add the two signals to the Signal script.
Then have a delay in m3,4,5 until the signal state is true.

If you haven't done any programming in LUA then I suggest
https://www.lua.org/pil/contents.html

Craig

6503
Mach4 General Discussion / Re: Mach4 Spindle At Speed, Spindle Zero Problem
« on: September 30, 2017, 05:54:45 AM »
Hi Hakan,
I don't know for sure but I believe Mach4 is expecting some sort of feedback pulse and it uses that pulse stream to calculate the
actual spindle speed and display it.
Quote
droTrueSpindle
the name of the DRO in the upper lefthand corner of the Spindle block of controls.
I've yet to find any code that describes how the DRO is updated, I think its part of Machs core nor have I worked out how a pulse input is directed
to the module.

Without some sort of pulse feedback how could Mach ever know the actual spindle speed, it's almost sure that it will differ from the programmed speed.
Exactlty how the signal is assigned and the calculations done I don't know yet.

My understanding is this is the primary method Mach uses to monitor the spindle. I imagine it could be modified to reflect the available input data,
so it could accommodate an index pulse once per rev or an encoder of hundreds of pulses per rev. I note that many VFDs have programmable outputs
to simulate an encoder. Further I note that VFDs can output an analogue voltage equivalent to spindle speed. While direct monitoring of spindle speed
may be the primary method there are alternatives.

The input signals Spindle at Speed and Spindle at Zero are inputs which have been predefined in Mach. The Probe signal is another predefined signal
but it maybe your machine doesn't use it and therefore has no input pin assigned to it. Because Probe is such a widely if not universally used input
it makes sense to have a signal name defined. It analogous fashion the two signals you're talking about are available on just about every VFD and so
make useful candidates as predefined signals.

In your case given that you have wired the controller inputs with these two signals you can assign Mach predefined signals and then use those signals to
effect behaviours you wish, for instance triggering delays in the m3/m4 and m5 scripts. You are already half way to achieving the behaviour you want or
you could abandon that approach and use the more conventional pulse monitoring approach above. May I suggest that you complete the control solution
you've already started. It will require some code additions to m3,m4 and m5. Once you have that operational then you might consider the other approach.
I think that a lot of the required functionality required to make the pulse approach work are already included in Mach and really only requires
settings to be made for it to work. You could then compare the two ideas to see which is best and learn a bunch about Mach/LUA as you do so.

Craig

6504
Mach4 General Discussion / Re: probing problems
« on: September 29, 2017, 06:57:25 PM »
Hi Chaoticone,
always forget that the most active contributors to the forum actually develop Mach 'in their spare time' like.

You wrote the probing module, kool, very kool, but don't you have other and better things to do? You poor sick little puppy! LOL

Craig

6505
Mach4 General Discussion / Re: Mach4 Spindle At Speed, Spindle Zero Problem
« on: September 29, 2017, 06:51:55 PM »
Hi Hakan,
can you confirm that the spindle setup tab you are looking at is Configure/Mach/Spindle?

If so I think you are misinterpreting the setup you are making. If as you say you've checked the 'wait to stabilise' setting then Mach will be looking
for some spindle feedback to determine whether the speed has in fact stabilised. I expect that Mach is looking for an index pulse or encoder pulse stream.

You have signals from the VFD to indicate whether its up to speed or when stopping that it is stopped. Could you not take the m3/m4 macros and add code
to delay until your upto speed signal comes true? Likewise your m5 script could wait until your stopped signal comes true before returning to the calling
program.

Craig

6506
General Mach Discussion / Re: Calibration CONSTANTLY Changing
« on: September 29, 2017, 06:30:49 PM »
Hi,
last thing....at the moment anyway...is 'don't keep changing the calibration'. You said you calibrated the machine and then cut a 6x12 rectangle
and it came out right, then the calibration must be correct. If subsequently you cut a shape and its comes out at the wrong size it could be that
Mach and the PC have forgotten what the hell its supposed to be doing...extremely unlikely or something else is happening. By changing the
calibration you've added another variable, I understand your desire to have a shape come out the right size but continually changing the machine
settings is masking the real problem.

Try cutting the same shape several times, they should all be the same right? If there not you have something to investigate.

Craig

6507
General Mach Discussion / Re: Calibration CONSTANTLY Changing
« on: September 29, 2017, 06:21:55 PM »
Hi,
second question...how is the motor rotation converted to linear motion? I noted that you said that your machine
Quote
rail system with rollers (no belts).
Does that mean that one or more of the rollers is hooked to the axis motor and the roller engages the rail and moves the axis backwards
and forwards? If that is the case then I would be investigating slippage between the roller and rail, it must be pretty dramatic to give you
the variations you've described.

Craig

6508
General Mach Discussion / Re: Calibration CONSTANTLY Changing
« on: September 29, 2017, 05:57:59 PM »
Hi,
can you try cutting a few different shapes, without re-calibration in between, but without the plasma running?

I just wonder if electrical noise could be causing what you describe.

Craig

6509
Mach4 General Discussion / Re: probing problems
« on: September 29, 2017, 05:35:25 PM »
Hi Chaoticone,
very clever bit of guessing...would explain symptoms to a tee.

Craig

6510
Mach4 General Discussion / Re: System Requirements for Mach4
« on: September 29, 2017, 03:05:45 PM »
Hi,
yep, should do nicely and at a good price too.

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 »