Hello Guest it is September 20, 2019, 09:25:08 PM

Author Topic: Plasma Consumable Tracking  (Read 26013 times)

0 Members and 1 Guest are viewing this topic.

Re: Plasma Consumable Tracking
« Reply #30 on: October 29, 2012, 11:06:55 PM »
I'll try out my luck on the "Preview Routine" tomorrow. You have some gooooooood stuff. This is fun.

Thanks
GL
Re: Plasma Consumable Tracking
« Reply #31 on: October 29, 2012, 11:11:05 PM »
Hey, I'm just learning, give me a break. LOL I have so many things running through my head right now on helpful stuff that can be done, let me correct that, that you have probably already done. I will have to keep picking you brain. Hope you don't mind.

GL
« Last Edit: October 29, 2012, 11:12:36 PM by scbrniddvl »

Offline BR549

*
  •  6,898 6,898
    • View Profile
Re: Plasma Consumable Tracking
« Reply #32 on: October 29, 2012, 11:27:55 PM »
I will help any way I can.

(;-) TP
Re: Plasma Consumable Tracking
« Reply #33 on: October 30, 2012, 02:01:27 AM »
Terry is there a way to program a botton to subtract the values that was just added to the Units and Pierces DRO's? That would be nice to have if you had to Re-Gen a file to move the piece of material and re-zero the program zeros. That way the cumulative total would be correct.

Just wondering

GL

Offline BR549

*
  •  6,898 6,898
    • View Profile
Re: Plasma Consumable Tracking
« Reply #34 on: October 30, 2012, 09:28:22 AM »
The values will not update until the M30 runs and that triggers the M1030 to run. You can stop and start mid program if needed and it shoudl NOT trip the m30.

But yes you can create a button to do the subtract as welll as it can add. Use the same code but instead of the + sign substitute the - sign.

(;-) TP
Re: Plasma Consumable Tracking
« Reply #35 on: October 30, 2012, 12:50:28 PM »
Having trouble with the button. It doesn't want to do anything. I made a user defined button in Machscreen and (if I understood you correctly) made a macro like the 1030 except with "-" instead of "+" named it 1031. Assigned it to the button and saved the .set file. Everthing shows up where it belongs, but won't do anything. I also tried naming the macro Reset-1.m1s to see if there might have been a conflict. Still nothing, Error line shows,
"Nested comment found , Block = SetUserDRO(2000, (GetUserDRO(2000) - GetVar(650)) )
SetUserDRO(2001, (GetUserDRO(2001) - GetVar(651)) )

I don't know where you live but hopefully not on the East Coast. Hope your warm and dry.

Thanks

GL
« Last Edit: October 30, 2012, 12:58:24 PM by scbrniddvl »
Re: Plasma Consumable Tracking
« Reply #36 on: October 30, 2012, 02:58:29 PM »
Ok, solved my problem by checking the "Ignore M calls while loading". DUHHHH! I stupid. The total units and pierces still show in the Error bar so I can do a little elementary math in my head to determine whether or not to change nozzle or what ever. I liked your consumable page. That's pretty sharp.

Thanks

GL

Offline BR549

*
  •  6,898 6,898
    • View Profile
Re: Plasma Consumable Tracking
« Reply #37 on: October 30, 2012, 05:04:01 PM »
OK if you wanted a subtract button. IN Machscreen create a user button AND while you are there add this code to the button.

SetUserDro(2000, (GetUserDro(2000) - GetVar(650)) ) 
SetUserDro(2001, (GetUserDro(2001) - GetVar(651)) ) 

THen when you have loaded MACH3 back up and then you have a Cut file loaded then pressed the button it will subtract the Values from your running totals.

(;-) TP
Re: Plasma Consumable Tracking
« Reply #38 on: October 30, 2012, 07:51:26 PM »
Got things working! ;D I Decided to use the nice built-in feature of Mach to ignore M calls while loading. Works well for my situation. I cleaned up the settings page and dumped some stuff I don't need and put in a consumable area similar to the one you have. I am very pleased so far with the way it works, thanks to you. I have a couple more parameters to put in and then I'll be happy.
Hope everything is going well with you.
I'll post back with more results.

Thanks for everything so far. (You notice I said "so far" LOL)

GL

Offline BR549

*
  •  6,898 6,898
    • View Profile
Re: Plasma Consumable Tracking
« Reply #39 on: October 30, 2012, 09:10:54 PM »
Good to hear good job.  I have the file writing stuff IF you need it(;-)

DiD I tell about the Auto Stacking routine were you can stack multiple cuts of the same part and cut quantaties of the same part. either Horizonally or vertically ? Just an extra button(;-)

SOrry could not resist, (;-) TP