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

下載本文檔

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

文檔簡介

1、Concept V2.6Lesson 6 Objectives:After completing this lesson, the learner will be able to:Describe the difference between Located and Unlocated Variables.State the rules for Variable namingUse the Variable Editor to create and or delete Variables. Lesson OverviewConcept Software uses the idea of nam

2、ed Variables and Constants in its programming structure in order to contain global data that needs to be passed between objects. The use of these named Variables eliminates the need to physically join objects together through the use of links. This lesson will explain Variables and Data Types, the n

3、aming of Variables, hardware addressing and the difference between using or not using hardware addresses with Variable names.Concept V2.6Each Variable has to be declared with the Variable Editor before using it:Either independently with Project Variable declaration F8Or during programming with a dou

4、ble-click on an input / output assignment.A data type must be assigned to each Variable. CONCEPT software provides elementary and derived data typesConcept V2.6Common Data Types and RangesBOOLMust be a ON ( 1 ) or OFF ( 0 )WORDRepresents a “bit string 16”, meaning the length of data is 16 bits. INTR

5、epresents an integer value. The range ofvalues are -32768 through 32767UINTRepresents an unsigned integer value.The range of values are 0 through 65535REALRepresents a floating point value. The rangeof values are 8.43e-37 through 3.36e+38TIMERepresents a quantity of Time. Stored as a 32bit value, wh

6、ere the least significant bit is avalue of 1 ms. The range of values is fromt#0ms to t#49d17h2m47s295msConcept V2.6Entering Literal ValuesLiteral values are used to assign values to pins, or to assign constants to variables, and are not meant to be changed by the program.You can enter literal values

7、 as base 2 (binary)2#1111111111111111base 8 (octal)8#177777base 10 (decimal)65535 (no 10# needed)base 16 ( hex)16#FFFFAll of the above values are equal, they were just entered differentlyConcept V2.6Variable names: Max. length 32 characters, may start with numberUnlocated:Tag name without a hardware

8、 address.Implemented in the code, so its faster than a located variable.Located:Tag name with a hardware address. (State RAM.)Not implemented in the code, so its not as fast as a unlocated variable.Constants:Used to define value to a tagname, e.g., Hi_Temp = 103.7They cannot be located.Concept V2.6C

9、onfiguration, Addressing and Variable AssignmentsState-RAMDiscreteInputDiscreteOutputAnalogVoltageInputAnalogVoltageOutput%IWx3X%QWx4XHWI/O MapRanges%IXx1X%QXx0X%IX1-%IX321:1 - 1:32%QX1-%QX320:1 - 0:32%IW1-%IW83:1 - 3:8%QW1-%QW44:1 - 4:4%IX11:1%QX10:1%IW13:1%QW14:1Motor_OnValve_CtrlVariable ListProg

10、ramVariable declarationsTime1Time2Logic_InterlockStart_PBTank_LevelFFBFFBLevel_LimitUnlocated VariablesLocated VariablesConcept V2.6Direct AddressingEvery direct address has a reference that indicates its position in the sequence and whether it is an input address (read only) or an output address (r

11、ead / write). 0 x / %QXx area = bit outputs (discrete), example 1: 000001 is discrete Output 1example 2: %QX00001 is Output Bit 11x / %IXx area = bit inputs (discrete), example 1: 100017 is discrete Input 17example 2: %IX00017 is Input Bit 173x / %IWx area = register inputs, example 1: 300300 is reg

12、ister input 300example 2: %IW000300 is Input Word 3004x / %QWx area = register outputs, example 1: 400029 is register output 29example 2: %QW00029 is Output Word 29 Concept V2.6Variable EditorIdentifierData TypeUnlocated VariableLocated Variable# times used in programSort by:Name, Data Type, or Addr

13、essClick & Drag herePaste hereConcept V2.6Create New Variables by CopyingRename the newly created variablesConcept V2.6Search/Paste DialogConcept V2.6Search/Replace DialogConcept V2.6It is possible to change online without stopping the CPU:Variable Names Reference Addressesunlocated to located addre

14、sses and vice versaChanged variables can be downloaded into the PLC with Download changes.Concept V2.6Variable Editor - Export UtilityConcept V2.6Using Excel for VariablesConcept V2.6Variable Editor - Import UtilityConcept V2.6Variable Editor - Import UtilityVariable ImportComplete Import Selective

15、ImportSort ConstantsUnlocatedLocatedInput/Output availablefor DFBFilterBegins withContainsThe Reference Data EditorThe reference Data Editor is used to display and/or modify the values stored in the Symbols and/or State Ram locations in your PLC.It can also be used to initialize values in State Ram

16、locations when building your project, and then these values can be loaded to the PLC.0 x and 1x references can be disabled and forced.Unlocated elementary variables or elements of structures can be set cyclically (forced).Variable states are displayed in animation mode with different colors if they

17、are disabled or cyclically set.A maximum of 250 entries are possible in a Reference Data Editor template (window). If this limit is exceeded, a warning message is generated.You may have more than one template open at the same time.Concept V2.6Starting the Reference Data Editor (RDE)The RDE ToolbarOn

18、ce you open an RDE template, the RDEToolbar buttons will e available to you. These buttons are explained below.Create a new Template (Clears the current one!).Open a saved Template. (Replaces any data currently in the window).Save the current template. Will prompt for a name if necessary.Animate the currently selected Template. (Read and write data to the PLC).Download values and disable settings to the PLC. Useful for making changes to data without

溫馨提示

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

評論

0/150

提交評論