 If GetOemLED (809) And GetOEMLED(807) Then               'Check to see if Z and X are referenced DoOemButton (1003)                                       'If NOT referenced then Stop  MsgBox "Axis Not Referenced, Home machine first"        'Display message box for operator  Else Message "Axes referenced, continuing with code"          'If referenced message in ticker to say so   End If