Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: mehmetkose on August 13, 2010, 04:35:53 PM

Title: I need urgent help..!please...
Post by: mehmetkose on August 13, 2010, 04:35:53 PM
Hi, I'm writing code Can you PAUSE button by pressing it it position in mind to hold and the code "G00 x10 Y10" will operate then the START button when you keep in mind that the code I'd go back from where it will continue helping Waiting for an emergency, please ....
Title: Re: I need urgent help..!please...
Post by: Hood on August 13, 2010, 04:38:04 PM
If you can try and type that again  in English it might get you help, afraid the majority of people who use this forum have English as their main language.
Hood
Title: Re: I need urgent help..!please...
Post by: mehmetkose on August 13, 2010, 04:42:24 PM
Hi Hood, I could not understand what he meant, but I think I can not use English well talking about it .. if so my English is not good you're right (terrible) can help me get about my problems Hood?
Title: Re: I need urgent help..!please...
Post by: Hood on August 13, 2010, 04:49:48 PM
Well you seem to have changed the original post as previously it said
Quote
merhaba, bana bir kod yazabilir misiniz, PAUSE butonuna basınca o ondaki pozisyonu aklında tutacak ve code"g00 x10 y10" işletecek daha sonra START butonuna basınca aklında tuttuğu koda geri gidip kaldığı yerden devam edecek yardımlarınız bekliyorum acil lütfen....

However I am still unsure what you are asking. :(

Hood
Title: Re: I need urgent help..!please...
Post by: mehmetkose on August 13, 2010, 04:55:19 PM
I'm so sorry, really sorry ... I write TURKISH, but first I would write in English! :)
Title: Re: I need urgent help..!please...
Post by: Hood on August 13, 2010, 05:18:02 PM
Ok I will see if I can use babelfish to translate now I know the language. Might help, might not.

Hood
Title: Re: I need urgent help..!please...
Post by: Hood on August 13, 2010, 05:34:18 PM
This is what I come up with

Hi, I'm writing code Can you PAUSE button by pressing it it position in mind to hold and the code "G00 x10 Y10" will operate then the START button when you keep in mind that the code I'd go back from where it will continue helping Waiting for an emergency, please ....

Still not really sure what you are wanting but I will take my best guess.
You are wanting to press a button, it will pause then once stopped will move to G0X10Y10 and then when you press the start button again it will go back to the position it stopped at and continue.

If that is correct I am sure someone will help you out, afraid I am not very good at VB but maybe Terry(BR549) will jump in as he has a good knowledge of VB.
Hood
Title: Re: I need urgent help..!please...
Post by: mehmetkose on August 14, 2010, 04:31:12 PM
fully with the want to do that normal work during the FEED HOLD button when the current x, y and z axis values in mind holding x0 y0 z0 coordinate go CYCLE START button to press to wait, CYCLE START button when you keep in mind that the x, y and z axis, go back to the from where it will continue to work ... I know how you do it?
Title: Re: I need urgent help..!please...
Post by: Hood on August 14, 2010, 06:55:45 PM
Afraid I dont understand :(
Hopefully someone else will work out what you want and help you out.
Hood
Title: Re: I need urgent help..!please...
Post by: mehmetkose on August 14, 2010, 06:59:07 PM
My GODDDDD, I could not understand why we disagree ....my GOD     Did you understand it?
Title: Re: I need urgent help..!please...
Post by: mehmetkose on August 14, 2010, 07:01:29 PM
I started to feel like myself stupid :'( :'( :'( :'(
Title: Re: I need urgent help..!please...
Post by: mehmetkose on August 14, 2010, 07:04:31 PM
Do you know another language? German? Italian?
Title: Re: I need urgent help..!please...
Post by: Hood on August 15, 2010, 02:37:20 AM
No afraid not.
Hood
Title: Re: I need urgent help..!please...
Post by: Phooey138 on August 15, 2010, 06:11:37 AM
I think he wants to be able to do some work in there with his hands, and not have the cutter in the way. so he would like the machine to go to a safe position when a button is pressed, let him get in there and move clamps, remove chips, whatever hes doing, and then press the button again to get back to where he was in the program. The VB script would need to save the current position and line in the program, go to a safe z, then go to x0y0, and on the next press of the button go back to that position on the xy then z before finally resuming the program at the line it stopped on. i don't know how to do this, but thought we should think about what the problem really is first and hope that i have interpreted it correctly. isnt it easy to write this data to a text file and read it later in VB? you might not even have to save what line you are on if you can call the feed hold button from the VB script and just be exactly in the same spot when you resume- the program should just still be at that line. also, turning off the spindle would be required im sure.
Title: Re: I need urgent help..!please...
Post by: olf20 on August 15, 2010, 09:06:46 AM
I'm not sure how reliable it is, but if you press Feed Hold, then Stop, move to your safe location,
then press Run From Here followed by Start, Mach will prompt you that it is going to move
back to the lines ordinates.
Not sure if this will help.
olf20 / Bob
Title: Re: I need urgent help..!please...
Post by: mehmetkose on August 15, 2010, 09:47:41 AM
I understand this is a safe procedure, how do I do? I want to do the event; FEED HOLD button when the current coordinates in mind to keep, and Z axis = 10, X and Y axis = 0 will do, then the CYCLE START button when you keep in mind that the coordinates will come back and stay where he starts going to ... Mehmet
Title: Re: I need urgent help..!please...
Post by: Hood on August 15, 2010, 10:06:39 AM
Ok sounds like what I said way back

FeedHold -> Store position -> G0X10Y0

Start -> Move to stored position -> Continue with code



Is that correct?

Hood
Title: Re: I need urgent help..!please...
Post by: mehmetkose on August 15, 2010, 10:09:12 AM
yeah right, in the same way
Title: Re: I need urgent help..!please...
Post by: Hood on August 15, 2010, 10:12:56 AM
lol you should have said that way back ;D

Ok as I said I am not good at VB but I will try.
You will need 2 buttons on your screen, one will be for             FeedHold -> Store position -> G0X10Y0
The other will be for                                                         Start -> Move to stored position -> Continue with code

I will try and write the VB and post back later but I am working now so it may be 3 or 4 hours.

Hood
Title: Re: I need urgent help..!please...
Post by: mehmetkose on August 15, 2010, 10:16:09 AM
I'm sorry to keep you busy ... I 'm sorry that prevents you from working. I'll use it for machine quilting. not a matter of time. come easily when you look great, greetings from TURKEY ... Mehmet     msn:  kosemehmet2002@hotmail.com
Title: Re: I need urgent help..!please...
Post by: BR549 on August 15, 2010, 10:45:47 AM
Hood Let me know if you need help with the code. We do something close with plasma. It is posted in the Mach tool box.

It will also depend on IF he needs to "Run from here" or "set next line" to restart . With plasma being a 2d function we can just use "set next line". With a sewing function I really don't know what is needed(;-) I would need to see an example of his Gcode file.

ALSO there is a set of function buttons on the main mach screen called Remember  and Return. If you stop the program with a feedhold/stop you would push the remember button then move off and do whatever. When you are ready to return punch return. A popup window will allow you to autoreturn to the spot you left. Then do you favorite restart function(run from here, set next line)

Just a thought,(;-)
Title: Re: I need urgent help..!please...
Post by: Hood on August 15, 2010, 11:44:55 AM
Terry I would be delighted if you did this, as I say my VB skills are crap and although I usually get there in the end it takes me a long time and many syntax errors :)

Hood
Title: Re: I need urgent help..!please...
Post by: BR549 on August 15, 2010, 02:04:23 PM
THis is based on doing a SET NEW LINE approach If you need to use "RUN FROM HERE" let me know.   Hood I am glad top help out just did not want to butt in if you were wanting to practice your VB(;-)

There are 2 buttons 1 to stop the program and record all the paramaters needed to restart then MOVE off to a safe location.

1 button to restart the process move back to position and restart.

Give it a try and let me know if we need to modify it for your use

'***********************************************************************
'Stop Button     Feedhold/stop to check torch
DoButton(1)                 'Feedhold
While IsMoving      'Wait for movement to stop
Sleep(100)
Wend
DoSpinStop                                 ' Turn OFF spindle if running
Sleep(1000)
DoButton(286)            ' Set positions
Sleep(1000)
DoButton(3)      'Set Stop
Sleep(1000)
SetVar(301,GetDro(2))
sleep(100)
SetVar(304,GetDro(18))   'SetVar to Feedrate
Sleep(100)
SetVar(305,GetDro(16))   'SetVar to CurrentLine#
Sleep(100)
Code"G0 Z10.000"      'Move to a SafeZ
While IsMoving()      
Sleep(1000)
Wend
Code"G0 X0.000 Y0.000"    'Move to a safe XY position
While Ismoving()
Sleep(1000)
Wend
Code"(Stop Routine Complete)"
End    

'************************************************************************************************************************

'Restart Button to return to work
Code"G1 Z10.000 F#304"             'Go To a SafeZ
While IsMoving()
Sleep(1000)
Wend
SetDro(16,Getvar(305))   'Reset SET NEXT LINE #
Sleep(100)
SetDro(18,GetVar(304))   'Reset Feedrate
Sleep(100)

DoOemButton(285)             'Return to stop position
While IsMoving()
Sleep(1000)
Wend
Code"G1 Z#301 F#304"      'Return Z to stop Point
While IsMoving()
Sleep(1000)
Wend
DOSPINCW()      'ReStart Spindle if needed
Sleep(100)
DoButton(0)       'Resume Program Run from Stop Point
Code"(You are now back ONLINE cutting )"
End          

 
 
 

Title: Re: I need urgent help..!please...
Post by: Hood on August 15, 2010, 05:13:13 PM
  Hood I am glad top help out just did not want to butt in if you were wanting to practice your VB(;-)

Dont ever refrain from doing that, VB is a chore for me. It took me nearly a week to work out how to do the code for my coil winder then a week or so after that I happened upon some that Brian had done for Benny ;D Getting it done though does leave me with a sense of achievement but its something I prefer to only do when I have to. I do prefer to work things out for myself rather than get it handed to me on a plate but when its for others I have no objection to the more knowledgeable doing it :)

Hood