Cancel
Showing results for 
Search instead for 
Did you mean: 

Move x MUs into a Buffer

Pioneer
Pioneer

Dear Community members,

At the beginning of a month I have a buffer with some MUs. In normal conditions I send MUs to the next buffer, but, if some triggers are activated, I need to move x MUs to the usual Buffer and y MUs (y is a global variable) to another buffer. How could I implement it?

Thank you.

2 REPLIES 2

Re: Move x MUs into a Buffer

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

You could use another global variable to trigger this. For example, if i have a global variable "k" and i want to trigger this movement when k=0, the sample method would look like this

is
	n : integer;
do
	if k=0 then
		for n := 1 to 5 loop
			buffer.cont.move(A);
		next;

	end;
	for n := 1 to 3 loop
		buffer.cont.move(B);
	next;

end;

i Have also attached the model.

Re: Move x MUs into a Buffer

Pioneer
Pioneer

(it seems) I solved in a different way because some costrains don't allow me to use your solution, but thanks anyway because your model gave me the ispiration.

 

Best regards