今天给大家讲解的模型是: 巡线抵达装载点之后固定装载2个实体,到达卸载点之后全部卸载下来。 ThemodelIwillexplaintoyoutodayis: Afterthepatrollinearrivesattheloadingpoint,twoentitiesarefixedlyloaded,andallareunloadedafterreachingtheunloadingpoint。 这里需要一个发生器、两个暂存区、一个任务执行器,此外还用到了AGV模块(运用AGV模块搭建线路时注意线路方向问题)。 Agenerator,twotemporarystorageareas,andataskexecutorareneededhere。Inaddition,theAGVmoduleisused(payattentiontothedirectionofthelinewhenusingtheAGVmoduletobuildtheline)。 创建工作流程 01hr首先让任务执行器运行至暂存区1的位置,也就是本模型控制点5的位置。 First,letthetaskexecutorruntothepositionoftemporarystoragearea1,whichisthepositionofcontrolpoint5ofthismodel。 拉入时间表发生器、行进、吸收器: Pullintheschedulegenerator,travel,absorber: 对行进活动进行设置: 直接用吸管吸取目的地‘ControPoint5’,执行器‘TaskExecute1’。 Setupthemarchingactivity: Directlyusethestrawtosuckthedestination‘ControPoint5’andtheexecutor‘TaskExecute1’。 02hr接着让任务执行器在暂存区1等待装载2个实体运行到暂存区2。 Thenletthetaskexecutorwaitinthetemporarystoragearea1toloadtwoentitiestothetemporarystoragearea2。 拖进事件触发发生器,对其进行设置: 用吸管吸取控制点5选择到达触发,为AGV设置标签为‘agv’。 Dragintheeventtotriggerthegeneratorandsetit: Useastrawtopickupcontrolpoint5toselectthearrivaltrigger,andsetthelabelfortheAGVto‘agv’。 暂存区1设置:发送至端口选择使用列表,添加一个新的列表。 Temporarystoragearea1settings:sendtotheportselectionlist,addanewlist。 标签赋值设置:标识命名为‘index’,选择标签值递增。 Labelassignmentsetting:Thelabelisnamed‘index’,andthelabelvalueisselectedtoincrease。 从列表拉出设置:列表选择已有列表1,将拉出的产品赋值为‘item’。 Pullthesettingfromthelist:selecttheexistinglist1fromthelist,andassignthepulledproductas‘item’。 之后进行装载,执行器选择赋值的agv,目标选择赋值的item。 Afterloading,theexecutorselectstheassignedagv,andthetargetselectstheassigneditem。 达到2个实体的目标后循环结束,设置如下: Afterreachingthegoalof2entities,theloopends,andthesettingsareasfollows: 装载完成后运输到暂存区2: Afterloading,transporttothetemporarystoragearea2: 03hr最后任务执行器卸载完货物后回到暂存区1等待运货,如此反复。 Finally,afterunloadingthegoods,thetaskexecutorreturnstothetemporarystoragearea1towaitforthegoods,andsoon。 卸载活动设置如下: Theuninstallactivitysettingsareasfollows: 要将任务执行器上的货物全部卸载,这里也需要设置一个循环,每次卸载1个实体,直到剩余实体数为0。 Tounloadallthegoodsonthetaskexecutor,itisalsonecessarytosetupacyclehere,unloadingoneentityatatimeuntilthenumberofremainingentitiesis0。 卸载完整后运行至暂存区1的位置。 Aftertheuninstalliscomplete,runtothelocationofthetemporarystoragearea1。 整个工艺流程如下图所示: Thewholeprocessflowisshowninthefigurebelow: END 参考文献:腾讯课堂任务序列全指导(flexsim); 英文翻译:Google翻译; 本文由learningyard学苑原创,部分内容来源于网络,如有侵权请联系。