02产品培训-concept2.6英文版教程2003en conceptlist_第1页
02产品培训-concept2.6英文版教程2003en conceptlist_第2页
02产品培训-concept2.6英文版教程2003en conceptlist_第3页
02产品培训-concept2.6英文版教程2003en conceptlist_第4页
02产品培训-concept2.6英文版教程2003en conceptlist_第5页
已阅读5页,还剩19页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Concept V2.6Lesson 15 Objectives:After completing this lesson, the learner will be able to:Program control logic using the Instruction List Editor.Demonstrate an understanding of the Instruction List Editor.Concept V2.6Instruction List (IL) is a low level textual language which has a structure simil

2、ar to a simple machine assembler.The IEC has developed IL by reviewing the many low level languages offered by PLC manufacturers.IL provides a wide range of operators that represent those most commonly found in proprietary instruction list languages of current day PLCsConcept Programming in ILAdvant

3、ages:The basic structure of IL is very simple and easy to learn Ideal for solving small straight-forward problems where there are few decision points and a limited number of changes in program execution flowTight, optimized and fast code for performance critical sections of a program (e.g., DFBs)Dis

4、advantages:Difficult to write, read and understand the programDifficult to follow the program flowConcept V2.6With IL the following operations can be executed:logical (AND.), arithmetic (ADD.), compare (GT.) operations and assignments (ST, S, R).Jumps within a section unconditioned / conditioned (JM

5、P / JMP C, JMP CN)Functions and function blocks unconditioned / conditioned (CAL / CAL C, CAL CN)Before invoking an FFB, it has to be declared usingVAR and END_VAR.Each FFB instance must be invoked once.Multiple invocation (instantiation) is allowed!FFB-call:with CAL and a list of input parameters o

6、rwith CAL and Load/Save of the input parameters orby using the input operators.Operator Modifier Operand / SignificanceConcept V2.6LDNLoads the value of the operand into the Accumulator Literal, variable, direct address from data type ANYSTNSaves the value of the Accumulator in the operandLiteral, v

7、ariable, direct address from data type ANYSSets the operand to 1 if the Accumulator content is 1Literal, variable, direct address from data type BOOLRSets the operand to 0 if the Accumulator content is 1 Literal, variable, direct address from data type BOOLOperator Modifier Significance1 Literal, va

8、riable, direct address of data type ANY_BIT2 Literal, variable, direct address of data type ANY_NUM or TIMEConcept V2.6ANDN, N(, (Logic AND 1 ORN, N(, (Logic OR 1XORN, N(, (Logic exclusive OR 1ADD(Addition 2SUB(Subtraction 2 MUL(Multiplication 2DIV(Division 2Operator Modifier Significance Literal, V

9、ariable, Direct Address of data type ANY_ELEMConcept V2.6GT(Compare : GE(Compare : =EQ(Compare : =NE(Compare : LE(Compare : =LT(Compare : Operator Modifier Operand/SignificanceConcept V2.6JMPC, CNJump to label LabelCALC, CNFBNAME (name of instance)Invoking a FFBFUNCNAME Executing a functionLiteral,

10、variable, direct address (data type is subject to function)Editing reset operationsConcept V2.6 InputOutputDefault Data TypePossible Data Types%IX,%QXBOOLBOOL%I%Q%IB%QBBYTEBYTE%IW%QWINTINT, UINT, WORD%ID%QDREALREAL, DINT,UDINT, TIMEConcept V2.6When entering keywords, separators and comments, there i

11、s an immediate spell checkIf a keyword, a separator or a comment is detected, it is identified with a color shading.If unauthorized keywords (instructions or operators) are entered, this will be identified through color shading as well.Spaces and tabs have no effect on syntax, they can be used anywh

12、ere.Pull Down MenusConcept Programming in ILConcept V2.6Example: Entering a direct function callNo declaration is required!Concept V2.6Example: Entering a function blockIN, PT, Q, and ETare the labels of thepins on a TON timerCompare with FBDCAL FFBs:DeclarationInvocationAssignmentsConcept V2.6Tool

13、barCreate or open IL SectionType or select operator and modifier: Objects.Type or select operand: Edit Lookup variablesType or select FFB: Objects Insert FFB or click onInsert FFB see next slideConcept V2.6Concept Programming in ILInsert FFBBrowse and select FFBDeclarationInvocationAssignmentConcept

14、 V2.6Use Expand statement to complete e.g.,VAR . END_VARUse Go to counterpart to find e.g.,second bracket ( )Enter comments, consider Options, Preferences!Syntax check: Project Analyze Section.Any errors found are displayed in the message window. Double click on the first line means: go to the line

15、with the first error in IL.Concept V2.6Handling, syntax checkCode generation together with the syntax check will be performed when the section is closed.creates additional information forprocess diagnosis during code generationTests loops within ST (and IL) sectionsgenerates a runtimeoptimized codeC

16、oncept V2.6Before closing the IL section, go to Project Code generation optionsThis area used for Upload functionConcept Programming in ILIL exampleCommentsFFB-DeclarationAND-FunctionAssignmentFFB callAssignmentAND-FunctionFFB callAssignmentInspect SelectedWatch SelectedInspect SelectedConcept V2.6C

17、oncept V2.6Select variable with double clickAnimation Selected mode or Go to Online Watch SelectedRepeat for next variableRemains open until it is closed or the animation is terminatedA dialog box can be opened for each sectionConcept V2.6Select variable with double clickgo to menu Online Inspect Selectedset cursor to any position on s

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论