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

除了用message机制外,有没有好点的办法让item在暂存区停留一定的时间再走?

新手入门 108 7 2021-2-4 09:45:29
新人求助
──── 0人觉得很赞 ────
2021-2-4 11:47:47
调用PF模块里面的delay不可以吗?
2021-2-4 15:06:13
[quote][size=2][url=forum.php?mod=redirect&goto=findpost&pid=32795&ptid=11774][color=#999999]clayclay 发表于 2021-2-4 11:47[/color][/url][/size]
调用PF模块里面的delay不可以吗?[/quote]

这个好像可以 不过不喜欢用pf...{:3_41:}
2021-2-5 09:32:47
[quote][size=2][url=forum.php?mod=redirect&goto=findpost&pid=32796&ptid=11774][color=#999999]liguanyu 发表于 2021-2-4 15:06[/color][/url][/size]
这个好像可以 不过不喜欢用pf...[/quote]

还可以用触发器,进入触发关闭该缓冲区的输出端口一段时间亦可以。
2021-2-5 10:00:40
[quote][size=2][url=forum.php?mod=redirect&goto=findpost&pid=32802&ptid=11774][color=#999999]clayclay 发表于 2021-2-5 09:32[/color][/url][/size]
还可以用触发器,进入触发关闭该缓冲区的输出端口一段时间亦可以。[/quote]

“关闭输出端口一段时间” 这个时间是调用啥函数实现的呀:$
我现在一个模型里面用了好多senddelayedmessage(),搞得好乱,但是不用我又不知道有什么东西可以再触发这个事件。。
2021-2-7 14:28:16
Object.output.close()
最新版应该是调用这个命令。
老版可以用closeoutput()。
2021-2-7 14:34:59
[quote][size=2][url=forum.php?mod=redirect&goto=findpost&pid=32804&ptid=11774][color=#999999]liguanyu 发表于 2021-2-5 10:00[/color][/url][/size]
“关闭输出端口一段时间” 这个时间是调用啥函数实现的呀
我现在一个模型里面用了好多senddelayedmess ...[/quote]

closeop (obj object, num outputportnum)
Close one output port of object
Description
Close just outputportnum of object. Closing an output port of an object will block the exit from the object through that port. Modelers should only use this command when working with fluid objects because the internal behavior of discrete objects controls the opening and closing of their ports, and therefore this command may be overridden. For discrete objects the modeler is referred to closeoutput() and stopoutput().
Example
closeop(current,1)
参见帮助文件里面,这样调用应该也是可以的,需要自己去试试。
2021-2-10 08:55:34
在暂存区触发器中的进入触发,编写以下代码
closeoutput(current);
senddelayedmessage(current,50,current,0,0,0);(其中50为延时时间,可更改到想要的值)
再在暂存区触发器中的消息触发,编写以下代码
openoutput(current);
即可
您需要登录后才可以回帖 立即登录
高级模式
返回
新手入门
热门问答
查看更多
1
厂区生产线布局优化案例!新做的!
厂区生产线布局优化案例!新做的!
1806
224
2
FlexSim2016 中国象棋
FlexSim2016 中国象棋
1039
44
3
Flexsim二次开发之塔吊
Flexsim二次开发之塔吊
945
45
4
关于Processs Flow 使用的两个案例(AGV Elevator案例/子母穿梭
关于Processs Flow 使用的两个案例(AGV Elevator案例/子母穿梭
913
34
5
快递分拨中心案例~新手可参考
快递分拨中心案例~新手可参考
764
62
博主榜
+ 45331
+ 10630
+ 7753
4
+ 6759
5
+ 6323
6
+ 6321
7
+ 5341
8
+ 4710
9
+ 3722
10
+ 3628