question

David Chan avatar image
0 Likes"
David Chan asked David Chan commented

Error in Release Area with Delay time on Decision Point

Hi I am trying to release an area with some delay. Error occurred. It seems that after the delay, it has no reference of the item. How should I modify it?


Acquire area.fsm

FlexSim 23.0.9
decision pointsdelaytimerelease area
acquire-area.fsm (40.2 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered David Chan commented

The header of the trigger option gets a reference to the conveyor item representation of the triggering item. If the item was already destroyed when the callback to release/exit the area happens the invalid reference error happens.

Releasing the area does not require this reference, so if you do not intend to use any other pick options in this trigger, then you can simply comment out the fourth line of the header. Otherwise you can adjust it to the following to prevent the error from popping up.

Conveyor.DecisionPoint current = ownerobject(c);
Object item = param(1); Conveyor conveyor = param(2); Conveyor.Item conveyorItem; if(objectexists(item)) {     conveyorItem = conveyor.itemData[item]; }
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

David Chan avatar image David Chan commented ·
0 Likes 0 ·