Hi,
I´ve attached a model pe-oncleartrigger.fsm
where the pickoption "Pull from List" is used in a Photo Eyes OnClear Trigger.
If we do so, the trigger is fired twice. Does anybody have an Explanation or idea why?
Greetings
Sebastian
Hi,
I´ve attached a model pe-oncleartrigger.fsm
where the pickoption "Pull from List" is used in a Photo Eyes OnClear Trigger.
If we do so, the trigger is fired twice. Does anybody have an Explanation or idea why?
Greetings
Sebastian
Line 27 of that code calls itself. It is doing what it is supposed to.
The Pull From List pick options use their own code node (c) as a callback with a parameter to determine whether it was the original call or the callback.
Sebastian,
not sure if it might have something to do with it, but in the past, we've had different issues when a PE is alligned or very close to a conveyor transfer. Maybe you could try placing it somewhere else and see if it corrects the issue?
Hi Marcello, thanks for your fast Reply. Sadly this does not have any effect.
Hi @phil.bobo, thanks for the hint. But what is the solution. I´m quite sure there was no Code added by us/ our Client. So it seems as if the failure is in the pickoption!? Can we just erase line 26 and 27 without any comment. Or what will this affect (what Features will not work)?
What's the problem? The code firing twice is not a problem. It's a feature.
What's the actual problem?
If you erase lines 26 and 27, then it won't execute the On Pulled callback when it pulls from the list immediately without making a backorder:
The On Pulled code is what is firing the second time it executes.
Why should we want the Code firing twice, if a PE is only cleared once?
You are right, in this example Model it does not effect anything else and is not a problem. But what if we want to add more Code through this trigger (lets say in the Clients model, we were not allowed to share)? Code that is sensitive in how often the trigger is called?
9 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