I have 2 processors with 2 operators. When one of them goes on a break I need the other operator to cover for him. I tried many things but it doesn't seem to work.
I have 2 processors with 2 operators. When one of them goes on a break I need the other operator to cover for him. I tried many things but it doesn't seem to work.
Hi @Krish S, was Raja Sekaran's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.
If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.
Do you want the operator to "finish" the other operator's work? If so, you could try saving the existing task sequence assigned to the operator that goes on break, then send that task sequence back to the dispatcher.
Another thing to consider: If the other operator has his own work to do, which work should he prioritize? His own?
Hi @Krish S
I have removed the dispatcher and connected and connect "Operator 1" as a center port connection 1 and connect "Operator 2" as a center port connection 2 for both the processors. Then I used the below code to assign the operator for "Processor 1" based on their state value.
int portnum = 1; Variant stateVal = current.centerObjects[portnum].stats.state().valueString; if(stateVal == "breakdown") { return current.centerObjects[2]; } else { return current.centerObjects[1]; }
Below code to assign the operator for "Processor 2".
int portnum = 2; Variant stateVal = current.centerObjects[portnum].stats.state().valueString; if(stateVal == "breakdown") { return current.centerObjects[1]; } else { return current.centerObjects[2]; }
Attached the model for your reference (Flexsim Version 19.0.0)
Let me know if this is what you are looking for.
Thanks
12 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved