Hello Guest it is April 20, 2024, 12:04:32 AM

Author Topic: Tool lenght sensor error  (Read 193 times)

0 Members and 1 Guest are viewing this topic.

Tool lenght sensor error
« on: November 29, 2023, 04:32:45 PM »
CNC StepCraft 840D
UC 100 Controller

upgraded my cnc with Performance kit. Then I got a new card for the stepper motors. After that, the script that controls the Tool Length Sensor no longer worked.
The error message comes from the script and says: (Z-Plate is grounded, check connection and try again) You can find it in the lower part of the script.

Any tips on how to fix this?

Here is the script:

22:12
You have sent
CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return later
CurrentAbsInc = GetOemLED(48) 'Get the current G90/G91 state
CurrentGmode = GetOemDRO(819) 'Get the current G0/G1 state

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P2" ' this delay gives me time to get from computer to hold probe in place
Code "G90 G31Z-400. F90" 'probing move, can set the feed rate here as well as how far to move
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetVar(2002) 'get the exact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, 11) ' change .060 to your plate thickness and then adjust for final accuracy
Sleep 200 'Pause for Dro to update.
Code "G1 Z30. F300" 'put the Z retract height you want here, must be greater than the touch plate thickness
While IsMoving ()
Wend
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Code "F" &CurrentFeed 'Returns to prior feed rate
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if applicable
End If
If CurrentAbsInc = 0 Then 'if G91 was in effect before then return to it
Code "G91"
End If
If CurrentGMode = 0 Then 'if G0 was in effect before then return to it
Code "G0"
End If

Offline TPS

*
  •  2,505 2,505
    • View Profile
Re: Tool lenght sensor error
« Reply #1 on: December 01, 2023, 01:50:29 AM »
check your settings for probe input and check function in diagnostic screen first.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.