If you would like to check every one that is not a problem! You can do the following:
Sub Main()
If( GetLED(86) = false)Then
If(GetLED(7) = true)Then
'The X has not been homed and is enabled
Code("( X not referenced. Please Ref All Home)")
Exit Sub
End If
End If
If(GetLED(87) = false)Then
If(GetLED(
= true)Then
'The y has not been homed and is enabled
Code("( Y not referenced. Please Ref All Home)")
Exit Sub
End If
End If
If(GetLED(88) = false)Then
If(GetLED(9) = true)Then
'The z has not been homed and is enabled
Code("( Z not referenced. Please Ref All Home)")
Exit Sub
End If
End If
End Sub
Main