question

Li yongchao avatar image
1 Like"
Li yongchao asked Brandon Peterson commented

How to separate the item into two pieces when item walking onto the decision point as pic below showing?

Hi

How to separate the item into two pieces when item walking onto the decision point as pic below showing?

in my model there is always space between the two parts after slicing

When I adjust the decision point again,the item in the queue will not enter conveyor.pls help me to check the reason

conveyor1-v162.fsm

Choose One
conveyorflowitemdecision pointtrigger
2.png (7.6 KiB)
3.png (133.4 KiB)
conveyor1-v162.fsm (19.8 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.

Brandon Peterson avatar image Brandon Peterson ♦ commented ·

Yongchao,

I looked at your model in version 2016_2_0. From what I was able to see, I think that the problem you are seeing is a result of the decision point being too close to the entry location for the queue. Basically, the conveyor will not allow the item onto the conveyor until there is space available for the item. Thus, when the decision point is further away from the entry location it works correctly and when it is too close the item sits in the queue until the original item starts to move again.

I hope this answers your question,

Brandon

0 Likes 0 ·

1 Answer

Sam Stubbs avatar image
4 Likes"
Sam Stubbs answered

I think I was able to achieve what you were trying to do. I removed the queue on the side but kept the entry transfer point. (To get the transfer point to remain when deleting the connected object, simply right-click on the transfer point and select remove connections. Then I created the copied item directly into the transfer point.) The cleaned up code for your on arrival trigger looks like this:

if(!objectexists(label(item,1)))
{
	setsize(item,xsize(item)/2,ysize(item),zsize(item));
	treenode copy = insertcopy(item,centerobject(current,1));
	setlabel(copy,"copy",1);
}

And finally to remove the gap in the cut item, I simply changed the conveyor type properties to go by "0.5" units of length measurement rather than the default "1" to match the half length of your cut items.

I've reattached the model below:

2520-conveyor1-v162.fsm


5 |100000

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