question

Felipe G avatar image
0 Likes"
Felipe G asked Jason Lightfoot answered

How can I "delete" the elements on the processor when there's a breakdown?

I've got a model that it has a breakdown for 1 hour, but the element on processing, stills there counting TimeInSystem. Is there some way that this element go directly to a sink of elements don't processed, I'm trying with a Trigger applying an OnStop . I'm using a list flow there the elements wait in queue a certain time to be process, there is a maximum to wait, if it occurs this maximum they go to a sink, but if it's processing go to another sink. My idea is when there's a breakdown, the processor doesn't have items on it. Hope someone tell me what I can do. Thanks.

FlexSim 20.0.8
processflowprocessorsflexsim 20.0.8breakdowns
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

@Felipe G, can you please attach a model or an example, because depending on your setup the answer will be different. A 3D model logic processor creates events and and you have to cope with them when you move an item in a break down. A “process flow” driven processor has viewer created events or none. Then you can move or delete an item, because there are much lesser hidden dependencies in FlexSim system logic.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
2 Likes"
Jason Lightfoot answered

In the MTBF/MTTR trigger "OnBreakDown" you can put something like this code snippet which assumes there's one item in a processor.:

if(content(involved)) {
    destroyeventsofobject(involved,0,0,NULL,involved.first);
    moveobject(involved.first,Model.find("Queue2"));
}


Example model attached.RemoveItemOnFailure.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.