Conveyor item route

Conveyor item route

guiroehe
Collaborator Collaborator
1,072 Views
4 Replies
Message 1 of 5

Conveyor item route

guiroehe
Collaborator
Collaborator

Hello,

I am looking at the item's "stored" node of an item on a conveyor. Is there any way to programmatically know what is the route (or next conveyor segment) the item will follow as its path? Generically, I am aware it is the shortest path. I would like to have this information before the item starts to divert.

If this information is not available, how can one prevent an item (with specific label values) to take a certain route without knowing if it will take that route? Creating a list of all label values and loading it on a decision point is doable, but very inefficient and hard to maintain.

Thank you.

0 Likes
1,073 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
Enthusiast
Enthusiast

The only way I know of how to do this is search through the conveyorItem's traversals like I describe in the linked post.

https://forums.autodesk.com/t5/flexsim-forum/how-do-i-know-if-an-item-is-diverting-or-going-straight...

0 Likes
Message 3 of 5

guiroehe
Collaborator
Collaborator

Hi, @moehlmann_fe ,
thank you. Unfortunately I do not believe this solution works completely. I implemented it, but there are cases where items will have reference to traversals despite they will not follow that path. Would it be necessary to consider any other attributes for a traversalPoint to distinguish if it represents a divert? Does "sendTo" affects the list of traversals?

In the picture below, the selected item will not divert to the outgoing spur, despite it is listed as one of its traversalPoints.

guiroehe_1-1753856317346.png

 

guiroehe_0-1753856151102.png

Thank you for any clarification.

0 Likes
Message 4 of 5

guiroehe
Collaborator
Collaborator

@moehlmann_fe,

it turns out sendTo does not clear completely the traversals of an item on a conveyor. I modified your example from the other thread to show what is failing. I am not sure if it is possible or how to fix it, though.
Thank you for your support.

0 Likes
Message 5 of 5

moehlmann_fe
Enthusiast
Enthusiast

In that case I am sorry that I might have raised false hopes. If the traversal points are not updated to remove the transfers then I guess routing decisions at transfers just use the destination of the item and the routing table. So the traversal being present means a check is made but the item might still continue along the conveyor. The routing table is not accessible to the user though, to my knowledge. At least "getsdtvalue()" returns 0 when trying to read the "table" entry.

 

moehlmann_fe_0-1753863960851.png

 

0 Likes