Hello Guest it is April 26, 2024, 11:22:13 PM

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 »
2321
Mach4 General Discussion / Re: Having trouble with Probing
« on: July 06, 2019, 08:15:54 PM »
Hi,

Quote
Is there a plug-in I need to enable or disable, a file somewhere that isn’t automatically updated with an updated install?

No, I don't think so.

Notwithstanding your efforts to immunize you machine from noise I still suspect that it is happening.

May I suggest a simple experiment. If you write a small script, or easier still just a couple of lines in the MDI panel
and you can probe. What this means is that the software of the TouchOff module is not involved at all. If there remains
a problem then its more hardware. If there are no probing problems  encountered then its the software of the module.

Jog the machine to above, 1/4 inch or so above a surface to be probed. Zero the z axis. Code into the MDI panel
g31 z-1 f10
g0 z0

If you execute I would expect the probe to descend at 10 inch/min until probe strike. Thereafter it should return to the same
height (ie 1/4 inch approx.) that you started. If the machine cannot do this repeatedly and consistently then no amount
of software in the probing module is going to help.

Craig

2322
Mach4 General Discussion / Re: touch probe function question
« on: July 06, 2019, 07:26:55 PM »
Hi,
its in the Mach4Hobby/modules directory called mcTouchOff.lua, all 292k of it. Enjoy!

Craig

2323
Mach4 General Discussion / Re: Having trouble with Probing
« on: July 06, 2019, 06:01:19 PM »
Hi,
I use the probing module a lot without problem.

Quote
sometimes when I try to do a simple Z probe the Z axis goes Up instead of down, and not even by the amount I have it set to go down by.

One possibility to consider is noise on your probe signal line. When you manually touch the probe none of the motors are running.
When you are probing they are running and could be producing a spike which is recognized by Mach as a probe event.
Try in the Pins Config of the ESS plugin introducing some noise filtering, a value of 100 is a fair place to start. A 0.1uF capacitor
on the probe input of your breakout board is another simple experiment along the same lines.

Quote
Trying to probe an X/Y corner, using the default 0.25" setting will send the probe off along the Y axis until I force it to stop

The only thing I can suggest is that the probing module assumes that your machine follows the right hand rule with regard to
axis directions. If your machine is not configured that way then you would have the trouble you have described. Ther is
a video by NFS that shows the right hand rule, I will try to find it and link it to you.

Craig

2324
Mach4 General Discussion / Re: touch probe function question
« on: July 06, 2019, 05:38:18 PM »
Hi,

Quote
If I understand you correctly, there is no mechanism to do the same in Mach 4 without modifying the code.  Is that correct?

In the strictest sense that is correct. The probing 'move' is g31. It does not back off. It behaves the same in Mach4 as in Mach3.
In order to probe materials requires a short sequence of moves, a g31 to move to and probe the surface and then another
move to back off.

You can if you wish code these yourself but you don't have to, there are many 'scripts' where the code is already written.

The Touch module in Mach4 is a great example, and much improved over any of the Mach3 probing routines.

Craig

2325
Hi,
they operate so similarly that it doesn't matter.

Yes you can operate Mach3 and Mach4 on the same PC with the same motion controller, a 57CNC for example.

Craig

2326
Hi,

Quote
The need is to use a bipolar + & - 10v analog signal from two Mach4 DRO axes to tell the servos to move.

Why do you need analogue voltages?

Most modern servos can still be driven by an analogue voltage but that requires a feedback capable motion controller.
In this setup the encoder is still hooked to the servo drive, as I explained earlier the encoder is required by the drive
to compose it output. The encoder, or some derived signal from it, is outputted to the controller. The controller
closes the loop. The controller outputs a precision analogue voltage and the servo turns at a speed determined by the
voltage. The servo is in velocity mode.

The same servo could be in position mode. In this set up the position is commanded by Mach4/Galill as a series of
step/direction pulses. The servo drive accumulates those pulses and therefore knows where is it supposed to be.
It compares where it supposed to be to where it actually is (by the encoder) and drives the servo accordingly.
The PID tuning is done entirely within the servo drive. The controller has no need of the encoder signal at all.

If  Mach4 decides that it needs to drive an axis 100mm in the +direction it will plan the trajectory as a series of
P(osition)V(elocity)over T(ime) data packets in 1 ms slices. The motion controller will convert the PVT data to step/direction
pluses for all servos.

At the beginning of the move Mach will plan to accelerate the axis smoothly before reaching it ultimate speed. The servo
and drive are assumed to be capable of the acceleration and ultimate speed required. If the servo can't keep up with the
planned trajectory then the drive will fault 'following error'.

In this way Mach4/Gallil are an open loop controller only. It provides the trajectory which is converted to step direction pulses
and the servo just goes there. If it can't it will signal that with a following error fault. This is a more modern control setup. It means
that the motion controller does not have to be feedback capable. The only feedback capable controllers that work with Mach4
(Gallil, Hicon Integra, CSMIO/A) are all expensive, the cheapest is 600Euro. By comparison the plain open loop step/direction
motion controllers (Ethernet SmoothStepper, UC300, UC00, UC100,57CNC, 57CNCdb25,PMDX-411, PMDX-242) range from
$120 to $250.

The Ethercat solution which is being developed for Mach4 requires two pieces of software for your PC only. RTX64 by
Interval Zero provides a realtime core capability to your non-realtime Windows PC and KingStar provide the plugin
that makes Mach4 an Ethercat Master. The servo drives (all Ethercat slaves) are connected by a daisy chain of Ethernet
cables.......and that's it. No expensive hardware controller required!

You may have noticed that you can hook limit switches to your drive, you don't have to hook them to the controller at all.
The servo drive is smart enough to handle that. It is in fact a required feature that any servo drive must be able to do
if it is ever to be Ethercat slave capable. That is to say that the servo can act autonomously.

Craig

2327
Hi,

Quote
but with these Kollmorgen AKM servos, can they work properly without the encoder signals connecting back to the S200 drivers?

I'm not familiar with Kollmorgen servos, my experience is with Allen Bradley servos. I suspect that the servos would not, in fact
could not operate without the encoders connected and working.

Leave aside for the moment that how would the drive know when to commutate the stator windings but without the encoder the
drive has no means to determine the rotor position so it cannot then calculate the phase currents necessary to produce
a stator field in phase quadrature to the rotor and produce torque thereby.

It is absolutely fundamental to Field Oriented Control AC servos that the rotor position is known to the drive, be it an encoder
or a resolver. Without rotor position there can be no quadrature stator field. Texas Instruments do a truly excellent
video on Field Oriented Control.

https://www.youtube.com/watch?v=cdiZUszYLiA

Modern servos ABSOLUTELY require a matching drive. As such the motion controller can just be open loop step/direction,
it need not be a feedback controller. The servo and servo drive manufacturer does a superb job of matching the servo
and drive feedback loop. In all fairness they do a better job of it than you or I can do and exceed the capabilities of even
top motion controllers like Gallil.

My Allen Bradley servo for instance has thermal parameters such that the drive can model the thermal performance of the
servo. Even more amazingly the servo has piecewise linear magnetic coefficients so the drive can model magnetic saturation
effects which incidentally feed into the thermal model. Such sophistication of thermal and magnetic modeling is
just that much more advanced than any motion controller.

The trend in CNC is that servo and servo drives are getting smarter and smarter.

Once upon a time servo drives were just amplifiers. The motion controller monitored the encoder/resolver; enacted the
feedback loop and outputted a precision analogue voltage to the servo amplifier. The servo drive was dumb, or maybe had
a velocity feedback loop at best.

More recently servo drive itself monitors the encoder/resolver, enacts the feedback loop and drives the servo directly. The motion
controller need only be open loop step/direction type. Think Mach3 and Mach4. The servo drive now has all the feedback
tuning including the thermal and magnetic modeling I've already mentioned. The servo drive is smart.

More recently still with Ethercat, Profinet, CANOpen and others the servo drives are becoming motion controllers in their
own right. Thus you don't have a motion controller at all, your PC becomes the trajectory planner and is the
Ethercat master while each of the Ethercat slaves (each servo drive) does it own motion control. This is called 'distributed
motion control'. It IS THE COMING THING. The servo drive is now smarter than the controller!

When you log onto the Mach forum you may have noticed a video of a Matsura VMC doing a job. What you may not have noticed is
the Mach4 is the trajectory planner with KingStar/Interval Zero RTX64 providing the software to make Mach4 and the PC
an Ethercat master. So that Matsura is running WITHOUT A MOTION CONTROLLER!!!

The days of sophisticated feedback controllers like Hicon and Galill are numbered, why would you bother with expensive
realtime hardware when you just need a little extra software and some Ethercat capable servos?

As I said, the trend is for servo drives to get smarter and smarter......what happens next???

Craig

2328
Hi,
I thought it would be a good idea to run Mach3 and Mach4 on the same PC with my Ethernet SmoothStepper.
What actually happened is once I started using Mach4 and realized how much leaner and cleaner it was I've never used
Mach3 since. So much so that when I accidentally lost my Mach3 lic.dat file I didn't bother trying to replace it.

Craig

2329
Mach4 General Discussion / Mill Profile Initialisation String
« on: July 05, 2019, 09:13:14 PM »
Hi All,
I am struggling to find the code that results in the initialization string that occurs in my mill profile.

In particular I wish to delete the G54 from the list. I have scanned through the machine.ini file and not found anything
that appears to be the init. string.

I am aware that I can provide my own init. string in Machs Control plugin but I still want to delete the G54. The correct
work coordinate set will provided by a script and may well vary between sessions. Therefore a fixed initialization string
as the one in the Control plugin is not suitable.

Craig

2330
Mach4 General Discussion / Re: PMC Help
« on: July 05, 2019, 09:00:35 PM »
Hi,
I think that you would have more success if you looked at the spindle API instructions.

You have changed the state of a signal (OSIG_SPINDLEFWD) which presumably is hooked to your spindle driver
and I would expect it to turn the spindle on. Does not 'spindle forward' imply that the spindle must also be turned on?
I suspect that Machs internal logic may be counteracting your intention.

May I suggest that you experiment with output signals 0 through 5; you can be assured that some internal logic is not
interfering with your desired sequence of operations. Secondly using those particular out siganals mean that the six LEDs
on the MachineDiagnostics tab display the signal current state.

It may well be that as a result of your experimentation you can shift the output signals to say #20-#22 say; leaving
#0-#5 free for 'playing with' later on. Or better still you may be able to unravel how Mach uses and interprets the
OSIG_SPINDLEFWD, OSIG_SPINDLEREV and OSIG_SINDLEON signals.

What you want is to set the spindle direction, a flag or variable, without also turning the spindle on. These APIs may help.

Code: [Select]
rc = mc.mcSpindleSetDirection(
number mInst,
number dir)

Description:
Set the desired spindle direction.

rc = mc.mcSpindleSetDirectionWait(
number mInst,
number dir)

Description:
Set the desired spindle direction and wait for the spindle to come to speed. The function will wait for up to 20 seconds before returning MERROR_TIMED_OUT.

The type of spindle wait is determined by the system configuration.

I confess that I don't know whether these will achieve the result you want. Does for instance setting the direction flag ALSO
cause the spindle to start? Some experimentation is in order.

No matter the result of the experimentation and whether a particular API works or not you need a logical set of steps.
I envisaged a logical structure something like this:
m3
1) if the spindle is stopped then turn it on CW.
2) if the spindle is on and in CW rotation....ignore m3
3) if the spindle is on and in CCW rotation......stop the spindle.....delay....start the spindle CW

m4
1) if the spindle is stopped then turn it on CCW.
2) if the spindle is on and in CCW rotation....ignore m4
3) if the spindle is on and in CW rotation......stop the spindle.....delay....start the spindle CCW

m5
1) if spindle is on....turn it off....delay before resuming operation
2) if spindle is stopped....ignore m5

If this looks reasonable to you THEN you can start looking at various APIs, macros, PMC scripts or whatever to enact
the desired scheme.

Quote
Also I couldn't find a good way to put a delay in, didn't want to use the wx, call..

Why not?

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 »