question

Ranggi M avatar image
0 Likes"
Ranggi M asked Ranggi M commented

Rack object above conveyor object bug

Good day,

My model is consist of process flow to do some packing from item inside Rack. The process flow pretty much is simple :

1629091443447.png1. Create item into the rack with flow , then the 3D object will do the assignment slot

2. I command the operator to load from rack

3. Put delay for packing representation

4. Unload item to Entrytransfer conveyo

But every time the unload process finish I will get this error :

time: 6097.562852 exception: Exception Caught in distancetotravel(treenode traveler, treenode destination)

time: 6097.562852 exception: Exception Caught in ObjectFunction92__project_exec_commandlist_distancetotravel_node object: MAIN:/project/exec/commandlist/distancetotravel/node i: MAIN:/project/exec/commandlist/distancetotravel/node class: MAIN:/project/exec/commandlist/distancetotravel/node


time: 6097.562852 exception: Exception caught in TreeNode::callMemberFunction() c++/dll execution. Throwing... MAIN:/project/exec/commandlist/distancetotravel/node c: MAIN:/project/exec/commandlist/distancetotravel/node i: MAIN:/project/exec/commandlist/distancetotravel/node thisClass: MAIN:/project/exec/commandlist/distancetotravel/node

time: 6097.562852 exception: Exception caught in evaluation of MAIN:/project/exec/commandlist/distancetotravel/node

The 3D situation is like this :

1629091683428.png

1. Rack above conveyor

2. Using Astar with FR member is rack and operator is Packer 2

I tried to make the simple model with the same process flow with different layout:

1 .I put rack beside the conveyor and not above conveyor,

2. Not using Astar at all

it works just fine, but if i put the rack above the conveyor, it will give me different kind of error :

time: 69.011976 exception: Exception Caught in ObjectFunction248__project_library_FlexSimObject_behaviour_eventfunctions_OnTimerEvent object: /Rack1 class: /Rack1

time: 69.011976 exception: Exception caught in TreeNode::receivemessage()

time: 69.011976 exception: Exception caught in Executive::processeventinlist(). Throwing.

time: 69.011976 exception: Exception caught in Executive::steptotime(). Throwing.

time: 69.011976 exception: Exception caught in Executive::tick(). Throwing.

time: 69.011976 exception: int runthemessageloop() #4

exception: Executive::instance.tick();

time: 69.011976 exception: int runthemessageloop() #6.

Please help how can I investigate more or the solution for these situations, I tried to make the simple model for this thread question but it wont gave the same error


Sincerely thank you

FlexSim 19.2.4
conveyorprocessflowrackflexsim 19.2.4
1629091443447.png (5.9 KiB)
1629091683428.png (361.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.

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann edited

This might a timing issue where you try to load the created object before all code/triggers/etc. have properly finished.

Would you try to insert a delay of 0 seconds inbetween the "Create Packaging" and "Load" activities?

1629098359329.png

If that doesn't help it would be great if you could upload your model, as it is quite hard to find the root of the problem otherwise. You can also post this as a private question only visible to FlexSim US support staff, if the model contains proprietary information.


1629098359329.png (11.2 KiB)
· 2
5 |100000

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

Ranggi M avatar image Ranggi M commented ·

Hello @Felix Möhlmann , thank you for your suggestion, the problems solved! It seemed the timing issue you describe as the root problem. Thank you so much!

ps. how can I convert your comment to answer?

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Ranggi M commented ·

Hello @Ranggi M,

happy to hear my solution worked. I changed my comment into an answer, as I think that has to be done by either the author of the comment or an admin.


0 Likes 0 ·
David Chan avatar image
0 Likes"
David Chan answered Ranggi M commented

@Ranggi M Please check if this is what you are looking for. My model is done in 20.1.3. You can download the any version from the Download page to open it.

As for the problem that you encountered, please also open the model in version later (as trial) to test out if there was a bug in your version.


David


Ranggi_M DC.fsm




ranggi-m-dc.fsm (56.7 KiB)
· 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.

Ranggi M avatar image Ranggi M commented ·
Hello David, thank you for you help! I found the solution by following @Felix Möhlmann 's suggestion
0 Likes 0 ·