大家好,
我想建模一个具有两条传送带的穿梭车。穿梭车的行为与电子目录中的相同。我调整了进料口的两个接口,以实现两条传送带的功能。
我想要的是:任何进料口被激活时,两条传送带都能将物料运送到畅通的输出口。
有人有好方法吗?任何建议都可以提出。提前感谢。
Shuttle_test1.vcmx(788 KB)
大家好,
我想建模一个具有两条传送带的穿梭车。穿梭车的行为与电子目录中的相同。我调整了进料口的两个接口,以实现两条传送带的功能。
我想要的是:任何进料口被激活时,两条传送带都能将物料运送到畅通的输出口。
有人有好方法吗?任何建议都可以提出。提前感谢。
Shuttle_test1.vcmx(788 KB)
这将会非常有用!
大家好,
你可以实现你的vcRouting ->processRoute函数,并检查目标传送带的可用容量。对于进入穿梭车的每个部件,你可以将其传送到第一个可用的传送带对。但是,如果它们不是特定的,自己管理所有路由可能会很麻烦。
简单的方法可以在第92行添加一个额外的目标端口@flow根据提供的逻辑片段,这是一个用于测试路由连接的程序片段,通过循环检查两个目标端口是否都满足条件(例如都等于1),如果满足则跳出循环,否则延迟1秒后继续检查。 以下是整理后的代码逻辑说明: ```python # 初始化变量 secondInQueue = task[1] # 第二个对话部分及相关端口号 targetPort1 = -1 targetPort2 = -1 # 循环直到两个目标端口都满足条件 while targetPort1 == -1 or targetPort2 == -1: targetPort1 = routing.processRoute(firstInQueue, part, flow) # 获取第一个目标端口 targetPort2 = routing.processRoute(secondInQueue, part, flow) # 获取第二个目标端口 # 根据路由规则检查 if targetPort1 == 1 and targetPort2 == 1: break # 条件满足,退出循环 else: delay(1) # 条件不满足,延迟1秒后继续循环 ``` **注意**: - `firstInQueue`、`part`、`flow` 等变量需要在上下文中定义。 - `delay(1)` 可能是一个自定义的延时函数,需确保其在实际环境中可用。 - 该逻辑片段主要用于测试两个端口的连接状态,直到两者都返回端口值1为止。 如果要在具体环境中运行,请确保相关变量和函数已正确定义,并根据实际需求调整条件判断和延时逻辑。
ex : check odd numbers 1-3-5 and if 1 is available check 2 if both ok go else loop it.
secondInQueue = task[1] (part in second conv. and related port number )
targetPort1 = -1
targetPort2 = -1
while targetPort == -1 or targetPort2 == -1:
targetPort1 = routing.processRoute(firstInQueue, part, flow) # Take target port
targetPort2 = routing.processRoute(secondInQueue, part, flow) # Take target port
from the routing rule
if targetPort1 == 1 and targetPort2 ==1:
break
else:
delay(1)
Isn’t possible to create this shuttle conveyors wtih two seats for components ?
Hello, if i put it in program, it doesnt work. Please are you able to put in and upload there? Thanks a lot.
嗨,我只是想提一下,如果有一个带两条传送带的穿梭车会非常有用。我目前还无法让它顺利运行。
dual shutle conveyor.vcmx(5.0 MB)
你好,我修改了它,现在可以用了。你可以直接拿去用。
@duchauei2是否可以通过流程、路由规则或其他方法来控制传送带1和传送带2?
我刚试了这个模型,它可以通过路由规则正常工作。你可以在组件的属性中修改规则。
@Tilma传送带A和B连接到了我的穿梭车上。
端口1 – 空托盘输入
端口2–4 – 码垛位置
端口5 – 满托盘输出。
我想用以下逻辑控制传送带A和B:
首先,传送带A运送一个空托盘,并供应到端口2-4。
码垛完成后,传送带B应将满托盘运出。
同时,传送带A应运送下一个空托盘进入。
我该如何实现这个功能?
---
所以你的意思是传送带A和B不是独立连接,而是安装在同一台穿梭车架上,可以一起移动,但各自负责不同的运输任务?在这种情况下,你可能需要设置两条不同的路径链接,并且为每个传送带分别配置路由规则可能会更容易实现。
I want to control Conveyors A and B with the following logic:
First, Conveyor A brings anempty palletand supplies Ports 2–4.
After palletizing is finished,Conveyor Bshould take thefull pallets out.
At the same time,Conveyor Ashould bring the nextempty pallets in.
How can I implement this ?
So you mean the shuttles A and B are not attached but can move independently from one another to transport pallets? And choose which one carries what? In that case you’ll need 2 different Links and it would probably be easier to also have 2 Routing Rules, one per shuttle
Not exactly. Conveyor A and Conveyor B are mounted on the same shuttle frame, so they move together.
不过,我仍然需要控制哪个传送带处于活动状态——例如,A 用于空托盘进入,B 用于满载托盘送出。
在这种情况下,两个连接和两个路由规则仍然是最佳解决方案吗,还是有其他推荐的方法?
Madhan1103
2026年2月12日 上午8:51
14
@Tilma
我试过了,但没能实现。你能提供一个示例吗?
In this case, would two links and two routing rules still be the best solution, or is there another recommended method?
@TilmaI tried, but I couldn’t achieve it. Could you please provide an example?
您是本站第536269名访客 今日有0篇新文章/评论