- 1、本文档共7页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
QUEST软件scl语言解读
#include part.inc-- ----------------------------------------------------------------- select an output for the part -- 为零件选择一个输出端-- This procedure routes all the unloaded parts of the -- current element. If there is no unload process it routes the -- current part. The output slot selection is based on the specified -- route option such as Next Free/Percent/Priority/Cyclic....-- 该程序路由当前单元所有卸载的零件。如果不存在卸载工艺,那么它会路由当前零件。---------输出端口选项基于指定的路由选项,例如Next Free/Percent/Priority/Cyclic....-- -----------------------------------------------------------------路由卸载的零件Procedure route_unload_parts( num_unloaded, route_option, block_logic : Integer )VAR num_routed : Integer part_idx : Integer the_part : PartBegin /* * If any unload process is not attached, just route the current part * and return如果没有添加任何卸载工艺,那么仅仅卸载当前的零件,并且返回结束程*序 */-----如果当前元素类的卸载工艺为空if( celem-class-unload_process == NULL ) then------如果当前零件不为空 if( cpart NULL ) then------路由当前零件,调用函数route_a_part route_a_part( cpart, route_option, block_logic ) endif ----结束该程序 returnendif ------将路由的零件数量初始化为0num_routed = 0------将零件编号初始化为1 part_idx = 1 ------当路由的零件数量小于卸载的零件数量时 while (num_routed num_unloaded) do ------返回当前位于当前元素输出端的零件列表中指定编号的零件句柄 the_part = celem-out_parts[ part_idx ] ------如果当前位于当前元素输出端的零件不存在 if( the_part == NULL ) then ------结束while循环,结束路由卸载零件操作break endif ------若果当前位于当前元素输出端的零件列表中指定标号的零件已经被路由了 if( the_part-routed ) then ----零件编号增加1,结束当前循环,继续执行下一次循环 part_idx = part_idx + 1 continue endif ------需要卸载工艺的零件如果没有被卸载,是不能被路由的 -- Parts which are NOT unloaded acnt be routed -----part的loading有三种状态:NOT_STARTED, IN_PROGRESS, COMPLETED------(参考Part的属性页)------如果零件没有处于卸载完成状态 if( the_part-unloading COMPLETED ) then ----零件编号增加1,结束当前循环,继续执行下一次循环 part_idx = part_idx + 1 continue endif ----调用函数route_a_part route_a_part( the_part, route_option, block_logic ) ------记录路由的零件数量 num_routed = num_routed + 1 part_idx = 1 endwhileEnd route_unload_parts-- -----------------------------------
您可能关注的文档
- 表达方式转换&语序.doc
- 2012女王圣诞演讲文体分析 英文.docx
- 幼师英语教学计划.doc
- Unit 51 五年级英语五四 山东.doc
- 德语词汇学习.doc
- 使用 L-Edit 画PMOS 布局图.doc
- MTI翻译实践报告模板.doc
- 2014年英语一模(试卷).doc
- 招收学科教学硕士的院校文档.doc
- 2016北京机器人夏令营_北京机器人STEM课程.doc
- 第十一章 电流和电路专题特训二 实物图与电路图的互画 教学设计 2024-2025学年鲁科版物理九年级上册.docx
- 人教版七年级上册信息技术6.3加工音频素材 教学设计.docx
- 5.1自然地理环境的整体性 说课教案 (1).docx
- 4.1 夯实法治基础 教学设计-2023-2024学年统编版九年级道德与法治上册.docx
- 3.1 光的色彩 颜色 电子教案 2023-2024学年苏科版为了八年级上学期.docx
- 小学体育与健康 四年级下册健康教育 教案.docx
- 2024-2025学年初中数学九年级下册北京课改版(2024)教学设计合集.docx
- 2024-2025学年初中科学七年级下册浙教版(2024)教学设计合集.docx
- 2024-2025学年小学信息技术(信息科技)六年级下册浙摄影版(2013)教学设计合集.docx
- 2024-2025学年小学美术二年级下册人美版(常锐伦、欧京海)教学设计合集.docx
文档评论(0)