That works ... sort of.
Stepping through w/the editor is OK.
Won't run on its own.
There is more in the pump. Care to take a look ? Might need some waits in there. ?
Thanks Ger,
Russ
MaxStroke = GetUserDRO (1105)
CutLength = GetUserDRO (1100)
SawKerf = GetUserDRO (1104)
NumberOfCuts = GetUserDRO (1106)
Divider = GetUserDRO (1107)
' This divides the available stroke by the Feed Increment
SetUserDRO (1107,MaxStroke / (CutLength + SawKerf) )
' This rounds it down to the nearestWhole number of Increments
DROInteger=CStr(GetUserDro(1107))
Length = Len(DROInteger)
For X = 1 To Length Step 1
lstring=Left(DROInteger,X)
If Right(lstring,1) = "." Then
NewLength = x-1
Exit For
End If
Next X
WholeNo=CInt(Left(DROInteger, NewLength))
SetUserDRO(1106,WholeNo)