4471
General Mach Discussion / Re: Is it me or Mach...Probably me :)
« on: April 13, 2012, 07:25:59 PM »
Try this way
LoadMatX = GetUserDRO(1017)' read the stored values
LoadMatY = GetUserDRO(1018)
LoadMatZ = GetUserDRO(1019)
DoButton(24)
RefCombination (1 + 2)
While IsMoving()
Sleep(10)
Wend
Code "G92 X0.00 Y0.00 Z0.00"
While Ismoving()
Sleep(10)
Wend
Sleep (2000)
Code ("G53 X" & LoadMatX & " Y" & LoadMatY & " F1500")
While IsMoving()
Sleep(10)
Wend
Code ("G53 Z" & LoadMatZ & " F600")'
While IsMoving()
Sleep(10)
Wend
Code "G92 X0.00 y0.00 Z0.00"
While Ismoving()
Sleep(10)
Wend
(;-) TP
LoadMatX = GetUserDRO(1017)' read the stored values
LoadMatY = GetUserDRO(1018)
LoadMatZ = GetUserDRO(1019)
DoButton(24)
RefCombination (1 + 2)
While IsMoving()
Sleep(10)
Wend
Code "G92 X0.00 Y0.00 Z0.00"
While Ismoving()
Sleep(10)
Wend
Sleep (2000)
Code ("G53 X" & LoadMatX & " Y" & LoadMatY & " F1500")
While IsMoving()
Sleep(10)
Wend
Code ("G53 Z" & LoadMatZ & " F600")'
While IsMoving()
Sleep(10)
Wend
Code "G92 X0.00 y0.00 Z0.00"
While Ismoving()
Sleep(10)
Wend
(;-) TP