




版權(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025至2030年中國(guó)增韌母料數(shù)據(jù)監(jiān)測(cè)研究報(bào)告
- 2025年軍隊(duì)文職人員招聘之軍隊(duì)文職教育學(xué)模擬考試試卷A卷含答案
- 2019-2025年消防設(shè)施操作員之消防設(shè)備初級(jí)技能模擬考試試卷A卷含答案
- 2021-2022學(xué)年廣東省廣州四中初中部逸彩校區(qū)七年級(jí)(下)期中數(shù)學(xué)試卷(含答案)
- 2025年天津市專業(yè)技術(shù)人員公需考試試題-為中國(guó)式現(xiàn)代化提供強(qiáng)大動(dòng)力和制度保障-黨的二十屆三中全會(huì)暨《中共中央關(guān)于進(jìn)一步全面深化改革、推進(jìn)中國(guó)式現(xiàn)代化的決定》總體解讀
- 高等教育自學(xué)考試《00074中央銀行概論》模擬試卷一
- 2025年大學(xué)英語(yǔ)六級(jí)考試預(yù)測(cè)試卷一
- 2023年同等學(xué)力申碩《英語(yǔ)》試題真題及答案
- 美容整形手術(shù)服務(wù)合同協(xié)議
- 紡織服裝產(chǎn)品質(zhì)量免責(zé)承諾書
- 2025年海南??谑兴畡?wù)局招聘事業(yè)單位人員35人歷年高頻重點(diǎn)模擬試卷提升(共500題附帶答案詳解)
- COP生產(chǎn)一致性控制計(jì)劃
- 2025年電力人工智能多模態(tài)大模型創(chuàng)新技術(shù)及應(yīng)用報(bào)告-西安交通大學(xué)
- 天津2025年天津市機(jī)關(guān)后勤事務(wù)服務(wù)中心分支機(jī)構(gòu)天津市迎賓館招聘2人筆試歷年參考題庫(kù)附帶答案詳解
- 華東師大版七年級(jí)數(shù)學(xué)下冊(cè)“第1周周考”
- 教師論文撰寫培訓(xùn)
- 2024年道路運(yùn)輸企業(yè)安全生產(chǎn)管理人員證考試題庫(kù)
- 學(xué)習(xí)雷鋒主題班會(huì)雷鋒日學(xué)習(xí)雷鋒精神-
- 事故隱患內(nèi)部舉報(bào)獎(jiǎng)勵(lì)制度
- 2020-2024年安徽省初中學(xué)業(yè)水平考試中考?xì)v史試卷(5年真題+答案解析)
- 電工每日巡查簽到表
評(píng)論
0/150
提交評(píng)論