Hello Guest it is October 16, 2019, 06:22:55 AM

Author Topic: Need help from Mach programmer or advanced user  (Read 2023 times)

0 Members and 1 Guest are viewing this topic.

Need help from Mach programmer or advanced user
« on: April 07, 2010, 11:05:46 PM »
Hi,

Im writing my own screenset in Flash.
When a part is feedholded,  I jog off and then return before continuing.
Im aware of the usage of the remember and return oem buttons,however the "preparational move" screen is not enough for my needs (specially because is not made for touchscreen) and I would like to replace it.
For this I would need to access the Remembered position, either via a DRO or a Param.

Does anyone know if this is possible? I think no dro exists that holds the remembered position, but maybe there is an internal parameter that im not aware off.

Thanks a lot for your help
Pablo

Offline zealous

*
  •  492 492
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Need help from Mach programmer or advanced user
« Reply #1 on: April 08, 2010, 05:38:14 PM »
The "Remembered position" grabs the current X,Y,Z,A and on Start will position the machine back before running the file.
You could have a variable that stores the current position when the FeedHold LED is active and the machine has stopped moving, then on the "Start" button issue a Gcode command to return to that position and then start to run the file again. You might just do VB in FLash or call on a macro with this code in it for example ( BTW: You may not want to move the Z this way, the code is just the idea of how to do it ;) ):

Something like this:

On The Feed hold button

'FeedHold
DoOemButton(1001)

'Wait for machine to stop
While ISMoving()
SLEEP(250)
Wend

'Store location
SetUserDRO(2000,GetOEMDRO(800))
SetUserDRO(2001,GetOEMDRO(801))
SetUserDRO(2002,GetOEMDRO(802))


==On the Start Button==

If(GetOEMLED(805) Then

storedX = GetUserDRO(2000)
storedy = GetUserDRO(2001)
storedz = GetUserDRO(2002)

Code("Go X" & storedX & "Y" & storedy & "Z" & storedz)

'Wait to move back
While ISMoving()
SLEEP(250)
Wend

End IF

'Run File
DoOEMButton(1000)
« Last Edit: April 08, 2010, 05:45:42 PM by zealous »
Re: Need help from Mach programmer or advanced user
« Reply #2 on: April 08, 2010, 08:51:46 PM »
Thanks zealous.
I tried it and I think it will work.
I had thought of something similar but since LED805 does not activate when feedholding in a canned cycle I discarded it. But now I found that feedholding in a canned cycle does not allow to jog, so it may actually work

Re: Need help from Mach programmer or advanced user
« Reply #3 on: April 09, 2010, 11:46:22 PM »
Hi zealous,

There is still a problem with the feedhold routine.
When I feedhold during a canned cycle, the machine actually pauses but the ismoving loop never exits

Any idea?