Set location (onload) by case on one transporter (different types of flowitems)

Set location (onload) by case on one transporter (different types of flowitems)

abdullah_a
Not applicable
5 Views
3 Replies
Message 1 of 4

Set location (onload) by case on one transporter (different types of flowitems)

abdullah_a
Not applicable

[ FlexSim 18.2.3 ]

I would like a transporter to pick up items from 3 different sources and unload in three different location. Each flow item would be setloc (visual change) to 3 different spatial locations while being moved by the transporter. Don't have a specific model to upload, but I hoping this is easy enough to understand without one.

0 Likes
Accepted solutions (1)
6 Views
3 Replies
Replies (3)
Message 2 of 4

tanner_p
Not applicable

Hi @Abdullah A,

Here's an example that has a transporter picking up items from three different sources and unloading them in three different locations. When the items are loaded, a trigger causes a set location visual change (exaggerated for visibility). Hopefully this is what you're looking for...

transporter-set-location.fsm

0 Likes
Message 3 of 4

abdullah_a
Not applicable

@Tanner PoultonThank you. However, what I meant was the 3 flow items will have 3 different setloc spatial values e.g. 3,3,3 (green); 3,2,3(red), 2,3,3 (Blue). Hopefully that clarifies the question.

0 Likes
Message 4 of 4

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

@Abdullah A, the transporter behaves a bit different, if you load more items. They are vertical stacked. you can set easily the x and y coordinates, but z location is a deep source code, I wasn't able to deactivate the code. My workaround moves all loaded items into an drawsurrogate object at the forks of the transporter. But then you must control by code the variable of maxcontent to prevent to load too much. Additionally you can adjust the stacking of item by Type in z coordinates. Location of x is driven by the Type of loaded item.

The Object "load" is the drawsurrogate object. I referenced this directly in the source code. Code snippet are blocks of source code and the declaration of variables works only in the scope of the block. But I need a reference in the set location option in OnLoad Trigger.

22983-transporter-set-location-of-items-by-type.jpg

If you don't want to see the drawsurrogate object, you can switch off the 3D shape.

transporter-item-location-by-type.fsm