Hi Everyone,
I am trying to write a macro that will move to a home or tool change position for milling
it looks like this
Feed=GetDRO(18)
ofset=GetDRO(0) - This must read which coordinate is active G54, g55, g56 etc.
code "g54" - This must set G54 (Machine coordinates
Code "g00 Z0" - This must move Z home (or tool change position)
code "g00 x0 y0" - This must home X and Y
SetDRO(18,Feed) - this must restore feedrate
setDRO(0,ofset) - This must restore coordinate that was used before homing (this line seems to be the problem)
sadly this macro doesn't work
can anyone please help