Quote Originally Posted by jetpr View Post
sorry forgive my bad interpretation.

i am working with a watter pump for a robot with hydraulic..

while (CurrentStepl < CurrentStep)
CurrentStepl = CurrentStepl + 1
if (CurrentStepl > 100) or (CurrentStepl=255) then goto FF3
if (PumpDC < 50) then 'Some time get crazy and go more > 53
PumpDC = (MathSet * CurrentStepl + PumpDcSet)
Pause PauseScalefactor
endif
wend

If some one have see this before.
I might see a little bit of something...
That line: PumpDC = (MathSet * CurrentStepl + PumpDcSet)
Maybe it needs another set of parenthesis? Maybe like this instead:
PumpDC = ( ( MathSet * CurrentStepl ) + PumpDcSet ) or
PumpDC = ( MathSet * ( CurrentStepl + PumpDcSet ) )

I'm just guessing though since info is a bit sparse...