Anylogic 模拟储存在容器中的材料 [英] Anylogic simulate material stored in containers

查看:22
本文介绍了Anylogic 模拟储存在容器中的材料的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试模拟存储在货架上的容器中的材料,如果您移除第一个容器,容器会向前滑动.

示例:一个容器可以容纳 10 个元素,并由批处理块填充.容器移动到货架(传送带),它应该留在那里直到它是空的.组装块应从容器中取出一件并组装产品.如果容器是空的,它可以从传送带上掉下来.

我确实尝试将架子建模为传送带,效果不错,但如果有人有更好的想法,我很高兴听到.

我最大的问题是下降部分.正如您在屏幕截图中看到的,容器完全从传送带中取出,dropoff-block 从容器中取出 1 个元素,并将包含 9 个零件的容器推入水槽.

有人对此有什么想法吗?

解决方案

您所使用的技术无法实现您想要做的事情..

你的问题是一个设计问题,所以回答所有细节需要很长时间,不过,这就是我使用以下结构的方式:

在拆分中,您将收到零件并创建零件的副本,该副本将进入等待块,而原始零件将进入批次(反之亦然).一旦箱子到达传送带的末端,您就释放属于传送带中箱子的partsInsideBox..您必须为此创建逻辑.然后零件将转到partsReadyToUse,当该队列为空时,您还必须创建逻辑来移动传送带,在传送带末端放置一个新盒子,并再次释放partsInsideBox......等等.

您看到装有所有零件的盒子将下沉2,但这没关系,因为您已经在组装器中使用了零件副本,所以一切都很好.

可能有更好的方法来做到这一点,但如果你想做的话,我发现这个方法与动画的兼容性最好

I'm trying to simulate materials stored in containers on a shelf where the containers slide forward if you remove the first one.

Example: A container can hold 10 elements and is filled by the batch-block. The container moves to the shelf(conveyor) where it should stay until it's empty. The assembly-block should take one piece out of the container and assemble the product. If the container is empty it can be dropped off the conveyor.

I did try to model the shelf as a conveyor, which does work ok, but if someone has a better idea i'm happy to hear it.

My biggest problem ist the dropoff part. As you see in the screenshot the container is taken out of the conveyor completely, the dropoff-block takes 1 element out of the container and pushes the container containing 9 more parts into the sink.

Does anyone have an idea for this?

解决方案

What you want to do is not possible with the technique you are using..

Yours is a design question so it would take too long to answer with all the details, nevertheless, this is how I would do it using the following structure:

In the split you will receive the parts and create a copy of the part that will go to the wait block, and the original will go to the batch (or vice-versa). Once the box arrives to the end of the conveyor, you free the partsInsideBox that belong to the box that is in the conveyor.. you have to create the logic for this. The parts will then go to partsReadyToUse and when that queue is empty you have to also create the logic to move the conveyor to have a new box at the end of the conveyor and free the partsInsideBox again.... and so on.

You see that the box with all the parts will be going to sink2, but it doesn't matter because you already used your parts copies in the assembler, so all good.

there may be better ways to do it, but i find this one having the best compatibility with animations if you want to do one

这篇关于Anylogic 模拟储存在容器中的材料的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆