发帖
 找回密码
 立即注册
搜索
1 0 0

怎么实现分解器向它的两个下游端口发送实体,一端口是use transport,另一个端口不...

新手入门 65 1 2022-11-1 16:15:32

──── 0人觉得很赞 ────

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
2022-11-1 20:55:31
[i=s] 本帖最后由 zorsite 于 2022-11-1 20:57 编辑 [/i]

一开始还以为是求助,写了如下代码。
[code]//货物(2号端口输出)使用运输工具,托盘(1号端口输出)不用。[/code]
后来才发现在教学:L
对比了一下软件自带逻辑,发现多了两个命令,通知移出临时实体和移入临时实体完成。
软件自带代码如下:
[code]treenode disp = current.centerObjects[1];

if (port == 1) {
        return disp;
} else {
        transportoutcomplete(current, item, port);
        transportincomplete(current.outObjects[port], item, opipno(current, port));
        moveobject(item, current.outObjects[port], port);
}[/code]



[color=rgb(0, 0, 0)][font=Helvetica][size=13.3333px][color=blue][b]transportincomplete[/b][/color][/size][b](obj object, obj item [, num inport, obj transporter])[/b][/font]
Notifies the FixedResource object that item will now be moved into it[/color]
[color=rgb(0, 0, 0)][b]Description[/b]
This command notifies a downstream FixedResource object that the specified item will now be moved into it from an upstream object. This should only be used if the upstream object's Use Transport field is checked, but you are moving the item explicitly, instead of using an FRLOAD task. This allows the downstream FixedResource to manage data on how many items are slated to enter the object, but haven't arrived yet. Execute this command just before you move the item out with the moveobject command. For more information, refer to the FixedResource documentation. If this command returns 0, then the object has been stopped using the stopobject command, and you must wait until it has been resumed before moving the item into it.

[b]Example[/b]
transportincomplete(current.outObjects[port], item, opipno(current, port));

This example should be executed from the Request Transport From field before a moveobject command if you decide that you don't want to use a transport, but rather want to immediately move the flowitem


[/color]
[color=rgb(0, 0, 0)][font=Helvetica][size=13.3333px][color=blue][b]transportoutcomplete[/b][/color][/size] [b](obj object, obj item [, num outport, obj transporter])[/b][/font]
Notifies the FixedResource object that item will now be moved out of it[/color]

[color=rgb(0, 0, 0)][b]Description[/b]
This command notifies the FixedResource object that the specified item will now be moved out of it. This should only be used if the object's Use Transport field is checked, but you are moving the item explicitly, instead of using an FRLOAD task. This allows the FixedResource to manage data on how many items are still in the object but are ready to leave. Execute this command just before you move the item out with the moveobject command. For more information, refer to the FixedResource documentation. If this command returns 0, then the object has been stopped using the stopobject command, and you must wait until it has been resumed before moving the item into it.

[b]Example[/b]
transportoutcomplete(current, item, port);

This example should be executed from the Request Transport From field before a moveobject command if you decide that you don't want to use a transport, but rather want to immediately move the flowitem


[/color]


您需要登录后才可以回帖 立即登录
高级模式
返回
新手入门
热门问答
查看更多
1
厂区生产线布局优化案例!新做的!
厂区生产线布局优化案例!新做的!
1920
224
2
FlexSim2016 中国象棋
FlexSim2016 中国象棋
1114
44
3
Flexsim二次开发之塔吊
Flexsim二次开发之塔吊
1032
45
4
关于Processs Flow 使用的两个案例(AGV Elevator案例/子母穿梭
关于Processs Flow 使用的两个案例(AGV Elevator案例/子母穿梭
982
34
5
快递分拨中心案例~新手可参考
快递分拨中心案例~新手可参考
799
62
博主榜
+ 45331
+ 10630
+ 7753
4
+ 6759
5
+ 6323
6
+ 6321
7
+ 5341
8
+ 4710
9
+ 3722
10
+ 3628