数控技术专业英语 教学课件 ppt 作者 刘瑛 10

上传人:E**** 文档编号:89376673 上传时间:2019-05-24 格式:PPT 页数:47 大小:307.50KB
返回 下载 相关 举报
数控技术专业英语 教学课件 ppt 作者  刘瑛 10_第1页
第1页 / 共47页
数控技术专业英语 教学课件 ppt 作者  刘瑛 10_第2页
第2页 / 共47页
数控技术专业英语 教学课件 ppt 作者  刘瑛 10_第3页
第3页 / 共47页
数控技术专业英语 教学课件 ppt 作者  刘瑛 10_第4页
第4页 / 共47页
数控技术专业英语 教学课件 ppt 作者  刘瑛 10_第5页
第5页 / 共47页
点击查看更多>>
资源描述

《数控技术专业英语 教学课件 ppt 作者 刘瑛 10》由会员分享,可在线阅读,更多相关《数控技术专业英语 教学课件 ppt 作者 刘瑛 10(47页珍藏版)》请在金锄头文库上搜索。

1、Unit 10 Program Flow,10.1 Introduction,Vocabulary,program flow 程序流 logic 5lCdVik n. 逻辑, 逻辑学, 逻辑性 branching 5brB:ntFiN n. 分支,分流 branching logic分支逻辑 shorten 5FC:tn v. 缩短, (使)变短 literally 5litErEli adv. 照字面意义, 逐字地 geometry dVi5Cmitri n. 几何学,syntax 5sintAks n. 语语法, 有秩序的排列, 句子构造, 句法 loop lu:p n. 循环 subro

2、utine 7sQbru:5ti:n n. 子程序 nesting 5nestiN n. 嵌套 in turn 依次, 轮流,Notes,1Program flow deals with the arrangement of the programthe logic path that the control follows as it progresses through the program. 程序流处理程序的组织问题即控制器处理程序的时候所遵循的逻辑路径。,2Within a CNC program, you may use branching logic and logic stat

3、ements that shorten and simplify the program. 在CNC程序中,可以通过分支逻辑和逻辑语句缩短并简化程序。,3This creative process of arranging logic statements is called syntax. The more you know about programming logic, the more combinations of syntax you will see. 这种组织逻辑语句的创造性过程就叫做语法。对编程逻辑了解的越多,你就会发现更多的语法组合方法。,4We will learn th

4、at both loops and subroutines can be contained within other logic statementscalled nesting logic. 我们将要学习,循环和子程序都可以包含在其他的逻辑语句 嵌套逻辑之中。,10.2 Subroutine Logic,10.2.1 Subroutines are “Mini-Programs”,Programming the drilling of this plate is simplified using subroutine logic.(通过使用子程序逻辑,使该盘的钻孔编程得到了简化。) Fig

5、ure 10.1,A logic diagram is used to check your program flow.(用于检查程序流的逻辑图表。) Figure 10.2,Vocabulary,withdraw wiT5drC: vt. 收回, 撤消 chip tFip n. 切屑 peck pek n. 琢 routine ru:5ti:n n. 例行公事, 常规, 日常事务, 程序 rewrite ri:5rait v. 重写, 改写 drill peck 进退式(进多退少)钻削 custom 5kQstEm adj. 定做的,定制,envision in5viVEn vt. 想象,

6、预想 arrange E5reindV v. 安排, 排列, 协商 diagram 5daiErAm n. 图表 denote di5nEut vt. 指示, 表示 symbolize 5simbElaiz vt. 象征, 用符号表现 lead-out adj. 引出 lead-in adj. 引入,Notes,1The easiest logic statement to understand is the subroutine, a mini-program sometimes called a subprogram. 最容易理解的逻辑语句就是子程序,它是一个小程序,有时也称作subpro

7、gram(子程序)。,2The group of commands repeated at each hole are written once and called a subroutine. The custom peck-drill subroutine is called out by the main program each time it is needed. 加工每一个孔都要重复的那些指令只需要编写一次,叫做子程序。每当需要时,主程序就会调用定做好的peck-drill(进退式钻削)子程序。,3The logic statements are arranged to cause

8、 the flow to branch to the subroutine then back to the main program. 逻辑语句的作用是将程序流分流到子程序然后再返回主程序。,4Because this can be complicated to envision, we will use a line drawing to represent program syntax. 由于想象起来比较复杂,我们用一个线条图来说明程序的句法。,5A logic diagram uses lines to follow the program flow and word statemen

9、ts to denote the actions taken at a particular branch of the logic. 逻辑图用线条来跟随程序流和程序语句,从而表示出特定逻辑分支的动作。,6The program flow branches away from the main program at the call statement to the start subroutine, where it performs the peck drill program. 碰到调用语句时,程序流将从主程序分流到子程序的开始,在这里它将执行进退式钻削程序。,10.2.2 Standa

10、rd and Parametric Subroutines,Vocabulary,parametric 7pArE5metrik adj. 参数的,参量的 variable 5vZEriEbl n. 变数, 可变物, 变量 fill in 填充, 填写, 填满, 替代 constantly 5kRnstEntli adv. 经常地, 坚持不懈地,Notes,1Some controls have an upper limit to the number of subroutines allowed in a program. 有些控制器对程序所允许包含的子程序数有数量限制。,2These va

11、riables are filled in. The value is set in the main program as the subroutine is called for use. 这些变量是被填入的。它们的值是在主程序调用子程序时设定的。,3The variables can be mathematical formulas containing complicated operations. The variables can be conditional statements such as: if A is less than or equal to B. then. 变量

12、可以是包含复杂运算的数学公式,也可以是条件语句,比如如果A小于或等于B,那么,10.2.3 Commands for Calling a Subroutine and Returning to the Main Program,Notes,1n is a one-to-four-digit number of the subprogram in memory. n是存储在内存中的一个由1到4位数组成的子程序号。,2n is the number of times to repeat the call of the subprogram. If omitted, the subprogram i

13、s repeated only once. n是子程序重复调用的次数。如果省略,则表示子程序只执行一次。,3The system will return to the very next statement in the main program following the M98 Pn Ln command. 系统将返回主程序中紧跟在M98 Pn Ln后的那条语句。,10.3 Looping Logic in Programs,10.3.1 General Characteristics,A simple DO loop repeats five times between lines 10

14、0 to 125.(一个DO循环将100行到125行中的指令重复5遍。) Figure 10.3,10.3.2 Commands for Loops,Vocabulary,permissible pE(:)5misEbl adj. 可允许的 dumb loop 死循环 smart loop 有限次循环 unassigned 7QnE5sainid adj. 未分配的 EIA (Electronic Industries Association) 电子工业协会,Notes,1A loop could be programmed using incremental values for the l

15、ocating statements. The loop could call the subroutine. 编写循环的时候,在定位语句中使用相对坐标值,在循环中可以调用子程序。,2The control may have an upper limit to the number of individual loops permissible in a program, there may also be a limit on the number of times a loop may repeat itself. 控制器对程序中允许的独立的循环数可能有规定的数量上限,同时循环重复自己的次

16、数也可能是受限制的。,3A dumb loop has little application in programs because, once set in motion, it never stops. The program never reaches the end. 在程序中很少使用死循环,因为一旦设定运动,它就永远不会停止。,4One example of a dumb loop is a program used to “exercise” a machine after a long shutdown period. 举一个死循环的例子,机床长时间停用后,(重新起用时)用死循环来“锻炼”机床。,5It is used to repeat a group of commands a specified number of times

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 大学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号