How to split a flowitem on a conveyor?

How to split a flowitem on a conveyor?

joachim_w
Not applicable
11 Views
10 Replies
Message 1 of 11

How to split a flowitem on a conveyor?

joachim_w
Not applicable

[ FlexSim 18.2.3 ]

Hi,

I am trying to simulate something like a shear in a conveyor. Therefore I placed a station on the conveyor, to stop my flowitem, and cut it into two pieces by the use of flexscript. Generally first I set the new size of the object, then I create a copy of it and place it right behind the original flowitem.

But the two items on my conveyor now are not fully independent objects. If I create the copy by "Object new = insertcopy(item,item);" , my copied item moves together with the original item along the conveyor, but it doesn't interact with following stations.


So I tried it by "Object new = insertcopy(item,conveyor);". Now I have two independent items on the conveyor, but the new copy doesn't move on the conveyor. It seems, it's just graphically there, but it has no interaction with the conveyor, also no collisions with new objects coming along the conveyor. Maybe there is an easy solution for this?


Thanks

0 Likes
Accepted solutions (1)
12 Views
10 Replies
Replies (10)
Message 2 of 11

Jeanette_Fullmer
Community Manager
Community Manager

Hello @Joachim W

A suggestion I have is to use a separator instead of a station. You can change the shape of the separator to be a plane and fit with the conveyors. This will put a divide in your conveyor, however it will function how you would like without the problems you currently are facing.

0 Likes
Message 3 of 11

support5CRPZ
Advocate
Advocate

@Joachim W

You can solve it using creating item option and send message.

I upload an example model.

conv_CopyItem.fsm

0 Likes
Message 4 of 11

joachim_w
Not applicable
Ok but that doesn't really solve the problem itself. With this solution, the new object is sent from a queue to the conveyor, when the process is done. That doesn't represent reality, because physically that "copied" part is always on the conveyor, and shall stop new flow items which are moving downstream.


Thats why my question is:


Why can't I simply use that create code directly in the station object? It works basically, I can copy it and place it where desired. My only problem is the destination parameter at the "insertcopy" method. Which destination I have to put the copy inside, to ensure it keeps on interacting with the conveyor?

0 Likes
Message 5 of 11

joachim_w
Not applicable
I also tried that solution, but: Now my flowitems leave the conveyor and hop on that separator station. Due to this, there is no more collision between the flowitem on the separator and incoming flowitems on the conveyor - that distorts the simulation results. Probably I didn't fully catch you?
0 Likes
Message 6 of 11

joerg_vogel_HsH
Mentor
Mentor
A conveyor system expects items entering items through entry transfers to create an unique order sequence to evaluate gap and item distance between them.
  • If you need a split you can stop items following on a conveyor by e.g. photo eye.
  • You create an item copy into model space command.
  • You move item into an entry transfer, which is a result of queue connection to conveyor at location of station. You could also move item or create item directly in connected queue.
  • you detect created item on conveyor by e.g. photo eye.
  • you let move on stoped items on conveyor.

Conveyor system updates new unique order sequence automatically. There might be a similar code based approach, where you notify created item belonging to conveyor system and rerank it in sequence in coupling nodes.

0 Likes
Message 7 of 11

Jeanette_Fullmer
Community Manager
Community Manager

Hello @Joachim W

This is an example of what I intended. Conv separator.fsm

0 Likes
Message 8 of 11

ryan_c10
Not applicable

Hi @Joachim W, was one of David Seo's or Jeanette F's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes
Message 9 of 11

sebastian_hemmannE3JAU
Collaborator
Collaborator
In this solution the new size of the cut items is not solved
0 Likes
Message 10 of 11

Jeanette_Fullmer
Community Manager
Community Manager
You can use a trigger to change the size of the flow items leaving.
0 Likes
Message 11 of 11

sebastian_hemmannE3JAU
Collaborator
Collaborator
Accepted solution

Here is what we see as solution.

The model shows 2 different ways of solving this:

1. using default conveyor

2. using basicFR

Any further questions @Felix Möhlmann might answer.

FlexSim_2022_Trennbahn_2_SH.fsm


0 Likes