Hello Guest it is April 19, 2024, 06:23:38 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 »
2911
General Mach Discussion / Re: Software stops mid opperation.
« on: March 13, 2019, 05:48:53 PM »
Hi,
I, for a long time avoided external controllers, I had (still have) a dual core Atom Mini-ITX board with one built in
parallel port and I added another on a PCI card, and it worked really well.

Eventually I decided I wanted to go to Mach4 and that all but requires an external controller.
When I got it (Ethernet SmoothStepper) I found that I could tune my motors 1/3 faster and more acceleration
without losing steps, in fact run a little cooler and sound sweeter than before.

I was not unhappy with the parallel port, it seemed to go well. So I was really really surprised that an
external controller would make such a difference, but it did!

The other thing is that Mach runs better, without stopping or stuttering is you hit <redraw> say.

All up I have gone from a nay-sayer parallel port supporter to a rabid external motion controller supporter.
You will also, if you read any of my other posts, know that I absolutely hate Chinese made controllers, they don't
work as they should, if they work at all, and don't support al the features Mach has come to expect.

Craig

PS
Quote
He already said his PC is a Dell Optiplex 760 - a desktop with built in Parallel port.

Sorry missed it when skimming the thread.

2912
General Mach Discussion / Re: Software stops mid opperation.
« on: March 13, 2019, 05:12:37 PM »
Hi,
Mach's parallel port driver has always been a bit 'iffy' on certain PCs.

Some PC's seem to do a good job whereas another very similar machine does not.

Your PC is not a laptop is it? The power saving features can really screw up a parallel port, some people have had good results
with laptops but most bomb out with them.

Have you considered an external motion controller like a SmoothStepper or a UC300?

An external motion controller removes the responsibility of generating fast accurately timed pulse streams form
the PC's CPU (where Mach's  parallel port driver lives) to the external board. The external board has electronic
circuits made for the purpose and produce  pulses much faster and more accurately than a parallel port ever will.
With an external controller you can use just about any PC you like, laptop, 64 bit OS, Windows 10 etc.

The downside of an external controller is cost. The two I have mentioned are in the range of $150-$200US. Note there
are cheap Chinese made controllers and Chinese made rip-offs of name brand controllers but don't go there, they are
rubbish and will cause more frustration than the parallel port.


Craig

2913
Hi,
sounds like the VFD/spindle are producing enough electrical noise to interfere with the home switch circuit of the Z axis.

There are two schools of thought as to how to stop this.

Most people start by using screened cable for the home switches and fitting capacitors or other filters to the signal line.
These are all examples of 'reducing the sensitivity of the signal circuit to EMI'. This often works but is, in my opinion,
not the right place to start.

The other way is to reduce the EMI produced by the VFD/spindle. VFDs are notorious for drawing power from the AC
supply in a very ragged or noisy way. A line reactor is the correct way to tame a VFD. Most people don't do it because
of the expense. With a large VFD in industrial situations the power company may well insist that you do so. A large
line reactor or power factor corrector device can be a substantial fraction of the price of the VFD.

A line reactor is a coil of wire on a laminated iron core (inductance approx. 5mH) and is fitted between the AC input
and the 230V input of the VFD.
Note there are special filters that you can put between the VFD and the motor, usually only required if there is a big
distance between them. You should follow the manufacturers specs very carefully if you decide to add these types of
filters. Standard line filters are likely to damage the VFD.

A couple of things that you can try before you decide whether you have to buy anything.

1) Try some de-bounce and/or fit a 0.1uF capacitor to the Z axis home switch line.
2) Connect your VFD to a different AC socket preferably well removed from the AC socket you connect your PC and
controller power supply.

Craig

2914
Mach4 General Discussion / Re: protected dro's
« on: March 13, 2019, 04:34:30 PM »
Hi,

Quote
X Machine Position

You cannot programmatically set machine coordinates at will.

https://www.machsupport.com/forum/index.php?topic=39309.0

Craig

2915
Mach4 General Discussion / Re: M6 script does not seem to take changes
« on: March 12, 2019, 01:32:37 PM »
Hi,

Quote
Also delete all .mcc files (assuming you have the source code of course) in the macros folder after editing any macro.

I don't find this necessary if I'm using the Zero Brane editor to make the changes. If any change is made (using the editor)
the file is flagged as changed and therefore will be recompiled. If it is recompiled the .mcc is overwritten, it is not necessary
to explicitly delete it.

Craig

2916
Brains Development / Re: MODBUS and Mach3 Signals
« on: March 12, 2019, 06:49:59 AM »
Hi,

Quote
If Arduino works with Grbl and other software, why do you want to make me to abort what am I going to do?

You're right....go for your life. Good luck.

Craig

2917
General Mach Discussion / Re: All home, precise backward .mm - problem
« on: March 12, 2019, 06:24:52 AM »
Hi,

Quote
So where to control how many steps or .mm axe going back before going to precise hiting the switch?

That is not how Mach operates. When homing it will drive until the switch activates and then backup until it
deactivates. Then it resets the machine coordinate for that axis. Mach does not move a certain distance.

There are some external motion controllers that DO have that capacity, the 57CNC by PoKeys for instance,
but it is not a supported feature of Mach's parallel port driver.

The real problem is that you have a switch with too little hysteresis. Snap action microswitches are good for home switches
whereas inductive proximity switches often have problems like you have described.

Ideally you would have three separate home switches, each with its own input pin AND six limit switches, there again ideally
all on their own inputs but commonly wired all together in series. The important idea is that limit switches should NOT
do double duty. This is easily possible if you have two parallel ports or an external controller with two or more ports
as you have plenty of inputs spare.

Craig

2918
Mach4 General Discussion / Re: M6 script does not seem to take changes
« on: March 12, 2019, 06:11:22 AM »
Hi,
when you call a m code Mach has a search path and it uses the first valid file it finds. That is why its essential
to use the correct naming strategy. What you have described is that Mach has found a compliant m6 file BEFORE
it got to the one that you intended.

Craig

2919
Mach4 General Discussion / Re: M6 script does not seem to take changes
« on: March 12, 2019, 02:48:00 AM »
Hi,
what did you name your macro? If you named it M6 then I would expect it to fail.

Mach4's Gcode interpreter converts all Gcode to lowercase and strips out the leading zeros, thus:
M6
m6
m06
and
M06
all get treated the same because Windows file names are case insensitive. Not withstanding that case insensitivity
there are occasions when it does create an error, and I think you have found one.

All Gcode, including m codes, should be lowercase and without leading zeros.

When you rename your macro make sure you delete the existing ****.mcc files. If Mach finds an appropriately named
***.mcc file it wont bother to compile a fresh one from the ***.mcs file.

There are two interpretations of  the T word in a line of Gcode.

m6 t5........you might expect that after the tool change tool 5 would be in the spindle. This is the common interpretation
and is familiar to us from Mach3. However in industrial machines another interpretation is possible and even desirable.
That interpretation is that tool 5 is the tool to be installed into the spindle at the NEXT tool change. This would mean
that tool carousal is ready and waiting and therefore the tool change is quicker.

Configure/Control/Tools per the attached pic.

Craig

2920
Brains Development / Re: MODBUS and Mach3 Signals
« on: March 12, 2019, 01:36:49 AM »
Hi,

Quote
I can't find how can I transmit signals for step/dir from Mach3 to Arduino.

That is not possible. USB is a serial communication protocol and so any timing of step/dir signals gets hoelessly
screwed up.

You might ask 'well how do others do it, I've seen USB connected devices producing step/dir pulses?'

The reason is because Mach does not send step/dir pulses to a USB board, it sends  P(osition)V(elocity) over T(ime)
data from its trajectory planner. That is it sends a stream of numeric data and the USB CONVERTS that numeric data
to PULSE STREAMS which it presents to the outside world in PARALLEL. That makes the USB device an external motion
controller.

You could make an Arduino into an external motion controller, but it would be challenging. Firstly the Arduino is way
too small and lacking in power. Most external controllers have a mid-level FPGA and/or a 32bit microcontroller either
or both of which make an Arduino look like  a minnow.
You would have to code a plugin (that lives on the PC) in C++ to drive the Arduino (or other control device).
If you were going to all that trouble you wouldn't bother with Mach3, its pretty old and is now unsupported. You would
have to use a really old and creaky version of Visual Studio. You would in preference use Mach4 which is at least current
and has a well developed SDK. You would need to sign a N(on)D(isclosure)A(rgeement) with NFS but then you would
get all the inside info you need.

Why don't you use an external motion controller like an Ethernet SmoothStepper directly? Note Mach3 and Mach4 have MODBUS
plugins, but the Mach4 plugin IS SO MUCH EASIER TO USE AND UNDERSTAND. It still wont communicate step/dir
in realtime but it is a dream to program and use.

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 »