question

Thalias avatar image
0 Likes"
Thalias asked Thalias commented

Combiner Visual Changes As Items Are Added

In the attached model (8778-multi-cylinder-combiner-jv-2.fsm) a single combiner is able to build three different sets of product. It is also able to put a delay as each cylinder enters the combiner (thank you @Jörg Vogel!).

The last piece of the puzzle for me is visual. Does anyone know of a way to change the visuals on the combiner such that the product "grows" as items are added? So as a simplified example you'd start with cylinder #1, then when cylinder #2 is added the item shown on the combiner doubles in size. When cylinder #3 is added the size is three times the original. This continues as you add cylinders until the product is complete.

FlexSim 17.1.2
combiner
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

·
Arun Kr avatar image
2 Likes"
Arun Kr answered Thalias commented

Hi @Thalias,

Here is your modified model with visual changes as items are added to your combiner. Please check it.

Basically, I added some labels and size changing logic to model this behaviour.

if(port ==1)//Counter is  a label which counts the number of cylinders added from ports other than the primary port.
//Labels x,y,z stores the size of the cylinder from the primary port to increase the size of cylinder, when cylinders from other ports come in. 
{
current.x = item.size.x; 
current.y = item.size.y; 
current.z = item.size.z; 
}
if(port!=1)
{
 current.Counter++;
 item.setSize(current.Counter *current.x,current.Counter *current.y,current.Counter *current.z);
  
}

multicylindercombierv171.fsm

Regards,

Arun KR


· 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.

Thalias avatar image Thalias commented ·

I think I figured it out, although my approach may not be the most efficient.

Basically I set new labels (xLoc, yLoc, and zLoc) that update as objects enter the combiner.

See attached model.

8812-multicylindercombierv171-1.fsm

1 Like 1 ·
Thalias avatar image Thalias commented ·

I made a slight modification to the code since I only actually need it to grow in the 'z' direction, however, I'm having an issue with the location of the objects.

The objects entering the combiner keep wanting to stack instead of overlap one another and I'm not sure why. In the attached model I set the location to match that of the first object, but it still tries to stack them.

8812-multicylindercombierv171-1.fsm

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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