Hello Guest it is March 29, 2024, 11:55:31 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 »
5581
Hi Hakan,
to my knowledge you cannot use a VFD either V/F or sensorless vector mode to achieve position control. I don't think an encoder will help, my Delta VFD can use
an encoder, Delta call it a pulse generator, to get really good speed control but its still not capable of position control.

You need a decent AC servo and drive. I know they are expensive but once you get one you'll never look back.

Craig

5582
General Mach Discussion / Re: CNC Mach3 4 Axis USB MPG Pendant
« on: January 03, 2018, 07:49:39 PM »
Hi,
I use an iMach P1A from VistaCNC, initially with Mach3 and when the new Mach4 plugin became available I've used it in my Mach4 installation.

Only ever had any bother with it, I thought I had fried it, my fault, 130Vac leakage current back through the pendant to ground.....ouch! Was happy to send
it to them for repair but they believed it was a software corruption fault rather than hardware, they supplied fresh firmware and I was back in business.
I was absolutely delighted with their after sales service.

Whatever premium I paid to get a US made device has proved its worth.

Craig

5583
Hi,
if one or more of the IGBTs have failed (shorted) then at turn on the inrush current will blow the input rectifier and/or the precharge circuit.

If I were repairing it ( I fix welders, inverter welders particualrly for a living) I would try to disconnect the DClink voltage from the IGBTs to see wether the input
rectifier, precharge and link capacitors are ok. Would also tell you wether the flyback inverter is still running. The flyback inverter is responsible for all the DC
auxilary voltage including the fan.

Craig

5584
Hi Martin,
no there is to my knowledge no signal like that. Enabled is a 'state' not a signal.

I suspect that Estop causes Mach to disable but I would also suspect that you cannot change outputs for instance when Mach is in Estop. You can however
change outputs when Mach is disabled as the little piece of code establishes. You could monitor a signal including ISIG_EMERGENCY and have it disable Mach,
change the required outputs AND THEN Estop. If however you allow the internal function to proceed the machine will Estop before you can set the outputs.

You will in effect have to monitor the Enable state.

Craig

5585
Hi,
I tried this small piece of code:

Code: [Select]
function m100()
local inst=mc.mcGetInstance()
local hsig=mc.mcSignalGetHandle(inst,mc.OSIG_OUTPUT1)
mc.mcSignalSetState(hsig,1)
wx.wxMessageBox('enabled, output set')
mc.mcCntlEnable(inst,0)
mc.mcSignalSetState(hsig,0)
wx.wxMessageBox('disabled, output reset')
end
if (mc.mcInEditor()==1)then
    m100()
end

It seems to work. In order to run m100 as MDI mach must be enabled. Output#1 is set as seen on the machine diagnosics page and the message box is displayed.
When the message box is dismissed then Mach disables AND THEN Output#1 is reset and a new message box is displayed.

It would appear therefore that you could indeed monitor Machs Enable state and on Disable set/reset outputs at will despite Mach being disabled. Nifty!!

Craig

5586
Hi Martin,
that idea will work, the signal is ISIG_EMERGENCY. If you include it in your signal library you could easily set/reset outputs.

What happens in other situations is not clear. For instance if a limit switch goes active it is common for Mach to stop and disable. Whether that is the same as an
Estop I don't know but if it is then your outputs would not be set/reset as you desired because it was a signal OTHER than ISIG_EMERGENCY that caused it.

There are a couple of API calls that may be of use:
Quote
rc = mc.mcCntlEStop(
   number mInst)
which allows you to invoke an Estop programatically.

Quote
rc = mc.mcCntlEnable(
   number mInst,
   number state)
which allows you to enable/disable Mach at will.

Quote
mcState, rc = mc.mcCntlGetState(
      MINSTANCE mInst)
which allows you to read Machs state at any given time.

It should be easy enough to monitor signals like ISIG_EMERGENCY or maybe others signals which you have attached to screen buttons or physical switches
and they could directly cause the outputs to change in a manner that you determine. In addition it would be necessary to monitor Machs state to see if some other
event caused Mach to disable, like a limit event. The problem would be that once you detect Mach has been disabled its too late to set/reset outputs....I think!

My suggestion would be to experiment with some cut down code to determine what if any functionality remains active when Mach is disabled. If this phase/mode of
operation still allows you to set/reset outputs at will then the most problematic part of your proposal will achievable.

Craig

5587
Hi,
what sort of axis drivers are you using?. You mentioned 'servo' and its quite likely that it will require 0V/24V inputs. It would explain why your board can't cause
the driver to reverse.

Craig

5588
Mach4 General Discussion / Re: script for limit switch override
« on: January 02, 2018, 08:15:26 PM »
Hi,
if you have a look on the 'Edit Screen' page for the 'Axes Limit Override' button on the jogging tab it will list 'Limit OV On' as down action and 'Limit OV Off' as up action.
Note that these are both builtin functions, you can't see or edit the underlying code. All you can do is turn it on or off. Even if you were to write your own script
the built in functions will still be operative and may cause your script to fail.

Imagine the builtin OV function is Off then any limit switch activation will cause Mach to stop and disable according to its internal function. This would occurr even if
your script specified a different behaviour. In a sense the builtin function would operate in parallel to your script.

If you write a script and require that it determine the behaviour of the machine then the internal function must be in such a state that it does not override your function,
namely 'Axes Limit Override' = ON. Now the builtin Mach limit functions are inactive and you can determine the machine behavior with a script.

I would suggest that you monitor the limit switch inputs with entries in the signal script and on a limit event:
1) Ignore the event, ie your machine is in limit override mode  or
2) Issue a Feedhold and/or a Disable command and/or restrict jogging moves to those appropriate to recover from the over limit excusion.

Further I would suggest that this behavior be conferred to Mach at start up and remain throughout the session ie YOUR script is now the sole determinant in
machine behavior when a limit event is detected. This would include things like disabling axes or restricting jog moves to those neccessary to bring the machine
back into bounds rather than further away. Your script must therefor be complete and robust for it will assume an important protection function from Mach.
Are you ready to code such a script?

I have scanned the API and can find no instruction which sets the Limit Override status either. I will defer to other more experienced Lua programmers before I
claim that as fact however. Notwithstandind a direct API instruction it would still be possible to have a script assume limit event control of your machine.

Craig

5589
Hi,
thats a very interesting problem, and I would only be guessing, and guessing poorly if I tried answering it.

If I understand your workflow you wish to execute Gcode until an M6 occurs whereon it will pause until you have jogged to your probe position
then execute a G31.

When the Gcode halts because of an M6, ie File Macro Hold state, the gcode interpreter is still active. OK so it maybe halted but its still active. What you
wish to happen is the GUI assume control so you can jog to a location. Either the Gcode interpreter or the GUI can run but not both at once.

I think that you will require a coroutine approach where the Gcode interpreter yields on File Macro Hold to the GUI and the GUI resumes the coroutine
when the jogging is done and the Gcode interpreter is required to execute the G31.

If you haven't seen Daz-the-Gaz latest vid it is on coroutines and is a 'must see' for any Mach4 coder. It also represents the extent of my knowledge about
coroutines....very VERY basic. I do get the idea though that the Gcode interpreter and the GUI are separate LUA chunks and a means of transferring back and forth
between them is required.

Craig


5590
Hi,
as a result of your post I too had a closer look at the ini file and found entries for motor 32-44.

Using wx4.set and either Sim or ESS as plugin there is no way I can access those motors. My guess is that they exist within Machs core but have never
been included in any of the current plugins.

Consider that there are signals defined, for instance Motor21++, and Motor21-- but no such thing as motor21 is available to us....yet
To my knowledge Mach offer six axes of co-ordinated motion and six unco-ordinated or out of band axes. You could have multiple
motors assigned to one axis but in essence that is still only 12 motors. Yet Mach is provided with complete signal suites up to 32 motors
and your discovery suggests even more. I presume that all those extra motors represent potential expansion.

You may have seen that the top model controllers from Siemens and Fanuc offer 40 and 28 co-ordinated axes. I can't really envisage a machine
that would require that many motors. I imagine they would find application in a factory environment where a machine is extended over a number
of sub-processors all of which contribute to 'one machine process', semiconductor manufacturing maybe.

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 »