01-05-2017 11:48 AM
Hi I have started learning plant sim for my executing projects in my organisation from this month only and I have to simulate below condition. Request you to inform me how to model so many conditions and in which all objects I will have to apply exit/entrance control and I am using plant simulation -12
All Mus(MU M,N,P,Q) go to final line through different paths
(but they follow below conditions and capacity of lines is also a constraint)
1.MU M always goes through LINE-3 (Long line) as it is least priority MU.
2.MU N always goes through Line-2 and then Line-c which is fixed.
3.MU P and Q always try to take shortest path available -priority of paths due to length-a>b>c>d
I have tried exit strategies in line/blocks I dont know how to write simtalk code for the same. I think it will have to be attached to different exit controls
01-05-2017 12:09 PM
Hi,
you can create an exit control in each line like the following (simtalk 1.0)
Exit control for line1
inspect @.name
When "M" then
@.move(Line3);
else
@.move(Line2);
end;
Exit control for line2
Set the exit strategy "Min Content"
inspect @.name
When "N" then
@.move(LineC);
else
@.move; --without the argument you are using the exit strategy, with the argument you are bypassing it
end;
P.s Usually I check every solution, but today I'm running out of time. Please, verify if the code works before applying it to your model!