全球FlexSim系统仿真中文论坛

标题: 操作员卸载后立刻回起始点问题 [打印本页]

作者: dongqaqa    时间: 2019-7-15 07:15
标题: 操作员卸载后立刻回起始点问题
各位大神,小弟有个功能想问一下,从发生器里出来,经过好几道加工工序,如何让操作员在搬完最后一个工作后立刻回到起始点,而不是在原地等,我知道人员触发里有个卸载离开触发,但条件不知道如何写在process9后卸载完回起始点,如下图; y0 {+ z& Z! U+ Y: I6 H
4 b! w- `* v  z3 u# \2 y

作者: Clay666    时间: 2019-7-15 08:04
在process9的加工结束触发里添加相关任务序列即可
作者: 十度烧    时间: 2019-7-15 08:12
条件可以根据您模型的情况自行定义:只要能够区别出是“在process9后卸载”即可,可以是不同的item/current的标签值、也可以直接判定实体...。
作者: dongqaqa    时间: 2019-7-15 16:48
谢谢楼上两位
作者: dongqaqa    时间: 2019-7-15 20:20
在process9里加了任务序列,最后一步吸取下起始点的位置OK7 z/ f! b; A/ N( |, @
treenode dispatcher = current.centerObjects[1]; // the dispatcher or task executer
" K! ~& k* u  q+ U' x' M: f+ C$ i# F6 @/ @/ B
treenode ts = createemptytasksequence(dispatcher,priority,preempt);
4 F9 {( o9 B2 v, a" n; b2 M  _, p; ], j4 j; z8 d9 C) x  a. N0 P
inserttask(ts,TASKTYPE_TRAVEL,current,NULL);
5 R% V' H6 r6 t3 r+ k  ~inserttask(ts,TASKTYPE_LOAD,item,current,port);
& s4 w) }, _. Y  ^" y$ Rinserttask(ts,TASKTYPE_BREAK,NULL,NULL);
- e5 J0 s  S6 f/ @  S1 Einserttask(ts,TASKTYPE_TRAVEL, destination,NULL);
) ?0 i& z& |0 E6 n) \6 t7 F/ o$ Einserttask(ts,TASKTYPE_UNLOAD,item, destination,opipno(current,port));: j5 c9 |' [! j9 |# L
inserttask(ts,TASKTYPE_TRAVEL,Model.find("NN18"));2 C5 A* x; M. I

, |1 c& g5 d& k) V" }2 Z, Tdispatchtasksequence(ts);




欢迎光临 全球FlexSim系统仿真中文论坛 (http://www.flexsimasia.com/) Powered by Discuz! X3.3