Hello Guest it is September 22, 2019, 01:04:52 PM

Author Topic: Plasma Consumable Tracking  (Read 26018 times)

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,898 6,898
    • View Profile
Re: Plasma Consumable Tracking
« Reply #50 on: October 31, 2012, 09:18:38 PM »
Are you running the machine or just looking at the pretty picture(toolpath) on the toolpath you will only see 1 as it always starts based on 0,0.

(;-) TP
Re: Plasma Consumable Tracking
« Reply #51 on: October 31, 2012, 09:21:50 PM »
Running the machine with torch off. That shouldn't make a difference should it?

GL
Re: Plasma Consumable Tracking
« Reply #52 on: October 31, 2012, 09:24:34 PM »
I loaded a program, zero'd the program DRO's and pushed the button. It makes the first pass and stops.

GL
Re: Plasma Consumable Tracking
« Reply #53 on: October 31, 2012, 09:27:37 PM »
Should there be some sort of diminishing counter. I don't see anything in the macro to suggest that. Of course I'm old and blind in one eye and can't see out of the other. lol
Should the next X statement be: X-1 maybe?
GL
« Last Edit: October 31, 2012, 09:33:50 PM by scbrniddvl »

Offline BR549

*
  •  6,898 6,898
    • View Profile
Re: Plasma Consumable Tracking
« Reply #54 on: October 31, 2012, 09:38:45 PM »
OK I SEE what it is. It was developed on and OLDER version of MACH back when it actually had control over the threads . I will have to remake it to work with the newer versions.

countdown ? it could have.

(;-) TP
Re: Plasma Consumable Tracking
« Reply #55 on: October 31, 2012, 09:44:23 PM »
Sounds good. I'll be your tester. lol Ok, Dr., you do your thing. I'll probably ring your bell tomorrow or just wait to see something from you. No hurry.

Thanks much

GL
« Last Edit: October 31, 2012, 09:54:16 PM by scbrniddvl »

Offline BR549

*
  •  6,898 6,898
    • View Profile
Re: Plasma Consumable Tracking
« Reply #56 on: October 31, 2012, 10:14:56 PM »
OK this fixes it here, give it a whirl.  ALSO I put in a countdown for ya. You will have to add a userdro(2002) to your screen. I tried to write it to the status BAR but when mach3 reruns the Gcode it writes  the gcode messages over the to go message(;-). SO if you want a countdown add the dro.

(;-)TP

'Macro M3007 Auto Batch Load Horizonal
Dim fname As String
Dim Cuts As Single
Dim Xext As Double
Dim Yext As Double
Dim Test As String
Dim Cdown As Single

Test = ("No File Loaded.")
Fname = FileName()
While Ismoving()
Wend
Message"" &Fname
While Ismoving()
Wend
If Fname = Test Then
MsgBox("No File Loaded, PLEASE LOAD FILE and RESTART")
 End
 End If
Cuts = Question("How Many Horizonal Parts UP TO 10 ?")
If Cuts >10 Or  Cuts <1 Then
MsgBox(" Number Out Of Range 1-10 Retry Again ")
 End

End If

Cdown = Cuts

SetUserDro(2002,Cdown)

Message" Parts to Go: "& Cdown

For x = 1 To Cuts
If x = 1 Then RunFile()
If x = 2 Then RunFile()
If x = 3 Then RunFile()
If x = 4 Then RunFile()
If x = 5 Then RunFile()
If x = 6 Then RunFile()
If x = 7 Then RunFile()
If x = 8 Then RunFile()
If x = 9 Then RunFile()
If x = 10 Then RunFile()

While Ismoving()
Wend
COde"G4P1"


Xext= GetOemDro(10)
While Ismoving()
Wend
Yext= GetOemDro(5)
While Ismoving()
Wend
Code" G0 Z1.00"
While IsMoving()
Wend
Code"X" & (Xext + .250)
While Ismoving()
Wend
Code"Y"& Yext
While IsMoving()
Wend
DoButton(8)
While Ismoving()
Wend
DoButton(9)
While Ismoving()
Wend

Cdown=(Cdown-1)

SetUserDro(2002,Cdown)
While Ismoving()
Wend

Next x

Message("End Of Batch Load")
End

 
« Last Edit: October 31, 2012, 10:22:42 PM by BR549 »
Re: Plasma Consumable Tracking
« Reply #57 on: October 31, 2012, 11:38:04 PM »
Hey, it wasn't that I wanted a countdown, I am of the old school of programming, not use to this type. I didn't see a way for the macro to loop since I didn't notice a way to subtract a cut number per loop of the program. I know I'm dumb, trying to learn. I remarked the dro stuff out, and it still only cuts 1 pass. Don't worry about it, like I said no hurry.

Thanks

GL
Re: Plasma Consumable Tracking
« Reply #58 on: October 31, 2012, 11:50:28 PM »
That was interesting, I put a DRO in and when I entered the quantity of parts it showed what I entered, but did a countdown to 0 before it started its cut move. And just cut one.

GL
Re: Plasma Consumable Tracking
« Reply #59 on: October 31, 2012, 11:59:05 PM »
Just tried it with torch on, thought it might make a difference, but did the same. Something to ponder, yes?

Thanks

GL