Hello Guest it is April 19, 2024, 03:14:20 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 »
4161
Hi,
OK so you have a keyboard not just a series of push buttons?

Does the keyboard come with any documentation as to how the keys are coded?

Its possible that the keyboard issues serial pulses to represent ASCII characters in which case we a re barking up the wrong tree.

Do you mind me asking why bother with another keyboard? I mean it sounds like you are duplicating the keyboard on your PC. There is a thread by a guy
who has made his own panel which had individual pushbuttons for various functions and an MPG handwheel. I'll see if I can find it.

Craig

4162
Hi,
the C25 is a good board and suits a machine that uses one port only. Thus the C25 has outputs for the motors and spindle etc.

The C10 on the other hand has just plain inputs and outputs. You could use it to run a machine but it doesn't have any relays for the spindle nor does it have
an analogue output for a VFD. It is ideal though as a second (or third) board for the ESS. In particular the pins 2-9 can be designated as input OR outputs.

As you have discovered it is common to run out of inputs and so the C10 is very useful because it allows you to take full advantage of the extra ports of the ESS.
cnc4pc also have the C13 breakout board, and for only $9.00. It has no buffer ICs on it however and so you don't get any protection just screw connectors.
For an extra $14.00 I would get the C10 which does have buffer ICs on board and offers a degree of protection for the ESS that the C13 doesn't have.

I'm not familiar with the PoKeys 57CNC other than that they have a good reputation. I've had a look at the manual and they have little or no protection for the
FPGA IC either.  If I had one I would be inclined to fit some sort of breakout board to protect the FPGA exactly as I have done for my ESS.

You can of course go direct onto the pins of the ESS second (or third) ports. The 26pin IDC headers are pretty compact and the probability of shorting two pins together is
quite high. I have attached  a pic of the representative output circuit of the ESS. Note the output IC has no current limiting resistors between the IC pins and the IDC26
pins. Therefore if you were to accidentally short an output to either + or - when the IC output was - or + respectively you will blow the one channel of the output IC.

Craig

4163
Hi,
it is perfectly possible to hook direct to the pins of the ESS but preference is given to hooking up a breakout board. Firstly because they have screw terminal
you are less likely to accidently bridge two pins causing a fault. I use MB2s from Homan Designs in Austrailia, near enough to local for me.
I see the C10 board is reasonably priced and doesn't have to much in the way of specialised pin circuitry to interfere with flexibility.

Given the cost of the ESS and how central it is to my mill I would not contemplate using any port of the ESS WITHOUT a breakout board.
I work with electronics day in day out and I value any methods/procedures/designs that limit unintentional damage to boards, especially so if I have to
pay for a replacement!

Craig

4164
Hi,
I've attached a representative circuit diagram of an ESS input.

Provided you don't put MORE than 5V on the OR less than 0V then you cant blow the ESS by hooking up either + or -.

Craig

4165
Hi,
yes I understand your caution.

Are you using the ESS? If so what breakout board are you using, or even are you using a breakout board?

Craig

4166
Hi,
on the ESS Pins Config page you have the choice of active high OR active low.

I don't know how you've wired your button and whether your BoB has a pull-up or a pull down resistor. Active high OR active low will depend
on those details.

Just another idea is that on Machs Machine Diagnostics tab, at least in the wx4.set screen set, there is a whole bunch of LEDs, in particular notice the Iinput0 through Input5
in the Inputs panel. If you chose to attach your ESS/BoB input pin to ISIG_INPUT0 say, rather than my earlier suggestion of ISISG_INPUT10 then every time you hit your button
you should see the LED light up. Very simple and convenient way to test to button and circuit.

Craig

4167
Hi,
oops, sorry forgot to attach the screen shots....

Craig

4168
Hi.
can't help with all of those questions but I can show you how to do a few of them.

Have you watched the 'Edit Screen' video....you need to watch it.

In edit screen mode have a look at the <Cycle Start> button events. I have posted a screen shot of it. Note that the event has a 'left up script' That means when the screen button
is released the nominated script executes. In this case its not a script per se but rather a Lua function CycleStart().

Just as a matter of interest this is the source code of the function.....its in the screen load script:
Code: [Select]
---------------------------------------------------------------
-- Cycle Start() function.
---------------------------------------------------------------
function CycleStart()
    local rc;
    local tab, rc = scr.GetProperty("MainTabs", "Current Tab")
    local tabG_Mdione, rc = scr.GetProperty("nbGCodeMDI1", "Current Tab")
    local tabG_Mditwo, rc = scr.GetProperty("nbGCodeMDI2", "Current Tab")
   
    --See if we have to do an MDI command and if so, which one
    if ((tonumber(tab) == 0 and tonumber(tabG_Mdione) == 1) or (tonumber(tab) == 2 and tonumber(tabG_Mditwo) == 1 )) then
        local state = mc.mcCntlGetState(inst);
        if (state == mc.MC_STATE_MRUN_MACROH) then
            mc.mcCntlCycleStart(inst);
            mc.mcCntlSetLastError(inst, "Do Cycle Start");
        else
            if (tonumber(tab) == 0) then 
                scr.ExecMdi('mdi1');
                mc.mcCntlSetLastError(inst, "Do MDI 1");
            else
                scr.ExecMdi('mdi2');
                mc.mcCntlSetLastError(inst, "Do MDI 2");
            end
        end
    elseif tonumber(tab) > 2 then --No G Code or MDI panel is displayed so Do Nothing
        mc.mcCntlSetLastError(inst, "Nothing to Start");
    else --Do CycleStart
        mc.mcCntlSetLastError(inst, "Do Cycle Start");
        mc.mcCntlCycleStart(inst);       
    end
end

Don't concern yourself with the code....I only mentioned it so that you could see in fact there is a bunch of code that runs when you call what looks like such a simple function call CycleStart().

In order that you can hit a remote button and have the cycle start what you want to do is have an input to Mach from the physical button call CycleStart() as if you'd hit the screen button.

In the ESS or PoKeys plugin assign an input pin to the physical button. Then in the Input Signals page in the ESS plugin (presumably the PoKeys plugin is similar but I'm not familiar with it)
connect that pin to a general purpose input signal ISIG_INPUT10 say.

Now you will need to put in the SigLib table an entry to tell Mach we are interested if the signal ISIG_INPUT10 triggers.

Code: [Select]
[mc.ISIG_INPUT10]=function(state)
if state==1 then
CycleStart()
end
end

And THAT'S IT!  If you put that little piece of code into the SigLib table which is at the top of the screenload script you have coded all that is required to have Mach4 monitor an input
and execute a function when the input triggers. How easy is that?

You might have noticed that I attached a second screenshot of the <FeedHold> button. Note that it has a left up action. An action is internal to Mach and the  above method wont work
for that action. I'm sure it can be done but need to think about it a bit more yet.

If in edit screen mode you click on various buttons that about half have either a script or a fuction as an event for which the recipie above will work and the rest have actions as events.
I will do some more thinking and research and get back to you.

Craig

4169
Hi Allan,
yes its quite dramatic.....when I was cropping the screenshot to post I inadvertanly cut off the frequency scale off the bottom of the FFT pic.
The full picture showed significant harmonic energy to 100kHz and certainly measureable out to 1MHz.

I suspect that OP will find that the speed control is still at the root of his problems, whether he knows it or not. What else can produce the sort of hash this speed control
produces?

One feature of this speed control is that the DC produced is not isolated from electrical earth, at least in New Zealand where we have a MEN electrical system. That means
that the insulation resistance of the motor OP is using is the only thing which prevents line level voltages from getting into the frame of the machine. Additionally there
is a good possibility of the so called, and dreaded 'homopolar' current.

The 5 phase steppers I use on my mill are subject to this phenomenon. They have good insulation to the frame as measured by a Megger.  The drivers are direct feed from the AC
mains to a DC link voltage of 150VDC. The magnetic coupling between the stepper coils and the frame mean there is leakage to the frame, several mA at least. Without earth bonding I have
measured 130V on the frame of the machine......a great surpise to me I can tell you. I have investigated quite thoroughly and it turns out the voltage induced into the frame
is in the kHz range, ie phase switching frequency so the current is induced in the frame rather than resistive leakage.

Homopolar current is not common, there is little mention of it in the literature and that is seems to fly in the face of Kirchoffs Law its little wonder that it gets missed. That's what happened to me
anyway!

Craig

4170
HiCON Motion Controller / Re: Following Error
« on: June 30, 2018, 04:15:57 PM »
Hi,
as OP explained in an earlier post the feedback steppers and drives were cheaper than two shaft steppers and encoders, so in a sense price was a factor and
closed loop steppers and drives resulted.

Like you jcoldon my open loop steppers haven't missed a step in four years. Correctly sized/driven/specified steppers used within their limits DON"T lose steps, they are
remarkably simple, reliable, powerful and very economically priced. They certainly are a boon to hobby CNCers.

I do recall though when I was fist building and operating my mill very concerned about losing steps. At that time I had some cheap drivers and missing steps was a distinct
possibility. As I have 5 phase Vexta steppers good drives are not cheap. I did in the end get proper Vexta 5 phase drivers, they are powered offline 230VAC and have a DC link voltage
of about 150VDC. My steppers now sing along and never even look like missing a step.

None the less the manufacturers trolling their 'closed loop steppers...never miss a step' wares were very seductive. Many a hobbyist have stumped up the dollars to buy. The
manufacturers must be congratulated for their marketing effort, they have made millions by playing on a hobbyists fear of losing steps.

In very similar fashion Tecknics have done a great job marketing their 'stepper killer' servos. Their servos are good but there are better for less. Congratulations to Tecknics.

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 »