




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 工业排放控制与环境标准制定
- 工业旅游发展路径研究
- 工业机器人散热与节能的先进技术
- 工业污染排放的实时监控技术应用
- 工业机器人技术及产业应用分析
- 工业污染防治国际合作项目分析
- 工业自动化系统的编程与调试技术
- 工业节能与环保法规的协同推进
- 工业自动化与智能化转型战略
- 工业自动化与新材料技术的融合
- 小学信息技术五年级上册第3课《流程图描述算法》教学设计
- 市政工程计量表格样表
- 部编版六年级道德与法治上册期末复习课件
- 氢能源行业的投资机会分析
- 供电公司负责人讲安全课
- 【物理】《滑轮》(教学设计)-2024-2025学年人教版(2024)初中物理八年级下册
- 火车站高铁站消防培训
- 专项10:现代文阅读 媒体文阅读(练习)-【中职专用】2025年对口升学语文二轮专项突破(解析版)
- 降低患者跌倒的发生率
- 2024中华人民共和国学前教育法详细解读课件
- 湖北省武汉市2024年中考数学试卷(含答案)
评论
0/150
提交评论