Hello Guest it is April 26, 2024, 11:34:34 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 »
3591
Hi,
in the temp folder put this code, note that it overwrites the previous version of ISIG_INPUT3 entry:

Code: [Select]
mc.ISIG_INPUT3]=function(state)
local hreg=mc.mcRegGetHandle(inst,'iRegs0/ToolIndex')
if state==1 then
mc.mcRegSetValue(hreg,1)
else
mc.mcRegSetValue(hreg,0)
end
end,
[mc.ISIG_INPUT4]=function(state)
local hreg=mc.mcRegGetHandle(inst,'iRegs0/ToolPosition')
if state==1 then
mc.mcRegSetValue(hreg,1)
else
mc.mcRegSetValue(hreg,0)
end
end,

Note that after each table entry a comma is required to separate the next entry.
If you are happy with this then it is time to put it in its final location, namely the screenload script in the signal library SigLib{}.
Open the screen editor, and then expand the screenload script and note the SigLib{} table near the top. Paste in your two
new entries.
Craig

3592
Hi,
we can start doing some coding.

I think the best way to proceed is to put the two inputs and the two outputs in registers.

When Mach runs it has, broadly speaking, two chunks, one is the GUI chunk, the other is the Mach Core chunk. Only one can operate at a time
and the data in one chunk is not available to the other. Registers are the way around that, they provide a common repository for data and instructions
which can be accessed by any chunk or plugin throughout Mach.

First open Configure/Plugins/Regfile and make four new registers per the pics. Note you can use any names you feel are appropriate.

Once you have defined your new registers then go to Diagnosic/Regfile and expand the instance registers iRegs0. You will see your new registers and their current
values. Note that if you want to change a value just highlight it, click on it and edit it manually. Note also that registers can be persistent (or not).
If they are persistent then the values will be recorded in your profile.ini file at Machs shutdown and be repopulated when you start a new session of Mach.

Ok.....now we need to hook the input signals to Mach and then have Mach update the registers. Note that I'm dealing only with the input signals to start with.
Note also that I'm going to use Input #3 and Input#4 so that I can see the LEDs for testing purposes per my earlier post.

Will post the code shortly.....need to go and hang out the washing!   Its a bastard when real life interferes with your CNC... ;D

Craig

3593
General Mach Discussion / Re: Fitted new spindle
« on: October 06, 2018, 04:41:27 PM »
Hi,
I suspect that the spindle nose of your new spindle is electrically isolated from the frame or earth of your machine.

The probe circuit is roughly:
1) A current limited voltage on your touch plate (isolated from earth)
2) When the tool touches the plate a current flows from the plate through the tool....through the toolholder....through the motor
   armature...through the bearings....to the case of the spindle to earth, the frame of your machine.
3) Mach detects the current flow as a probe contact.

If that circuit is not complete, lets say you have ceramic bearings in your spindle then the current cannot pass through them and Mach
would not detect the fact that the tool has in fact touched the plate.

May I suggest, as an experiment, run a second wire from the toolholder of your spindle to earth. Then try probing again. Until you can
get Mach to recognize when the tool touches the plate then all bets are off.

Craig

3594
Show"N"Tell ( Your Machines) / Re: Controller and drivers
« on: October 06, 2018, 04:26:14 PM »
Hi,
I wish to correct a mistake I made in my previous post. I have wrongly described the inputs/outputs available
from the MB02. I have attached a pic of the table from which I drew the info but was mistaken in the number
of inputs and outputs.

12 Line driver outputs
15 Single ended/relay contact outputs
18 NPN inputs
5 PNP inputs
1 Analogue PWM output

Total = 51 I/O. The ESS has a total of 51 I/O's.

As Gerry has pointed out that for many projects the MB02 is a very good fit with a good balance of capabilities and is a very practical
solution. My forte is electronics and can therefore adapt the plain TTL I/O to whatever is required and thereby retain the flexibility
of I/O assignment and at a cheaper cost.

For someone who cannot or will not make a few simple circuit additions to a 'plain Jane' board like a C10 then the MB02 is a good choice.

Craig

3595
Mach3 under Vista / Re: Help with STEPS PER UNIT CALCULATOR
« on: October 06, 2018, 03:36:13 PM »
Hi,
nice effort with that board.

If you haven't already seen it have a look at Autoleveller, I have found it to a boon to PCB making.

http://www.autoleveller.co.uk/

Craig

3596
Show"N"Tell ( Your Machines) / Re: Controller and drivers
« on: October 06, 2018, 03:23:31 PM »
Hi,

Quote
I'd recommend the MB2 motherboard
I disagree. The MB2 is a good board but the manufacturer has already made all the decisions about which pins are inputs or outputs
including whether they are line driver or single ended outputs.

On Page 4 of the manual is an overview.

12 Line driver Outputs
14 Sink/Single ended Outputs
12 NPN inputs.
1 PWM analogue output

All very well unless you what more inputs say.

The ESS has port 1 pins 2-9 as outputs always but ports 2 and 3  pins 2-9 can be block assigned as inputs or outputs.
Thus if you want the maximum number of inputs then:
port1  12 outputs
          5 inputs
port2   4 outputs
          13 inputs
port3   4 outputs
          13 inputs
total     20 outputs
           31 inputs

The C10 or the Homman Designs BoBs allow me the choice as to exactly the balance of inputs to outputs.
They are also plain TTL so are all capable of better than the 4MHz limit of the ESS. If I require
a linedriver for a given output I add it, if I require an optoisolated input or output I add it, if I want an analogue
PWM output I design and build my own filter, if I require a 24V interface I use a 2 cent transistor to do it.
In short any input or output requirement can be met by adding a little circuitry to a C10 or Homman designs BoB.

3 x C10's @ $23 each = $69
1 M02   =$150

The last time I looked Peter Homman's Bobs were up to $56 (also confusingly called the MB-02V6):
3 x MB-02V6  =$168
Thus the Homman designs BoBs are more expensive than the CNC Room MB02, however I choose to support Peter,
a longtime contributor to this forum and an Australian neighbor.

Mike:
Quote
ESS $180 + MB2 $150 = $330. Now the difference is within ~$100
That's still $100. My $100 is hard earned, I'm not averse to spending it if I see an advantage but refuse to part with it if I don't.
The cut down Hobby Hicon is not a good choice for me....my servo running at full speed at full resolution requires a step signal
of 468kHz, well within the ESS but impossible with the Hobby Hicon....the full Hicon however is a contender.

Quote
Using the Hiconn to do closed loop of a servo system allows for there to be a central controller instead of doing it in each servo drive. Again, this gives you more options.
If you are using an existing DC servo arrangement then the flexibility of the Hicon, with the extra required activations is indeed a very powerful unit.
Its rivals Gallil and they are more expensive again. You may have noted that all the servo manufactures close the loop within the drive and almost
all offer distributed motion control via Ethercat, Profibus or Canopen....and others. In short the CNC world is going, and has been for a decade or more,
to ever increasing intelligence in the servo drive. Closing the loop within the controller is becoming increasingly anachronistic.

You may recall OP is looking for a controller and servo/drives to repower an existing gas cutting table. THC, lathe threading, yada, yada is just so
much background noise to him. Given that he is looking at modern  Ac servos and drives then he has no intention of spending big dollars and adding
a bunch of complication by closing the servo loop with a Hicon.

If you can come up with a combination that beats or even comes close to the budget I posted earlier I'm sure OP would be delighted to hear it.

Quote
and I did mention it before, my next choice of controller is the Pokeys 57CNC
I have not used one but look at them very favourably, the analogue input capability is a definite advance over the ESS, shame they are limited
to 125kHz.

Craig

3597
Show"N"Tell ( Your Machines) / Re: Controller and drivers
« on: October 06, 2018, 12:58:02 AM »
Hi,
the Hicon Hobby (not that I can find it on their site) is over $435 by your post.

The ESS is $190, even if you add $46 for two BoBs that's $236.

I might live on the other side of the world but that is $199 difference. And that is for the Hicon Hobby....not the real thing.

Each person will have to decide what to spend their money on....I will not be buying a cutdown version of the Hicon any time soon.
In the last fortnight Warp9 has added single point lathe threading to their Mach4 plugin on top of backlash compensation that was added
three months ago. Excepting THC there is nothing that I require from a Hicon that can't be delivered by a much cheaper option.

You may point out that the Hicon can, at extra expense close a servo loop. You may also be aware that modern AC servos have rendered
that functionality moot and so it applicability is to old school servos. Having bought one AC servo and had my eyes opened I won't be
fiddling with any old school servos any time soon.

I've been using Homman Designs BoBs, not dissimilar to C10s, that is non optisolated for five years without problems. Wherever I determine that
there may be a voltage conflict I add an optocoupler as required. For instance my Vexta stepper drivers have optoisolated inputs thus there
is no gain in having optoisolated outputs on the BoB as well.

Craig

3598
General Mach Discussion / Re: Motor Driver issue
« on: October 05, 2018, 10:35:50 PM »
Hi Fusco96,
I'm confused.....in another thread you had going here a few weeks ago you were trying to run a RnR USB controller....
what happened to it?

Now you have a parallel port board according to the picture.

What PC and what OS are you using?
What does DriverTest.exe tell you about the operating condition of Machs parallel port driver?
If these matters are not 100% then you might end up with pins 'shorted' as you claim.

Craig

3599
Show"N"Tell ( Your Machines) / Re: Controller and drivers
« on: October 05, 2018, 10:28:02 PM »
Hi Mike,
I have no problems with the Hicon other than its price.

At this time it is the only Mach4 ready controller that has THC. Thus if you wish to have THC, ie running a plasma table then you are
REQUIRED to get a Hicon.

The ESS, UC300 and the 57CNC are all less than 1/3 of the price of the Hicon and retain much of the functionality and all three companies have
after sales support easily as good a Vital Systems.

The ESS and the UC300 require BoB's, C10's can be had for $23 each. Hardly an imposition.

Its not that I don't recommend the Hicon its just hard to justify that extra $400 compared to an ESS say.

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 »