Hello Guest it is April 26, 2024, 10:26:12 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 »
51
Hi,
so what plasma machine do you have?.

There are three things that ALL plasmas have that are intended for machine use.

The first is an input to start the arc, it replicates the trigger on a handheld torch. The best solution is s set of isolated relay contacts with the relay
under control of  Mach. Sounds like that's what you've got.

The second is ARC_OK. When a plasma arc first starts the tip is energised and the nozzle is earthed. The plasma current is usually limited to 20A
or so otherwise the nozzle will be wrecked. If the arc in in reach of the plate the arc will 'transfer' to the earthed plate, and the plasma machine will recognise this
and release the earth on the nozzle thereby preventing further excessive wear while the arc is now formed between the tip and the plate. Now the plasma current will ramp up
to whatever you have set the machine at. The 'transfer' and current ramp up signal that the machine is ready to cut and it will close a set of relay contacts (typically)
and that is the ARC_OK signal. Mach would use this to determine that the plasma has established an arc and that it has successfully transferred to the plate. It will now
assume the correct pierce height and the cutting will begin.

The ARC_OK signal is critical. If the m3() macro in Mach4Hobby Plasma screenset does not recieve an ARC_OK signal after a few seconds it will fault out.

I noted in a previous post that you start the plasma and wait for a fixed delay, two second or whatever. That might be how you'd do it manually but a machine plasma uses
the ARC_OK signal.

I worked for seven years for a company that sold and serviced welding equipment. I was an electronic repair tech, and used to repair plasmas and plasma tables.
Our premier brand was Hypertherm, but over the years I worked with  Kaliburn, ESAB, Lincoln, Miller, Thermal Dynamics and who knows how many Chinese machines.
All of the good ones had an ARC_OK signal.

The last feature that is required for machine use is a arc voltage output. Hypertherm have a 50:1 voltage divider, while some of the other brands copied that same 50:1,
others were 20:1, 25: 1, 30:1 etc. This voltage is used by the THC module to monitor the arc voltage.

One other feature you'll need is a probe input.  When you put a piece of plate in the machine the torch needs to descend and touch off the plate to know where the top surface is.
Without knowing that then your Pierce Height or Cut Height  don't really mean much do they? And what happens if you take a 3mm plate out and put in a 12mm plate for the next part?
If you don't have some routine to tell where the new surface level is the machine will drive to '3mm off the plate being pierce height' only to find that is still below the surface
of the piece of 12mm plate you just put in. The traditional way to do this is to use a g31 probing move. The torch descends from some safe height until the nozzle touches the
plate and Mach detects that touch or probe event and stops. It latches the Z axis location so it knows where the surface of the plate is. Many plasmas have a connection on the plasma
machine which is hooked to the nozzle of the torch to facilitate this touch off. Its sometimes also called Ohmic probing.

Craig

52
Mach4 General Discussion / Re: Save #VARS
« on: May 16, 2023, 04:53:36 PM »
Hi,
I've always found tattooing on the wife's forehead a convenient location to store important data. Limited re-write potential! ;D

Craig

53
Hi,

Quote
If I had used the Mach4 Plasma screenset, what post processer in fusion 360 would I use for my “plasma cutting”tool paths?

The same one, it seems the Mach3Plasma post.

You seem to be fixated on the post....and the post has got ZERO to do with it. The post generates Gcode , but Gcode does not start or stop the torch,
that is m3 or m5.

The machine behaviour in response to m3 or m5 is where you need to concentrate. You have already proven that you can get perfectly good tool paths from Fusion and
the Mach3Plasma post.....but what you can't do is turn the torch on or off.....and that's got nothing to do with Fusion or the post.

The Mach4Plasma screenset already has a sophisticated m3 routine built in....there is no need for you to code it.

It first touches off the material surface. Note this procedure is optional, although you'll certainly want it if you are using different thickness plate. Anyway once the machine
touches off the plate and effectively determines where Z zero is then in raises to the torch start height....whatever you program in. Then it fires the torch and waits for the
ARC_OK signal. If it doesn't get an ARC_OK signal after about three seconds it faults, ie the torch has been told to fire but it fails for whatever reason.

Assuming the torch does fire and Mach receives the ARC_OK signal then the torch lowers to the pierce height, whatever you set. After a pierce delay of so many seconds, whatever you set,
then it starts to decsend to its target cut height, agin whatever you specify and starts the tool path.

What you really need, as a minimum, is a circuit to activate to turn the arc on and an ACR_OK signal. Ideally you'd have a probe input so the torch can touch off too.

Do you have those?

Craig

54
Hi,
I've just been experimenting with the Mach4 Plasma screenset and it appears like m3 is already coded and working. Is there a reason you don't use it?

Craig

55
Hi,
this one is really simple, or at least can be simplified down to a couple of lines.

A more sophisticated macro would be bigger and take more effort.

Lets say for the moment you ignore all Z axis movement, that is to say you jog the machine to the start point and set it to the correct cutting height.
Then all you have to do is say Turn the Arc On, wait for 2 seconds and return. That would be enough, two, three maybe four lines.

A slightly more complex start routine would be Turn the Arc ON, wait until the ArcOK signal is received and return. If the plasma refuses to fire then the ArcOk signal
will never happen, ie the arc did not start so there is no point moving to cutting stuff because there is no arc.

A more complex one again would be to go to some safe height before starting the arc, the Start the Arc, wait until ArcOk signal, drop to pierce height, wait 2 seconds to pierce,
drop to cut height and return.

So you can see that you can start very simple and add nuances to match your requirement, but the simplest is about three or four lines.

What signal have you used to control the Arc relay? Have you hooked up the ArcOK signal from the plasma and to what input did you hook it to?

Craig



56
Hi,

Quote
Mach3 for my plasma cutting and wait for somebody to develop a plasma cutting post processor for Mach4.

I think you'll be waiting a long time....what you want is not done by a post processor, what you require is to set up your machine with a compliant m3()
which is a function of your machine, and that is not a post process at all.

What you are actually saying really 'I want someone to write some magic code so I don't have to', and that tends to take a long time.

Craig

57
Mach4 General Discussion / Re: M6 Lua script help!
« on: May 15, 2023, 10:12:17 PM »
Hi,
This is typical Mach3 code:
Code: [Select]
If GetCurrentTool() = 2 then
   Code"G0 A45"
   While Ismoving()
   Wend
   End If

The Lua equivalent is something like this:

Code: [Select]
function m303()
local inst = mc.mcGetInstance()
local selectedTool = mc.mcToolGetSelected(inst)
selectedTool = math.tointeger(selectedTool)
local currentTool = mc.mcToolGetCurrent(inst)
currentTool = math.tointeger(currentTool)
if(currentTool==2)then
mc.mcCntlGcodeExecuteWait(inst,"G0 A45\n")
end
end
if(mc.mcInEditor()==1)then
m303()
end

A few things to note here, firstly I have encapsulated the code in a function called m303(). This allows you to run the code in the ZeroBrane editor and test and debug as you go.
The little:
if(mc.mcInEditor()==1)then
      m303()
end

at the end is what allows the code to run......a function must be called and if Mach is 'InEditor' then it will call m303(). Then the function will run until it ends and then returns to the same place it
was called from.

mc.mcCntlGcodeExecuteWait(inst,"G0 A45\n")  this is the line that actually does the business, but note that a function is called 'mc.mcCntlGcodeExecuteWait(........)' and it will execute and Mach will wait
until it completes, there is no need of the While IsMoving() palava.

Translating VBasic into Lua is not especially productive, there are enough differences that writing Lua anew is likely the best result. I mentioned this only because the function:
mc.mcCntlGcodeExecuteWait(........) is a classic example of how Lua/Mach4 coding differs from VBasic and you do not want to replicate VBasic, you want to use what has been provided for in
Lua and mach's API.

Craig

58
Hi,
I don't use either Laser or Plasma so I'm having to guess to a certain extent.

m62/m63 are for lasers. It turns the laser on, but ONLY when the machine has started to move, otherwise the laser would burn a spot right at the start. m63/m63 are not right for you.

First thing you may note is that I use lowercase m or lowercase g in all Gcode....because Mach's Gcode interpreter parses all Gcode to lowercase, strips out leading zeros and whitespace. Thus
M03 becomes m3, etc. When the interpreter encounters an M3 for instance its going to search for code starting m3. To make sure it finds it then use its preferred format, ie lowercase and without
leading zeros. Note that I often still use whitespace to separate items for readabilities sake, but should in truth remove whitespace as well so g1x16.67y45.67f556 not g1 x16.67 y 45.67 f556.

When Mach encounters an m3 it will search in the macros folder of the current profile, if it does not find it it will search 'up the file tree' until it does. Normally this means that Mach will
use the built in m3 that turns the spindle one. Presumably the built-in m3 will turn on the SpinOn signal and generate the required PWM to meet the prevailing S word etc. In your case you want
m3 to turn on the torch so you will have to write your own m3() function and put it in the macros folder of your profile. Thus Mach will find and execute your macro BEFORE it searches to find the built-in one.

I would guess you need to code something like:
Function m3()
1) g31 probe the surface of the material
2) Back off the surface of the material by 20mm or so
3) Activate the torch turn on relay.
4) Wait until the ARC_OK signal is received from the plasma. If an ARC_OK signal is not received within 5 seconds....bail ARC_FAIL_YOU_BLOODY_PLONKER.
5) descend to pierce height
6) Wait for the pierce delay
7) Return....this signals that the torch has fired, arc stabilised, pierced and is now ready to cut.

And your m5 would be something like:

Function m5()
1) De-activate the torch relay
2) Lift off the material by 20mm
3) Return

Craig

PS: the ARC_FAIL_YOU_BLOODY_PLONKER is optional!

59
Hi,

I have just generated another toolpath for a somewhat smaller part. I ran the Mach3Plasma post and have run the code on my mill. It runs fine, but obviously the spindle turns on
rather than a plasma, but the code runs fine with the correct clearance for the width of the cut.

As to what constitutes an decent m3....well.

Craig

60
Hi,
this is the Gcode generated by Fusion using the Mach3 Plasma post:

Code: [Select]
N10 G90
N15 G71

(2D Profile1)
N20 G0 X22.67 Y-2.5
N25 M3
N30 G4 P1.
N35 G1 X27. Y0. F1000.
N40 G3 X-27. I-27. J0.
N45 G3 X27. I27. J0.
N50 G1 X22.67 Y2.5
N55 M5


(2D Profile2)
N60 G0 X184.83 Y-117.5
N65 M3
N70 G4 P1.
N75 G1 X180.5 Y-120.
N80 G2 X180. Y-120.5 I-0.5 J0.
N85 G1 X-180.
N90 G2 X-180.5 Y-120. I0. J0.5
N95 G1 Y120.
N100 G2 X-180. Y120.5 I0.5 J0.
N105 G1 X180.
N110 G2 X180.5 Y120. I0. J-0.5
N115 G1 Y-120.
N120 G1 X184.83 Y-122.5
N125 M5

N130 M30

And there is nothing about it which is alien to Mach4. The only thing is that it uses M3 followed by a G4 P1 to turn the torch on. Have you a properly configured M3
in your profile?

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 »