02產(chǎn)品培訓(xùn)-concept2.6英文版教程2003en conceptlist_第1頁(yè)
02產(chǎn)品培訓(xùn)-concept2.6英文版教程2003en conceptlist_第2頁(yè)
02產(chǎn)品培訓(xùn)-concept2.6英文版教程2003en conceptlist_第3頁(yè)
02產(chǎn)品培訓(xùn)-concept2.6英文版教程2003en conceptlist_第4頁(yè)
02產(chǎn)品培訓(xùn)-concept2.6英文版教程2003en conceptlist_第5頁(yè)
已閱讀5頁(yè),還剩19頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

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. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論