I want to check the status of four queues and only pick up parts with a crane that are in a queue but with the processor also setup to work that part. The processor state changes on its own logic and is looking for the appropriate work from the queues for the state. I'm trying to put the parts onto a global item list and then 1st- use logic to determine which part to pick and then 2nd-use sql to move it by crane. I notice that the list only contains the first part and the other parts are not on the list. .Alternate solutions are welcome. I've tried to control the opening and closing of ports but parts slip through. ControlCraneExample-SQL.fsm
Thanks