Thread: z axis not working
Hybrid View
-
27-10-2021 #1
here is code a put in
VB Code Start
'-------------------
CurrentFeed = GetOemDRO(818)
DoSpinStop()
ZMove = 100.00 'Total lenght of Probe to move before Stop or no Contact Made.
ZOffset = 1.57 ' Plate Hight
ZSal = ZOffset + 20.00 '+ Free Hight, Will possition the Proble 20 MM over the Material.
StopZmove = 0
If GetOemLed (825)=0 Then
DoOEMButton (1010)
Code "G4 P2.5"
Code "G31 Z-"& ZMove & "F200"
While IsMoving()
Sleep(200)
Wend
Probepos = GetVar(2002)
If Probepos = - ZMove Then
responce = MsgBox ("**ERROR** " , 4 , "Probe **ERROR**" )
Code "G0 Z10"
StopZmove = 1
Code "F" &CurrentFeed
End If
If StopZmove = 0 Then
Code "G0 Z" & Probepos
While IsMoving ()
Sleep (200)
Wend
Call SetDro (2, ZOffset)
Code "G4 P1"
Code "G0 Z" & ZSal
Code "(Z zeroed)"
Code "F" &CurrentFeed
End If
Else
Code "(Check Ground Probe)"
End If
Exit Sub
'-------------------
'VB Code Stop
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Axis not working properly
By Georgehun in forum Gantry/Router Machines & BuildingReplies: 14Last Post: 28-12-2021, 03:39 PM -
FOR SALE: Fadal VMC15 4th axis. VGC . Not working after 6yr storage. sell as is or break ?
By spaaz in forum Items For SaleReplies: 3Last Post: 21-11-2019, 08:51 PM -
MPG has stopped working
By CNCDev in forum CS-Lab (CSMIO)Replies: 2Last Post: 19-12-2018, 06:54 PM -
Z drive not working
By whensparksfly in forum General ElectronicsReplies: 3Last Post: 14-04-2016, 09:14 PM -
x&z not working
By cncjohn in forum Linear & Rotary MotionReplies: 5Last Post: 18-08-2013, 12:58 PM



Reply With Quote
Bookmarks