I am trying to change the state of a processor when the operator downloads an object on it but the status shows me blocked. How can I make this change from PF? state.fsm
I am trying to change the state of a processor when the operator downloads an object on it but the status shows me blocked. How can I make this change from PF? state.fsm
You're fighting with the Processor's internal management of its own states. If you open the event list and step through what happens when the operator drops off the box, you'll see that the token in Process Flow goes to the custom code that sets the state and then the Processor fires both its End Setup and Process Finish Events. One or both of these events is setting the state of the Processor after you've manually set it.
One way to fix this would be to wait until these events fire to set the state. In this model I added a Wait For Event activity that waits for the Processor's Process Finish event before setting the state.
That is a good explanation by @Matthew Gillespie on what PF is doing. His way is certainly one way to fix your problem. Another way, see attached, is I just put a .01 delay after the unload to the Processor so that all the internal code can complete before your Custom Code to change the state. One of these two way should be useful for your situation.
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