hi dezsoe,
i have this code:
Public Sub Loop_event()
If LoopStop Then
Return
End If
LoopWorking = True
reloadcode()
If FirstRun Then
testcmdline()
' Write code here which has to be run on first cycle only...
End If
Try
Catch ex As Exception
End Try
LoopWorking = False
' Console.WriteLine("" + Convert.ToInt32("A"))
End Sub
Dim cnt As Integer = 25
Private Sub testcmdline()
If Not UC.GetLED(25) Then Return
If cnt > 0 Then
cnt -= 1
Return
End If
UC.Loadfile("file to be loaded")
FirstRun = False
End Sub
Dim cnt2 As Integer = 250
Private Sub reloadcode()
If Not UC.GetLED(25) Then Return
If cnt2 > 0 Then
cnt2 -= 1
Return
End If
UC.Callbutton(555) 'reload the same file again
End Sub
after 10 sec he has to reload a file but UCCNC crashes. what i am doing wrong?
regards