Page 1 of 1

Continuous loop - Loop Activity?

Posted: Tue Sep 26, 2006 11:56 am
by RodBarnes
I'm trying to implement some continuous loop logic in a sequence. I have been successful using the Loop Activity but it uses start/step/end values and I really want to just loop until a certain clock time which is trapped by a nested condition within the loop logic.

I can get it to work using very large end values for the counter but wondered if there was a more elegant way to do this; i.e.., a way to have it just loop until a nested condition causes and exit from the loop.

I was not successful creating any kind of loop logic without using the loop activity.

Posted: Tue Sep 26, 2006 12:02 pm
by DSguru2B
Did you try putting the end value as a negative number?

Posted: Tue Sep 26, 2006 12:19 pm
by RodBarnes
Yes, I tried both a negative end value and a step value of zero. It won't accept either.

The step value cannot be zero. The start value must be less than the end value if the step value is positive, or start must be less than end if the step is negative.

Posted: Tue Sep 26, 2006 3:25 pm
by srinivas_dsx
RodBarnes wrote:Yes, I tried both a negative end value and a step value of zero. It won't accept either.

The step value cannot be zero. The start value must be less than the end value if the step value is positive, or start must be less than end if the step is negative.
If I understand your issue correctly.....We had a similar situation and the way we handled this is by passing a parameter into the "To" step with the maximum run hours (e.g.: #MaxRunHrs#), whereas "From" and "Step" would be 1 and 1 respectively. Between the start and end loop activity stages we had some more routine activities and nested conditions.

Srinivas