2826
« on: June 07, 2006, 07:14:18 AM »
If you are going to do that write theit as a Ver in Mach3... This is how I did a 2X10 array:
For i=0 To 19 Step 2
Call setVar ((120 + i), GetUserDRO(1140 +i))
Call setVar ((121 + i), GetUserDRO(1141 +i))
Next
to read the array I did the following:
For i=1 To 10
onOff = Int( LEDonOff / ((10^ i)/10)) - Int( LEDonOff / ((10^(i+1))/10))*10
X = FormatNumber (GetVar(100 +((i-1)*2)),4)
Y = FormatNumber (GetVar(101 +((i-1)*2)),4)
If onOff = 1 Then
If Nc=0 Then
Call Drill_cycle(X,Y,Z,Q,R,F)
Else
Code " X" & X & " Y" & Y
End If
Nc=1
End If
Next
I did this so I could have a gobal variable... I also used a register to save the led's states and that tells the loop if the point is used... I know it is not how you would do it if you were doing real VB but it works!