0 Members and 1 Guest are viewing this topic.
DoOEMButton(1001)'Wait for machine to stopWhile IsMoving()Sleep 100Wend'Get current Zcurrent_Z = GetOEMDRO(802)'Add 2' to zinc_z = current_Z + 2'Sent command you can use G1 as well if needCode "G0 Z" & inc_z
'FeedHoldDoOEMButton(1001)'What mode are we inmode = GetOEMLed(49)'Wait for machine to stopWhile IsMoving()Sleep 100Wend'Sent command you can use G1 as well if needCode "G90 G0 Z2"'If we have changed from abs to inc mode then change backIf mode = true Then code "G91"End If