Hello Guest it is May 07, 2024, 12:05:48 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 »
991
General Mach Discussion / Re: UC100 stopping
« on: November 29, 2021, 06:58:02 PM »
Hi,
USB is prone to electrical noise and when it does suffer it will stop as you have described.

There are any number of ideas to prevent noise and stop whatever noise is about from affecting various circuits.

Usually the most electrically noisy device in any setup is the spindle. I would suggest a big kick arse two, or even better three stage EMI filter.
I would suggest another one for the AC input to your PC.

https://nz.element14.com/schaffner/fn2060-16-06/filter-16a-multi-stage-chassis/dp/1191381

What you're trying to do is to stop the spindle/VFD combination from impressing harmonic distortion/noise onto the AC supply which can then get into
your PC/UC100 combination. Many people overlook this 'conducted noise path' and they focus instead on shielding and screening. Two or three good EMI filters,
or even a line reactor can often render all the screening and shielding un-needed.

You could also try two split ferrite rings, one at one third and the other at two thirds the length of your USB cable.

https://nz.element14.com/fair-rite/0446164181/ferrite-core-split-12-7mm-205ohm/dp/1781360

Craig

992
General Mach Discussion / Re: HELP with Excel to Mach3
« on: November 29, 2021, 06:41:11 PM »
Hi,
I have occasion to export data as a CSV file to Mach4, I've been using Mach4 for seven years.
I have written a script in Lua, Mach4's scripting language, that converts the input data stream to x,y,z triplets which then are incorporated
into the job.

I imagine you can do the same with CE, Mach3's scripting language, but I doubt NEARLY as easily as Lua.

Craig

993
Mach4 General Discussion / Re: Can i enter my own jog increment in Mach4?
« on: November 28, 2021, 11:11:41 PM »
Hi,
yes you can set the increments.

Open the Control plugin and the General Tab, there you can set the increments as you wish.

Craig

994
Mach4 General Discussion / Re: Clearpath Servo Feedback Displays
« on: November 26, 2021, 07:03:18 PM »
Hi,
Mach4 is a buffered motion control solution so you cannot rely on the feedback data from the servo to be realtime.

For example the ESS has a default cycle rate of 40Hz. Thus there could be a delay of up to 25ms between the servo uploading
data until the time Mach4 gets it. You can increase this rate, I've heard of some people with quick PCs running at 200Hz and thus the delay
would come down to 5ms, but even a 5ms delay is not realtime if you want an alarm type instantaneous response.

In the other direction the ESS has a default motion buffer length of 180ms. Thus any movement instruction could be delayed by up to
180ms before the servo actually does something. Again I have heard that some people with quick PCs have reduced the motion buffer to 30ms
but even 30ms is not realtime.

Provided you are aware of the potential delays in an 'around the loop' communication and that delay does not compromise your intended
purpose....then yes monitoring the output would be possible.

Craig

995
Hi,
I have and use an ESS and use probing extensively for making circuit boards.

I have a software utility (Autoleveller) that generates a Gcode job to probe the PCB blank and record the z position of the surface. It will probe a PCB
50 or more times in a grid fashion. If the probe for whatever reason does not make contact before it reaches the end of travel as programmed by the G31
code then the program halts......that's what I would expect.

You have issued an instruction 'go to location z=nnnn and stop on contact and report the z position', if it does not make contact within its given range is that not a fault?
What would you expect Mach to do?.

In the case of my PCBs, if Mach just carried on and entered a -1mm z ordinate, -1mm being the max z extent of the G31 move, then my levelling program would fail miserably
by virtue of poor data.

Craig

996
Mach4 General Discussion / Re: MDI Tab missing
« on: November 22, 2021, 05:33:31 PM »
Hi,
are you anticipating that your machine is going to lose steps?

Craig

997
Mach4 General Discussion / Re: MDI Tab missing
« on: November 22, 2021, 03:26:49 PM »
Hi,

Quote
but where can I find the "verify" button to check for position errors?

What exactly do you mean? I've been using Mach4 for seven years and Mach3 before that and I don't recall seeing any
'verify' button that can magically check for position errors. To my knowledge that would require an absolute linear encoder
or perhaps a multi turn absolute rotary encoder on the servos/steppers.

It has always been the complaint that Mach is essentially an open loop system, whereby Mach directs the machine to a given location
and Mach ASSUMES that it got there correctly. Mach is not capable , at least in realtime, to accept  feedback data to establish whether
the machine is in error.

If you have linear scales say, you could once Mach has directed the machine to move to a given location  and stop, then Mach could read the linear
scales and thereby determine is the machine has faithfully executed the move....but only once its stopped.

Craig

998
Hi,
I suspect all of 1) to 4) are doable.

May I suggest we tackle one at a time.

As far as the oiler goes would it be acceptable to have the oiler running ONLY when the spindle is running? In which case we could use:
rpm, rc = mc.mcSpindleGetMotorRPM(   number mInst) if the rpm is non zero we would turn the oiler on.

Another possibility:
dir, rc = mc.mcSpindleGetDirection(number mInst) this API tells us when the spindle direction is forward, reverse or off. Clearly if the spindle is either running forward
or backward then you'd want the oiler running.

Another idea along the same lines is to monitor Mach signals OSIG_SPINDLE_ON, OSIG_SPINDLE_FWD, OSIG_SPINDLE_REV and turn the oiler on whenever one or more of these
signals is active.

Another idea is to turn the oiler on when and only when you are moving the axes, say:
velocity, rc = mc.mcMotorGetVel(number mInst,    number motor), we could monitor each of the axis motors and if one or more of the motor has non zero motor speed, ie
the axis is moving then turn the oiler on.

A less comprehensive but easier way would be to monitor OSIG_RUNNING_GCODE. This signal would be active ONLY when running Gcode, ie doing a job. It would not be
active if you are jogging or MDIing, would that be acceptable?

As you can see I've come up with a number of ways to have the oiler turn on....and I feel sure many more could be devised. A straight out timer so the oiler turned on
for a minute every five minutes say.

Do any of these ideas appeal?

Craig




999
General Mach Discussion / Re: Mach3 PWM stability under Windows
« on: November 19, 2021, 06:19:30 PM »
Hi,
PWM stability is pretty good if you use an external motion controller like an ESS, but not so good with a parallel port.

PWM is handled by dedicated hardware with an external motion controller whereas a parallel port is relying on a interrupt driven timer.
Windows makes extensive use of interrupts for its internal use and consequently interrupt driven timers fare poorly.

Craig

1000
Mach SDK plugin questions and answers. / Re: Machine / Production State
« on: November 19, 2021, 04:25:34 PM »
Hi,
 until recently I had an even earlier version of Mach4 on my machine PC, and it has an API, and always has had it.

Look in Mach4Hobby/Docs folder for Mach4CoreAPI.chm. Open it and there you have Machs API. You can also open it from
the Help Docs button from Machs screen.

Use this API:
Code: [Select]
LUA Syntax:
mcState, rc = mc.mcCntlGetState(
MINSTANCE mInst)


It will return the numeric value of the machine state.......easy.....one line......easy!.
If you wish to communicate that to another device or PC or to the internet or whatever then use one of the comms protocols provided.

Modbus is one of the simplest and one that I am most familiar with. The machine state is loaded to a register and that register is communicated over Modbus.....easy.

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 »