Hello Guest it is April 23, 2024, 07:33:32 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 »
2581
General Mach Discussion / Re: Slaving closed loop stepper motors
« on: April 19, 2019, 09:20:01 PM »
Hi,
you are right that certainly sounds weird and I don't have any bright ideas.

If you were to consider buying something new then GET AC SERVOS. Those DMM's that I linked to earlier will blow
your mind. Steppers are Ford Model t's, servos are  2019 model sports cars.

Craig

2582
General Mach Discussion / Re: Slaving closed loop stepper motors
« on: April 19, 2019, 08:32:52 PM »
Hi,
I am intrigued that you should replace open loop steppers that work with closed loop steppers that don't.

As you have discovered close loop steppers can lose steps just like open loop steppers and for exactly the same reasons.
While it is true that if unloaded a closed loop stepper will try to correct itself but is loaded it will try and probably fail,
I mean if it lost a step because of overload at speed then why should it respond any more favourably to another pulse
inserted in the pulse stream to correct it?

If you are going to replace steppers you should go for AC servos....no shagging around with steppers. Good AC servos
have come down in price and will wipe the floor with any stepper open or closed loop.

http://www.dmm-tech.com/

Does the stepper driver have a programmatic 'following error window'?. That is if the required position deviates from the
actual position it triggers an error. Some latitude between the two ( actual vs commanded) is required. If the demand is within
a few steps then the drive is highly likely to fault 'following error' whereas if the window of latitude is 50 to 100 steps then
it probably wont fault but at the expense of accuracy.

It may be that the window is set too wide and therefore accumulated error is causing the drift in position but still be less than
the error window.

Craig

2583
Mach4 General Discussion / Re: Step pulse duty cycle
« on: April 19, 2019, 06:50:02 PM »
Hi,
well it certainly sounds like you have experimented enough and have the calculations well in hand.

As I stated in my previous post that it is unrealistic to expect better that 400 step/rev resolution from an open loop
two phase stepper. You can set a microstepping regime with apparently far better resolution but that theoretical
resolution is not actually obtained. There is a sound explanation for that....but I would not, unless you require it,
regurgitate the reason for it.

A closed loop stepper is still a stepper with all the limitations of a stepper, reducing/vanishing torque at high speed.
A closed loop control system does not prevent that. For this reason I do not recommend that the premium paid
for closed loop steppers as opposed to well engineered open loop steppers and drivers.

One area where closed loop steppers do offer an advantage is resolution.
An open loop stepper can reliably be at either a full step position or a half step position. A half step position occurs when
both phases are energized and the resulting magnetic field 'drags' the rotor to a position midway between the two
full step magnetic poles on either side.

A closed loop stepper enjoys a distinct advantage in this regard. Should your required motor position required  to be
14% CW of the last full step position (therefore 86% away from the next full step position). As a guess you would reduce the
phase current in the 'leaving' phase  to 86% of max and increase the current in the 'arriving' phase to 14% of max.
It is almost inevitable that the rotor will not achieve its 14% position as required. However it actual position is measured by
the encoder and therefore signaled to the driver. Thus the driver will adjust the current balance between its two phases
such that the rotor indeed achieves its desired position. It may require a current distribution of 84% and 16% respectively.

This constitutes the sole major benefit of a closed loop stepper. The question obtains 'does the increase in resolution
justify the expense'

Lets compare open loop resolution vs closed loop.

Open loop at half step, resolution = 400 step/rev, with a 5mm leadscrew resolution = 0.0125mm or 12.5um
Closed loop (Leadshine encoder 6000ppr encoder) =6000 step/rev, with a 5mm leadscrew =0.833um

Clearly close loop has an advantage....but the minorest amount of backlash or flexure and that resolution is wasted.
Unless you have the need, and are prepared to build a sufficiently rigid machine with backlash free components, I would
recommend open loop steppers and drivers.

If you go that way you absolutely MUST buy steppers with low inductance, its as important as holding torque. With
23 size steppers you should aim to get steppers of 1mH or less inductance. Pair those with a good highvoltage
stepper driver like Gecko or AM882 drivers from Leadshine and you in business.

You should, excepting very heavy loadings, achieve 1000 rpm or with a 5mm leadscrew 5000mm/min.

Craig

2584
Mach4 General Discussion / Re: Step pulse duty cycle
« on: April 19, 2019, 04:02:37 PM »
Hi,
the duty cycle of the ESS step outputs is fixed by the ESS and is not able to be programmatically controlled.
I have observed the step outputs of my ESS/BoB combo on occasion with an oscilloscope and they are already nearly
bang-on 50% duty cycle as is.

The ESS can produce pulse streams up to 4MHz, so 125kHz is scarcely a crawl for the ESS.

The limitation here is the ability of the driven device, in your case the stepper driver. The manufacturer specifies a max
of 125Hz, but you would be advised to stay well below that.

What microstepping regime have you in place?. Its not uncommon for inexperienced CNCers to specify a way to high
microstepping regime on the misunderstanding that it is better and gives better resolution. It does not.
With a two phase stepper (ie normal) resolution beyond half step microstepping is fallacious. The real advantage
of microstepping is smooth motion thereby avoiding mid-band resonance.

I would recommend a microstepping regime of about 8 micrsteps per full step or 1600 pulse per rev.
If you wanted your stepper to spin at 1200 rpm (ambitious for a stepper) then the pulse rate will be:
pulse rate=1200 / 60 X 1600
   =32kHz

That is comfortably within the spec of your drive.

If however you choose an unrealistic microstepping regime of 64 microsteps per full step or 12800 steps/rev
the calculation becomes:
pulse rate = 1200 / 60 x 12800
   =256kHz

Which is well outside of the spec.

What voltage power supply have you provided the drivers? The general rule is that it should be as high as the drivers
will stand because the steppers will run fastest.

Craig

2585
Mach4 General Discussion / Re: Mach4 with Pokeys57CNC and FRO
« on: April 19, 2019, 03:39:57 PM »
Hi Tony,
yes the PLC can be a trap like that. Here is the procedure:

https://www.machsupport.com/forum/index.php?topic=39965.msg267488#msg267488

The reason that the script is failing is because it cant find the register handle and that is because we hav not
correctly specified the path.  The pics you have attached however detail it exactly.

It should be:
Code: [Select]
local analogRegHandle=mc.mcRegGetHandle(inst,'PoKeysCNC_41744/Analog input 41')
Note this has to be exact, including uppercase/lowercase and whitespace.

Because of the issues that you can get into with the PLC I like to write and debug scripts by storing
and working from within the macros folder. Once its right THEN copy it to the PLC.
None the less having the wxMessageBox statement in the PLC script is a mistake. Remove it.

Code: [Select]
local inst=mc.mcGetInstance()
local analogRegHandle=mc.mcRegGetHandle(inst,'PoKeysCNC_41744/Analog input 41')
if analogRegHandle==0 then
        mc.mcCntlGetLastError(inst,'Failed to find register handle')
else
local analogString=mc.mcRegGetValueString(analogRegHandle)
local percent= tonumber(analogString)*250
mc.mcCntlSetFRO(inst, percent)
end

Craig

2586
Hi,
according to the manual there is an Estop circuit within each servo drive.

If you connect with a wire CN1 EMG input (pin8) to SG input (pin13) then the drive side Etsop is permanently deactivated.

Craig

2587
Hi,
sorry missed the earlier link....please disregard my post.

Craig

2588
Hi,
this post should probably be on the Mac4 General Discussion board as would get more replies....possibly.

Quote
My machine is outfitted with the same Mitsubishi drives listed,

Where is that listing? Would you post either the drive manual or at least a link to it.

Quote
I can't figure out how to configure the e-stop circuit, and clear my AL.E6 alarm

AL.E6 sounds like a drive alarm.... not really Mach at all?

Craig

2589
Mach4 General Discussion / Re: Mach4 with Pokeys57CNC and FRO
« on: April 18, 2019, 07:45:53 PM »
Hi,

Code: [Select]
local inst=mc.mcGetInstance()
local analogRegHandle=mc.mcRegGetHandle(inst,'Analog input/PokeysCNC_41744/41')
if analogRegHandle==0 then
wx.wxMessageBox('Failed to find Register Handle')
else
local analogString=mc.mcRegGetValueString(analogRegHandle)
local percent= tonumber(analogString)*250
mc.mcCntlSetFRO(inst, percent)
end

Would this work?
Note I am not sure how the Pokeys registers are named, I am familiar with the ESS. I put a test in there so that if
a valid register handle is not found then the remainder of the code will not execute and crash Mach with an invalid handle.

Craig

2590
Mach4 General Discussion / Re: Mach4 with Pokeys57CNC and FRO
« on: April 18, 2019, 07:27:22 PM »
Hi,
where is this code to be placed....the PLC script....where?

I understand that you are following an example but I think you have seriously over complicated what should be very
simple code. You have a 'main' and two supporting functions with input arguments for both functions and a return code
for one function returning a critical value. Why the complexity?

All that is required is the a register be read, converted to a numerical value and the FRO be updated.

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 »