Hello Guest it is April 28, 2024, 06:20:51 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ellik

Pages: 1
1
Another trick is to add a Sleep(300) just after calling SetDRO, especially if the next line in your script calling a moving the same axis you just changed the DRO for. It looks like there is a synchronization problem between the VB script and the mach driver (probably running in different processes or threads) Otherwise the next move might be executed based on the previous DRO position, not the one you just set.

This solved a problem for me anyway. Worth a try.

EK

2
The problem here is that the axis will always move a little just after the probe trippes, it can't stop immediately and the distance directly linked to the feed rate used for probing. The location where the axis stops is not the same location where the probe tripped so you will have to take that difference into account either by moving back to the probed location or calculate the delta before setting the DRO.

EK

3
Before you set the DRO make sure the axis are not moving. I had a similar problem and this is how I solved it.

   currX = GetOEMDRO(800)
   currY = GetOEMDRO(801)
   currZ = GetOEMDRO(802)
   probeRadius = 0.05
   Code "F10"
   
   'Probe down 1 to surfice
   Code "G31 Z" &currZ - 1
   While IsMoving()
   Wend
   probeZ = GetVar(2002)

   'Move to probed location + 0.1
   Code "G0 Z" &probeZ+0.1
   While IsMoving()
   Wend

   'Set DRO once axis has stoped
   Call SetOEMDRO (802, 0.1)

Elli

4
Feature Requests / Spindle Index pulse and safty.
« on: May 16, 2009, 04:57:33 PM »
I have been wondering if there is a way to add an extra safety option in Mach in case the spindle does not turn on or does stop for one reason or the other using the spindle index pulse. If Mach has the spindle turned on but no index signals generated within a certain time interval an e-stop is raised stopping the system.

A "Spindle Inhibit" input signal could be beneficial as well, e.g. when using a probe one can have a 4 pin plug where 2 of the pins close the inhibit signal loop preventing the spindle to turn on and potentially damaging the probe, when plugged in.

Regards.
Erlendur.

Pages: 1