Hello Guest it is May 05, 2024, 05:56:07 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 »
1041
Mach4 General Discussion / Re: Mach 4 Spindle Issue - Stopped Working
« on: October 19, 2021, 01:29:07 AM »
Hi,

Quote
Since doing this it seems Mach4 now has no feedback as to what the spindle RPM is.

How is Mach supposed to know how fast the spindle is going? It knows that its been commanded to go to 15000 rpm say, so it produces
PWM to suit, but it has no idea whether the speed has been reached or exceeded.

Any setting like the '90% of target speed' that relies on some measurement of speed is going to fail UNLESS you provide that measurement.

If you really want to know what the spindle rpm is then you'll have to supply an encoder or a index signal on the spindle, the ESS will detect
this signal and feed the information back to Mach. Then Mach would have an exact speed measurement to display. The ESS can also accept the feedback
and vary the PWM a little under a PID loop.

Do you really need it?. For years and years we used manual mills and lathes and they never had spindle speed displays and yet we still did plenty
of good work on them, so why the insistance  on knowing exact spindle rpm now?

There is another possibility which may allow you to pause until the spindle is up to speed. There is an input signal in Mach....ISIG_SPINDLE_AT_SPEED.
Note this is a signal defined in Mach....it does not do anything UNTIL you hook it to some external signal source, its just a convenient definition at the moment.
Most VFDs can be programmed such that one of  their digital outputs goes high when the spindle is at its commanded speed. Now you can program the drive,
hook the digital output to an input on your BoB/ESS combo, and then logically attach the pin to ISIG_SPINDLE_AT_SPEED. Then you can use that signal
to program Mach.

Quite frankly it seems like a lot of messing around just to save a second or two on the spin-up time of the spindle. My spindle winds up to about 18000rpm
in three seconds and gets to 24000rpm in 4-5secs, so I program:
m3
g4 p3
and that gives me a fixed time delay which is good enough for me. I have lots more important things to do on my machine and even more important things
I need to do WITH my machine than worrying about this.

Craig

1042
Mach4 General Discussion / Re: Mach 4 Wont save Configuration
« on: October 18, 2021, 04:04:57 PM »
Hi,
the ESS plugin can be a bit confusing and most likely the cause of the fault.

The first step in assigning any new input or output must be done in the ESS/Ports and Pins tab.
For instance lets say you wish to use Port2Pin10 for a probe. Then assign P2Pin10 in the Ports&Pins
and give it an alias, say ManualProbe.

Now, still within the ESS plugin, go to ESS/Inputs tab and scan down until you find the ISIG_PROBE input.
Enable it and select the port/pin input with he alias you chose earlier. Then close the ESS plugin.

This is where the ESS plugin is a bit cute and can confuse. In the native Mach Control plugin for the probe to be enabled settings have to be
made there also.....but the ESS plugin does that automatically. I can't remember all the situations where the ESS does this, but quite a few,
there are however quite a few settings you make in the ESS plugin which are NOT automatically set in the Control plugin. My recommendation
is therefore to open the Control plugin, go to the Inputs tab and confirm the the ESS plugin has correctly updated the Probe signal entry.

What you don't do is set the Control plugin directly.....because the ESS plugin will overwrite your setting or maybe the two settings are
mutually contradictory. The correct way is to allow the ESS to make the setting. The only time that is not true is when that facility is not
available to the ESS plugin....which admittedly is a reasonable list.

The last issue is when the new settings are flushed to the .ini file. It should in theory happen each time you close the plugin, be it the ESS plugin or
the control plugin, but it does not always happen that way whatever the theory is. If you want to be 100% that your new settings will be flushed
to the .ini file then close Mach and re-start.

Craig

1043
Mach4 General Discussion / Re: Mach 4 Spindle Issue - Stopped Working
« on: October 14, 2021, 03:34:19 AM »
Hi,
yes it is possible but you have to tie the 0V VFD to the 0V of the G540, ie the VFD CANNOT be galvanaically isolated from the BoB.
Most operators want, and spend considerable effort to ensure, that the VFD is isolated from the BoB.

Craig

1044
Mach4 General Discussion / Re: Mach 4 Spindle Issue - Stopped Working
« on: October 12, 2021, 10:56:39 PM »
Hi,
Mach4 has signals which are active or not but does not control the VFD. Its the motion controller and particularly the BoB that actually interacts with the VFD.

A set of relay contacts is quite useful for controlling a VFD. The contacts are galvanaically isolated from the BoB and they are polarity insensitive.
Most BoBs have a transistor output and so the VFD 0V and BoB 0V must be commoned together. Also the collector, aka the BoB output, can go down to
VCESat, say 0.1 to 0.5V above ground. It maybe that the VFD input requires a 0V input or VERY close to it and a saturated collector-emitter
junction is just not quite low enough.

Craig

1045
Mach4 General Discussion / Re: Mach 4 Spindle Issue - Stopped Working
« on: October 12, 2021, 12:06:27 AM »
Hi,
most VFDs have an on/off input, usually from the factory from the touch panel on the VFD. Likewise the primary frequency source is from the touch panel.
Its necessary therefore to change the internal VFD settings such that the analog voltage input is the primary frequency source and the digital input
be the primary on/off signal.

Craig

1046
Mach4 General Discussion / Re: Mach 4 Spindle Issue - Stopped Working
« on: October 11, 2021, 10:01:35 PM »
Hi,

Quote
So you are stating I should check that the G540 is outputting a PWM signal and turning the spindle on & off. How do you check? With a multimeter?

Yes.

Quote
Should the "Spindle On" output be used in the ports and pins configuration on the ESS or just the Spindle PWM?

Both. Most spindles require an ON/OFF signal in addition to the 0-10V PWM. I assume you have programmed your VFD to accept voltage
PWM as primary control source?

Quote
Should the "Spindle On" output be used in the ports and pins configuration on the ESS or just the Spindle PWM?

On the G540 the SpindleOn input and PWM input are on specific pins. Have you assigned the ESS port  and pin the match the G540 input?

Craig

1047
Mach4 General Discussion / Re: Mach 4 Spindle Issue - Stopped Working
« on: October 11, 2021, 09:31:20 PM »
Hi,
how and with what signals are you turning on the spindle? Have you tested the output pin of the BoB to make sure its changing state?
How about the PWM? Is it establish a vary DC voltage at the output of the BoB?

Craig

1048
Mach4 General Discussion / Re: Mach4 crashing while running code
« on: October 11, 2021, 03:28:13 PM »
Hi,
if you are running an ESS then if it runs out of data it produces an error window. You would know if this were the case.
Even a run out of data fault should not crash Mach, the machine will stop certainly but Mach itself should not crash.

I would guess therefore that it's Windows which is crashing.

I run a dual core Atom single board PC to run my machine, and it has no CPU fan. A couple of times over summer I've had the PC stop,
presumably an overheat situation.

Logging is on the Diagnostics tab.

Craig

1049
Mach4 General Discussion / Re: Mach4 crashing while running code
« on: October 10, 2021, 11:42:05 PM »
Hi,
you are going to have to run a log and save it into a file.
I would guess that your controller is running out of data. Most controllers signal a 'Run Out Of Data' error.....what controller are you using?

Craig

1050
Mach4 General Discussion / Re: Mach 4 Spindle Issue - Stopped Working
« on: October 10, 2021, 11:39:08 PM »
Hi,
looking at the log suggests you are using the ESS PID? Why? Do you need it?

In the first instance I would try just open loop, when you can get that to reliably operate THEN have a go at PID.

This is from your log:

Code: [Select]
2021-10-10 19:50:32.828 - >>> ESS: Spindle PID Activated.  Kp = 0.0000    Ki = 0.0000    Kd = 0.0000
If you have Kp, Ki and Kd all set to zero its no bloody wonder the PID loop won't work!

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 »