I have a question regarding the equipping of MUs with different attributes/properties.
Specifically, I want to classify some parts machined in a SIngleProc as NOK parts as they might have failed the process due to failure of the SingleProc. it is important as the attribute if they are OK or NOK will define their further path throughout the line. Is there any easy way to identify them as an NOK part in the further process as they fail within the corresponding SingleProc?
Thank you for any help or advice in advance!
Solved! Go to Solution.
you can define an attribute for the MU as for example isOK of type boolean and set this attribute to true or false depending if the MU is OK or NOK.
If you want to know how many failures the Mu has, then define the attribute as integer and every time there was a failure, you can increment the attribute. This is useful if you want to model reworking and you have to determin the rework time depending on the number of failures.
Hope this will help.
Thank you for the advice!
So one thing I don't understand then is how to link the attribute to the failure.
How do I trigger the change or increase of that failure counter with the failure of a SingleProc ?
you can use the Fail control of the station. Everytime a failure begins, you can increment the attribute in this control. The Failcontrol has two parameters: FailureIsStarting : boolean, ProfileName: string
With this it is also possible to decide if the failure of the station also creates a failure on the product or not.
Hope this helps.
as I tried a lot of times now, I still did not figure out on how to implement that FailCtrl method correctly.
So how do I use it exactly? In an entrance control of the SingleProc? What are the returned parameters by the method?
And how exactly do I increment for example the nok integer-attribute I defined on the MU in case it is processed on a failed machine?
Do you maybe have a code example on this? I am really struggling to find out, at which point to call the method and what to do with it
Thanks for your patience!
If you take your time and look in plant simulation help and type in the key word
"fail control" you will find a detailed description of how to implement a fail control method.
In the created fail control method you can check
- if the station is empty or not ( if station.empty ...)
if station is not empty then set mu.ok attribute (station.mu.ok:=false)