The Reset button: reset an alarm
In the event an axis encounters a problem that triggers an alarm, we use ResetAxis to reset the alarm. The method of this button is btnRESET_Click.
Private Sub btnRESET_Click(sender As Object, e As EventArgs) Handles btnRESET.Click
Dim Mindex As Integer = lbMList.SelectedIndex
'Makes the transition from the state ErrorStop to Standstill or Disabled by
'resetting all internal axis-related errors – it doesn't affect the output
'of the function instances.
motion.ResetAxis(Mindex)
End Sub