Example_1:
Steps=100
Step=0
RPM_MAX=160
RPM=55
while (Step< Steps)
Step= Step+ 1
IF (RPM < RPM_MAX) Then ' One time the RPM get to the MAX RPM the if shut not get in
Pump_DC = (Scale / 100 * Step+ Pump)
Pause 100
ENDIF
RPM=RPM+6
wend
Example_2:
Step=0
RPM_MAX=160
RPM=55
for x=1 to 100
Step= Step+ 1
IF (RPM < RPM_MAX) Then ' In this Case with for next Work
Pump_DC = (Scale / 100 * Step+ Pump)
Pause 100
ENDIF
RPM=RPM+6
next x
Bookmarks