question

Roger W avatar image
0 Likes"
Roger W asked Roger W commented

Controlling conveyor content

I have a model where different items type a send to different belts for packing. How do I control the max content of the lane conveyor belt to be at 8 units? (if lane conveyor belt have 8 units on it, the package will carry on the main conveyor belt and make a loop until space is open up.

I tried using photo eye, but it is not very accurate because if I set the clear time too long, it will skip alot of packages, if i set it too short, it cannot control the content at 8 packages

capture.pngpackage-system.fsm

FlexSim 16.1.2
conveyor content control
capture.png (95.8 KiB)
package-system.fsm (66.7 KiB)
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

·
Raja Sekaran avatar image
1 Like"
Raja Sekaran answered Roger W commented

@Roger W

You need to check the current content of the conveyor. I have attached your model with some changes.

In the attached model, In DP2>>On Arrival trigger, I wrote the below code in order to send the items to lane conveyor based on item type as well as lane conveyor current content. if the condition is not met items remains in the main conveyor.

int laneconvcontent = content(node("Conveyor16", model()));
if (getitemtype(item) == 2  && laneconvcontent < 8) 
{
	treenode newDest = outobject(current, 1);
	conveyorsenditem(item, newDest);
}

I hope this will help you.

package-system.fsm


package-system.fsm (45.1 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.

Roger W avatar image Roger W commented ·

thanks, that is exactly what i needed, didn't know the code for checking conveyor content.

1 Like 1 ·

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.