I have a question.
There are two operators working on a single processor but different shifts, it's possible without using the dispatcher?
I have a question.
There are two operators working on a single processor but different shifts, it's possible without using the dispatcher?
Hey @Cayo E, was my answer helpful for you? If so, could you accept it? Otherwise, how else can I help?
Hi @Cayo E,
I believe this is possible using timetables and some custom code within the Flow tab underneath the Use Transport field. You can use the timetables to change the state of the operators at different times.
The custom code could look something like this:
Object current = ownerobject(c); Object item = param(1); int port = param(2); Object destination = param(3); double priority = param(4); int preempt = param(5); if (Model.find("Operator1").find(">stats/state_current").value == 1) //1 means idle { return current.centerObjects[1]; } else if (Model.find("Operator2").find(">stats/state_current").value == 1) { return current.centerObjects[2]; }
This code will check to see if an operator is idle, then send then return the center-port connection where that operator is connected.
Here is a list of states and their corresponding numbers:
23 entries, [state, time, active] 0 ["other", 0.000000, 0] 1 ["idle", 0.000000, 1] 2 ["processing", 0.000000, 0] 3 ["busy", 0.000000, 0] 4 ["blocked", 0.000000, 1] 5 ["generating", 0.000000, 0] 6 ["empty", 0.000000, 0] 7 ["collecting", 0.000000, 0] 8 ["releasing", 0.000000, 0] 9 ["waiting for operator", 0.000000, 0] 10 ["waiting for transport", 0.000000, 0] 11 ["breakdown", 0.000000, 0] 12 ["scheduled down", 0.000000, 0] 13 ["conveying", 0.000000, 0] 14 ["travel empty", 0.000000, 1] 15 ["travel loaded", 0.000000, 1] 16 ["offset travel empty", 0.000000, 1] 17 ["offset travel loaded", 0.000000, 1] 18 ["loading", 0.000000, 1] 19 ["unloading", 0.000000, 1] 20 ["down", 0.000000, 0] 21 ["setup", 0.000000, 0] 22 ["utilize", 0.000000, 1]
Here is the documentation on time tables:
https://docs.flexsim.com/en/19.1/Reference/Tools/TimeTables/
Yes, but you will have to set the operator's state based on the model's time. Here is a reference to the model's properties and functions:
https://docs.flexsim.com/en/19.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Model.html
11 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