Files
Obsidian/01学习/软件类/软件操作/Flexsim/课程/掌控item流向与PF模块/任务序列示例.md
2026-02-04 17:04:00 +08:00

17 lines
690 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
```
treenode dispatcher = current.centerObjects[1]; // 执行人
treenode ts = createemptytasksequence(dispatcher,priority,preempt);//创建空任务
inserttask(ts,TASKTYPE_TRAVEL,current,NULL);
inserttask(ts,TASKTYPE_LOAD,item,current,port);
inserttask(ts,TASKTYPE_BREAK,NULL,NULL);
inserttask(ts,TASKTYPE_TRAVEL, destination,NULL);
inserttask(ts,TASKTYPE_DELAY,NULL,NULL,等待时间等待时Executer的状态)
inserttask(ts,TASKTYPE_UNLOAD,item, destination,opipno(current,port));//具体任务
dispatchtasksequence(ts);
```
opipnocurrent,port;//获取当前实体输出端口连接的下游输入端口号
任务序列最好创建在==使用运输工具==的触发器中