I began a few days ago to work with this simulation software and I am trying to simulate the production of a quite complex product. The product has to go from step to step through the entire line. After (or during)each step, I would like to define the "state" of the part as "OK" or "KO" depending on some statistics. Depending on these statisitcs, the part could choose between two different path :
It is a kind of continuous quality control of the product, to be sure that the part is correctly produced after each step.
Thank you very much for your help!
Solved! Go to Solution.
Each step will be modelised by a singleproc for example. Each step will have a exitcontrol method that allows your MUs to move according the MUs status.
.MaterialFlow -> SingleProc -> Duplicate -> Call it "STEP" for example.
Go to the attributes and create a new attribute call it "ExitCtrlMeth". Attach this method to the exitControl.
The method looks like this :
is do local myMU : object := @ ; local myStep : object := myMU.location ; mySetp.exitLocked := TRUE ; waituntil myMU.OK prio 1 ; mySetp.exitLocked := FALSE; end;
You should also define a new attribute on your MUs for OK and KO status.
I wish it helps.
Thank you for your answer! I now better understand how to estalblish some exit controls and creteria.
I think the "exitLocked" function does not allow some MUs to pass if they don't repect the condition. In my case, I would like them to go out anyway, but to a different next step depending on the state. For example, at step 1, if the state in "OK" the part will move to step 2. But if the state is "KO" at step 1, the part will go to step 3.
The exit control should act like a guide to tell the MU where it has to go next.
You could also change the exit strategy to "MU-Attribute" and set the exits based on the Attributes.
For Info on how to do it, just refer the help documentation and search for "Exit Strategy" or "MU-Attribute".
I hope this helps.
Okay ! In this case, you don't need to create an exit control method.
Go on the exit Strategy of your STEP -> MU Attribute -> Apply -> Attribute Type (String) -> Open List
And fill the list according to the status.
Your Step should be connected to two other steps.
PS : the second line is KO not OK !
Thanky O.C. and Simpulse. Actually, I found this process before. The issue I have is to access to the attribute of a MU during the production step.
What I have now is a table for the source, that gives me when the parts are released, the name and I could put the status too. I set the exit strategy as you mentionned too. The question I have is the following :
"With a production step (Singleproc for example), how can I modify an attribute of a MU? I would like to define the status "OK" or "KO" of a MU in function of statestical data."
Thank you so much