200709新版手册
1、英文,Ch5 Programming Concepts, Conventions, and Features,P55
Features of the STL Editor
The STL editor displays the program as a text-based language. The STL editor allows you to create control programs by entering the instruction mnemonics. The STL editor also allows you to create programs that you could not otherwise create with the LAD or FBD editors. This is because you are programming in the native language of the S7-200, rather than in a graphical editor where some restrictions must be applied in order to draw the diagrams correctly. this text-based concept is very similar to assembly language programming.
The S7-200 executes each instruction in the order dictated by the program, from top to bottom, and then restarts at the
top.
STL uses a logic stack to resolve the control logic. You insert the STL instructions for handling the stack operations.
Consider these main points when you select the STL editor:
- STL is most appropriate for experienced programmers.
- STL sometimes allows you to solve problems that you cannot solve very easily with the LAD or FBD editor.
- You can only use the STL editor with the SIMATIC instruction set.
- While you can always use the STL editor to view or edit a program that was created with the LAD or FBD editors, the reverse is not always true. You cannot always use the LAD or FBD editors to display a program that was written with the STL editor.
二、中文,5 编程的概念、惯例及特点,P55
STL编辑器的特点
STL编辑器按照文本语言的形式显示程序。STL编辑器允许您输入指令助记符来创建您的控制程序。语句表也允许您创建用LAD和FBD编辑器无法创建的程序。这是因为您在使用S7--200的本族语言进行编程,而在图形编辑器中,为了正确地画出图形,必须遵守一些规则。文本方式与汇编语言的编程方式十分相象。
S7--200从上到下按照程序的次序执行每一条指令,然后回到程序的开始重新执行。
STL使用一个逻辑堆栈来分析控制逻辑。您插入STL指令来处理堆栈操作。
当您选择STL编辑器时,考虑以下要点
* STL最适合于有经验的程序员。
* STL有时让您能够解决用LAD或者FBD不容易解决的问题。
* 当您使用STL编辑器时,只能使用SIMATIC指令集。
* 虽然您可以用STL编辑器查看或者编辑用LAD或者FBD编辑器编写的程序,但是反之不一定成立。LAD或者FBD编辑器不一定总能显示所有利用STL编辑器编写的程序。
--------------------
翻译点评:
信:不清楚,不太象专业人员的作品。
达:基本做到了。
雅:一般般。还是有“数码”味。