21214
« on: November 06, 2008, 08:20:28 PM »
Strange on Chip, my Ref All button has the following in it
DoOemButton (240)Â Â Â Â Â Â Â Â Â Â Â 'De-Reference All axis
Sleep(10)
If GetOemLED (809) Then        'Check that Ref Z LED is RED
 Do
  Call SetModOutput (20,1)       'Activate ModOutPut 20
  If GetInput(18) Then Exit Do    'Loop until ModInPut 18 is seen
  Sleep (10)
  Loop
  End If
  Call SetModOutPut (20,0)      'DeActivate ModOutPut 20
  DoButton (24)            'Set Z axis Home
 Â
 Â
If GetOemLED (807) Then
 Do
  Call SetModOutPut (21,1)
  If GetInput(19) Then Exit Do
  Sleep (10)
  Loop
  End If
  Call SetModOutPut (21,0)
  DoButton (22)
So ignoring the Mod stuff basically it is DeReff'ing the axis then pressing the zero buttons, wonder if you put the DeRef at the start of your RefAll button if it would make a difference?
Another thing is I know my VB stopped working on one of the Dev versions and putting the DoButton(2*) twice solved the problem but Brian soon found the bug and solved it.
Hood