Hello Guest it is April 18, 2024, 04:50:19 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 »
6211
General Mach Discussion / Re: Probe not stopping "Z" axis
« on: October 21, 2017, 06:09:36 PM »
Hi John,
just noticed a typo which could throw you out...

I wrote Z=0.005...it should be Z=-0.005   The negative sign is critical to understand...negative Z below the surface, positive Z above the surface.

Craig

6212
Hi Hakan,
Quote
I was saying this from the beginning and that is the reason why we couldnt use the ISIG_SPINDLE_AT_SPEED and ISIG_SPINDLE_AT_ZERO because they assigned to some function but function is not defined within Mach4 and software does not let user to define that function.
Rubbish! The SIGNAL is defined the ACTION is not. The modern programming paradigm is the an object and its action are separate. You create what ever function
you require to achieve the behaviour you want and then you LINK the OBJECT (input signal ISIG_SPINDLE_AT_SPEED) to your desired ACTION ( your function)
In this case we used a particular API call to make our function (mc.SignalWait()) but unfortunately that particular API has limited input range but otherwise
preforms perfectly. If we chose to use a different way to make our function that didn't use that particular API call the we could have used ISIG_SPINDLE_AT_SPEED
throughout.

Quote
Spindle at speed signal is the best and cheapest way to make the machine know that spindle is at commanded speed, most of the VFDs providing this function, if u dont use it u have to buy a spindle which has encoder installed or u have to install a encoder or rpm sensor to the shaft of the spindle, first one is expensive and second one is dangerous so best and industrial way of knowing that the spindle is at commanded speed is using this function and it must be implemented to industrial version.
Certainly using the At Speed or Is Stopped signals provided by VFD is cheap and easy...look you've done it yourself. My VFD and its hardly unique, a Delta, synthesises
and encoder output which can be read by Mach. Its built in...no cost involved. Yes if you require exact and/or physically confirmed rotation then you'll need a tacho
or similar. The At Speed signal cannot determine if the rotor is spinning except indirectly and so would fail a safety test which might be required of a coolant pump
or a lift motor. Such applications require a tacho or indexer, safety requires it and is in effect leaglly mandated by Codes of Practice and various National Standards.

My spindle can use the 'Wait on Spindle to Stabilise' and 'Percentage' functions already in Mach4 for exactly that purpose. You may recall early in the piece I advised you
that you could use either of two methods to achieve what you wanted. You chose to go with the  At Speed/Is Stopped route whereas the other method reqired
you program your VFD to produce a pulse output and have Mach use its inbuilt functions to read and act on it.

Craig

6213
G-Code, CAD, and CAM discussions / Re: Complete newb, need help
« on: October 21, 2017, 05:25:46 PM »
Hi,
couple of observations both F and G1 are modal.

So when you specify the feedrate F as you do on the first line, it will stay like that for all subsequent lines until a new Fnnn word is issued.
Likewise G1 which means 'co-ordinated linear interpolated move at current feedrate' is modal. There is no need to write it on each line. It won't matter
if you do and sometimes may make the code easier to read but it can sometimes clutter things up.

Code: [Select]
m3
g1 x0 y0 f0.5
x15
y0.5
x0
y1
x15
y1.5
x0
y2
x15........

Somewhat tedious to code but as simple as it can be and you'll only have to do it once. There are other alternatives such as using loops but
Gcode doesn't have conditionals and so can't be used as a general purpose programming language. Over the years various cheats and workarounds
have been devised some of them very clever but far from intuitive, why complicate this thing?

Just as a matter of interest what sort of high voltage are you talking about? Some years ago a friend and I were working on an electrostatic precipitator
and I was regularly generating 70kV DC from my own design/build inverter. High voltage sure does teach you some important lessons...fortunately our
experiments were all energy limited so we lived long enuf to learn them!

Craig

6214
General Mach Discussion / Re: Probe not stopping "Z" axis
« on: October 21, 2017, 04:41:13 PM »
Hi John,
no disrespect for the Gcode publication you got but if you wanted to know about the Quran, for instance, would you read it in a popular magazine or would you
get a genuine copy? In like manner Peter Smid's book is the authoritative source.

Craig

6215
General Mach Discussion / Re: Probe not stopping "Z" axis
« on: October 21, 2017, 04:33:16 PM »
Hi John,
I notice you are using a Z drill depth of 0.062 inch, ie 1/16 inch. If you are using 1/16 inch circuit board its not enuf, if you are using 1/32 PCB then
the drill will penetrate which is good. Are you happy that the drill will mark the material underneath?

Next issue is this confusion about the Z axis co-ordinates. It is very common to define the very top of Z axis travel as MACHINE co-ord 0. Your
Z axis can go 2.75 inches lower so your machine co-ord at that point would be -2.75.

When you are machining a PCB you'll be in WORK co-ords. Notice the Gcode you posted shows a Z of 0.1 inch when above the board, but that's higher than
the very top! So the Gcode you have posted is written in work co-ords. It expects the top surface of the board to be Z=0 Then Z=0.1 means a tenth of an inch
above the PCB and Z=0.005 as 5 thou below the surface, probably the cut depth of a router bit if you are mechanically etching the board.

So the procedure is to set the PCB blank in its jig and manually jog the spindle down until the tool just touches the surface of the blank and then hit <Zero Z>.
Now set the code to run, any positive Z means above the board and safe and any negative number means the tool/drill is engaged with the workpiece.

Craig

6216
Hi Hakan,
I had a reply from Rob at Artsoft about the input signal snafu I blundered into. He confirms that we would require an expansion board to use ISIG_SPINDLE_AT_SPEED.
This poses another question. Certainly we know that ISIG_SPINDLE_AT_SPEED is defined and it works, we can see the LED turn on and off. We wished to
make use of it in our mc.SignalWait() API call but it didn't work there and Rob confirms that some expansion would be required for it to work.

I'm guessing here, but based on a few related observations ALL of Machs input are numbered 1 thru to whatever. Internally Mach has no idea what ISIG_INPUT#17
or ISIG_SPINDLE_AT_SPEED means, it recognises input #17 and input #181. So the labels are defined for our benefit because we don't immediately recognise
input #181 for instance. It would appear however that not all API calls are created equal, in this case mc.SignalWait will accept inputs 1-64 but not higher
but mc.SignalGetHandle() will tolerate an input higher than 64, our #181 being the numeric equivalent to ISIG_SPINDLE_AT_SPEED for example.

What is not clear to me is what sort of 'expansion' is required. Given that input #181 can be read and interpreted by Mach in some instances suggests there
are enuf bits for several hundred inputs so it won't require a hardware expansion. I can only guess that mcSignalWait requires software extension.

Craig

6217
General Mach Discussion / Re: DRO are not to set valeu in it
« on: October 21, 2017, 03:21:08 PM »
Hi,
I've just been trying it out. Writing direct to an axis DRO when the machine is unreferenced does work.

If you write direct to a DRO the machine co-ords cannot change. This is a fundamental fact of CNC, the ONLY way to change machine co-ords
is to physically move the axes by jogging/MDI/Gcode OR referencing. To write to a DRO may cause the current position to be changed to the number
you entered but because the machine didn't move and therefore the machine co-ords didn't change then the work offset must change the exact
but opposite amount that the current position changed.

What's the point? If you want to manipulate the work offsets so the current position is a certain number then change the work offsets directly on the
Offsets page. Until I understood this I have done exactly as you are doing but because it relies on Mach to re-calculate the current work offset, and it
didn't always do so in a predictable manner; I found it more 'honest' just to change the work offset directly.

Craig


6218
Mach4 General Discussion / Re: How to use G28.1 on Mach4?
« on: October 21, 2017, 02:52:57 PM »
Hi zarsss,
what exactly do you want to do?

'Ref All Home' drives each axis in turn until the home switch goes active. Is that what you wish? Or do you just want the axis to drive to machine co-ord
zero for that axis? There is a world of difference between the two. Secondly do you wish the machine co-ords to be set to zero or your nominated offset
when its gets there as would normally occur when referencing an axis?

Mach4s API gives you some very powerful instructions and any and all of the alternatives above can be done no trouble. If you can tell me exactly what you
need maybe I can help you code it.

Craig

6219
Mach4 General Discussion / Re: USB port setting
« on: October 21, 2017, 02:34:52 PM »
Hi Daniel,
I see that Eagle PCB software has changed hands. It was developed by Cadsoft, a German company I believe. For a period of time Cadsoft was owned
by Farnell who own Element14. Element 14 used to sell licences and pretty reasonably, I paid $700 for a single licence for the full blown program. When they
released the newest version (at that time) V7.1 they upped the price to something like $2300 NZD...bastards! Element 14 are still selling perpetual licences
but the prices are pretty steep for the complete program, I did see a Maker edition, cut down to be sure for $230 NZD.

More recently Autodesk have bought the software and have gone to a subscription model. Whether the community of users tolerate that remains to be seen.
I suspect that Eagle will become very much less popular. Autodesk have a policy...'Bend over with trousers down while we extract the money we want'.
Shame...used to be a good program....trust Autodesk to ruin it.

Craig

6220
General Mach Discussion / Re: Probe not stopping "Z" axis
« on: October 21, 2017, 01:56:02 PM »
Hi John,
G82 is a canned drill cycle with dwell.
The P is the dwell time when the drill get to the bottom.
R is the retract height. You are expecting that the drill tip starts out at 0.1 inch, that is above the board, it drill down at 20 in/min until 0.032 inch below the top
of the board, dwell for 1 second and then retract at rapid  rate to Z-0.1 ie 0.1 inch above the board.

All of these values are set when you set-up PCB-Gcode. What thickness is your board?, I would guess it is 32 thou or 0.8mm. Your drill, if everything is perfect,
is going to get to the bottom surface of the board but not penetrate it. Is that what you want? I use 1.5mm PCB and I have the drill go to Z=-1.8mm so
it reliably penetrates the board and I'm quite OK with the drill digging into the spoil board below. Dwell only need be 0.25 sec or so.

The only real error in the code you've posted is that your machine is in XZ plane mode? You want to be in XY plane mode. Try putting a G17 to select XY plane
mode right at the very top of the Gcode job, I'm surprised that its not already active with all the preparatory codes.

If you think that you can do CNC jobs without being able to read and understand basic Gcode... you are wrong. It is a required skill that you be able to understand
little chunks of code like this example and be able to understand what your machine will do when it encounters it. On the Program Run page there are two buttons
to provide concise notes as to the meaning of G and M codes. The CNC bible is:
Quote
CNC Programming Handbook by Peter Smid
its a dry read but very good. No doubt there are other texts and probably plenty on the net, find them and
read them, we are not born being able to read Gcode, it something we have to learn. If the value of a hobby is what you have to learn in pursuit of that hobby
the CNC rates very highly...you have to learn untold things to be any good at it.

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 »