11
VB and the development of wizards / Re: Scripter compile error in
« on: January 18, 2014, 12:40:21 PM »Working great so far. I'm just fixing up some minor bugs.
That kicks butt! (in a good way of course!!)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Working great so far. I'm just fixing up some minor bugs.
I would think that the CS Labs guys should be made aware of this and change their plugin to match the parallel port if possible.
There are two more syntax errors I'm getting: The next one is from my last 2 lines of code:
CloseTeachFile
Call LoadTeachFile()
End Sub
Main
It highlights "End Sub" as the error.
And if I comment that line out of the code, it highlights the blank space on the next line of code after "Main" which is the last line. I keep removing any blank characters or spaces after the last line, but every time I run the code it adds that blank character back and highlights the white space in the editor where the character would be.
Thanks for the help. I used the editor in Mach3 and am getting the cursor to point to the syntax errors.
The first one is in an if/then statement. Here's the snippet of code...
If GetUserLED(1063) Then
If FinishCutDirection = 1 Then
Code "(Cut initial circle) G91 G3 x0 y0 i#1001 j#1002"
Else
Code "(Cut initial circle) G91 G2 x0 y0 i#1001 j#1002"
End If
Code "(Set abs mode) G90"
Code "(Start finishing subroutine) M98 P1234 L[90/#4005]"
Code "(Move to final circle start) x[#1001+#5002-#5007] y#1002 z[#1003-#2001]"
If FinishCutDirection = 1 Then
Code "(Cut final circle) G91 G3 x0 y0 i#1001 j#1002"
Else
Code "(Cut final circle) G91 G2 x0 y0 i#1001 j#1002"
EndIf
Else
Code "(Start finishing subroutine) M98 P1234 L[360/#4005 + 1]"
End If
It is highlighting the 3rd to last line, "Else", as the error. Can I not nest the if/then statements as I did?
Using this wizard is it possible to probe the outside of an object, and also the inside of a few pockets and save to the same DXF?
IF you center the probe tip first you STILL have the problems of the trip being OFF in 6 possible quaudrants while you try to center the ring. This will introduce error into your table.