版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、The CD-ROM of CX-Programmer has Users Manual of the PDF file.Please read the Notice and the Precautions in the Users Manual before using CX-Programmer. The Function Block Introduction Guide describes the basic operation procedure to use Function Block of CX-Programmer. Refer to the Help or the Users
2、 Manual of the PDF file for detailed descriptions.* You need Acrobat Reader 4.0 or grater versions in your PC to display the PDF file.ContentsChapter 1 OMRON FB Library1. What is a Function Block? 1-11-21-31-31-41-51-62. An Example of a Function Block 3. Overview of the OMRON FB Library 3-1. Benefit
3、s of the OMRON FB Library3-2-1. Example of using the OMRON FB Library - 1 3-2-2. Example of using the OMRON FB Library - 2 3-3. Content of the OMRON FB Library 3-3-1. OMRON FB Part Files 1-63-3-2. Library reference 1-61-71-71-73-4. File Catalog and Where to Access the OMRON FB Library 3-4-1. Catalog
4、 of OMRON FB Library files 3-4-2. CX-Programmer installation CD 3-4-3. Accessing OMRON FB Library files from Web server 1-7Chapter 2 How to use the OMRON FB Library1. Explanation of the target program 2-12-11-1. Application Specifications 1-2. Specifications of the OMRON FB Part file 2-11-3. Input p
5、rogram 2-22-32-42-52-62-62-72-72-92. Opening a new project and setting the Device Type 3. Main Window functions 4. Import the OMRON FB Part file 5. Program Creation 5-1. Enter a Normally Open Contact 5-2. Entering an Instance 5-3. Entering Parameters 6. Program Error Check (Compile) 7. Going Online
6、2-108. Monitoring - 1 2-119. Monitoring - 2 Change Parameter Current Value 2-122-1310. Online Editing Chapter 3 Customize the OMRON FB Part file 3-13-13-13-23-33-43-43-53-53-51. Explanation of target program 1-1. Changing File Specifications 1-2. Changing the contents of the OMRON FB Part file 2. Co
7、py the OMRON FB Part file3. Add a variable to the Function Block 4. Changing the Function Block Ladder 4-1. Entering a Contact 5. Supplemental Information 5-1. How to delete unused Function Block definitions 5-2. Memory allocation for Function BlocksChapter 4 How to use the ST (Structured Text) lang
8、uage1. What is the ST Language? 4-14-14-24-32. Explanation of the target program 3. Create a Function Block using ST 4. Entering Variables in to Function Blocks 5. Entry of ST program 4-46. Entering the FB to the Ladder Program and error checking 4-5 7. Program Transfer 4-6 8. Monitoring the Functio
9、n Block execution 4-7 Reference: Example of an ST program using IF-THEN-ELSE-END_IF 4-8 Useful Functions AppendixInputAn BnOutputXnYnZn21. What is a Function Block?OMRON FB Library“Function Blocks” are predefined programs (or functions) contained within a single program element that may be used in t
10、he ladder diagram. A contact element is required to start the function, but inputs and outputs are editable through parameters used in the ladder arrangement.The functions can be reused as the same element (same memory) or occur as a new element with its own memoryassigned.Produce templateAllocate t
11、o Ladder programB ockcation)Function Block definition .This contains the defined logic (algorithm) and I/O interface. The memory addresses are not allocated in the Function Block Definition Function Block instance(invocation) .This is the instruction that will call the function block instance when u
12、sed by the ladder program, using the memory allocated tothe instance.Function Block definitionDevice ControlENENOAXBYZPartial Ladder program for machine AControl Device 1P_OnDevice ControlENENOA1AXX1B1BYY1ZZ1Sets input / outputControl DeviceparametersFunction Instance (invP_OnDevice ControlENENOA2AX
13、X2B2BYY2ZZ2InputAn BnProcess (algorithm) Control Device nAnBnXnTnYnZnOutputXnYnZnTIMn#0100Partial Ladder program for machine AControl Device 1A1B1X1T1Y1Z1TIM1#0100Defining Inputs and Outputs 1. What is a Function Block?2. An Example of a Function BlockOMRON FB LibraryThe following figures describe a
14、n example of a function block for a time limit circuit, to be used in the ladder. It is possible to edit the set point of the TIM instruction to reallocate the set time for turning off the output in the ladder rung. Using the function block as shown below, it is possible to make the time limit of th
15、e circuit arbitrary by only changing one specific parameter.By enabling the input parameter to be editable, it is possible to allow an arbitrary time limit circuit.Ladder diagram.00000.00#002Timing chart000.00001.002.0 secT_FBTIMT_FBTimeQQPULSEENENOTime00000TIM0000TIM0000#0020001.0000000012. An Exam
16、ple of a Function Block3. Overview of the OMRON FB LibraryOMRON FB LibraryThe OMRON FB Library is a collection of predefined Function Block files provided by Omron. These files are intended to be used as an aid to simplify programs, containing standard functionality for programming PLCs and Omron FA
17、 component functions.The OMRON FB Library is a collection of function block examples that aim to improve the connectivity of the units for PLCs and FA components made by Omron. Here is a list of the benefits to be gained from using the OMRON FB Library:(1)No need to create ladder diagrams using basi
18、c functions of the PLC units and FA componentsMore time can be spent on bespoke programs for the external devices, rather than creating basic ladder diagrams, as these are already available.(2)Easy to useA functioning program is achieved by loading the function block file to perform the target funct
19、ionality, then by inputting an instance (function block call instruction: invocation) to the ladder diagram program and setting addresses (parameters) for the inputs and outputs.(3)Testing of program operation is unnecessaryOmron has tested the Function Block library. Debugging the programs for oper
20、ating the unit and FA components for the PLCs is unnecessary for the user.(4)Easy to understandThe function block has a clearly displayed name for its body and instances. A fixed name can be applied to the process.The instance (function block call instruction: invocation) has input and output parame
21、ters. As the temporary relay and processing data is not displayed, the values of the inputs and outputs are more visible. Furthermore, as the modification of the parameters is localised, fine control during debugging etc. is easier.Finally, as the internal processing of the function block is not dis
22、played when the instance is used in the ladder diagram, the ladder diagram program looks simpler to the end user.(5)Extendibility in the futureOmron will not change the interface between the ladder diagram and the function blocks. Units will operate by replacing the function block to the correspondi
23、ng FB for the new unit in the event of PLC and the FA component upgrades, for higher performance or enhancements, in the future.A fixed name can be named to the processes.It is not necessary to createthe basic communications program.INPUT/OUTPUT data is clear.Parameters are easy to understand and ed
24、it.3-1. Benefits of the OMRON FB Library3. Overview of the OMRON FB LibraryOMRON FB LibraryControlling the predefined components made by Omron can be easily achieved from the PLC ladder diagram.- Ability to configure low-cost communications (RS-232C/485)CS/C J SeriesFBAccess by Function BlockPLCSeri
25、al communications (Compoway/F protocol)Temperature controllerSmart sensorVision sensorOmron ComponentsExample: Communication between Temperature controller and PLC3-2-1. Example of using the OMRON FB Library - 1OMRON FB LibraryHigh performance communications can be made by DeviceNet level.- Ability
26、to communicate between PLC and DeviceNet slaves easily. Access by Functionblock FB CS/CJ series PLCCommunicate between PLC and the devicesDeviceNetTemperature controllerGeneric slaves such as IO terminalPLCWirelessInverterExample: data exchange between PLC and the slave devices3-2-2. Example of usin
27、g the OMRON FB Library - 2OMRON FB LibraryThe OMRON FB Library consist of the following:The OMRON FB Part file is prepared using the ladder diagram function block, for defining each function of the PLC unit and the FA component.The files contain a program written in ladder diagram and have the exten
28、sion .CXF. The file name of the OMRON FB Part file begins with _ (under score).When the OMRON FB Library is installed onto a personal computer, the OMRON FB Part files are classified in the folder appropriate to each PLC Unit and FA component in the Omron Installation directory.The library reference
29、 describes the operation specifications of the OMRON FB Part file, and the specifications of the input and the output parameters for each. The file format for this is PDF.When the OMRON FB Library is used, the user should select the OMRON FB Part file, set the input / output parameters, and test the
30、 program operations referring to the library reference.3-3-2. Library reference3-3-1. OMRON FB Part Files3-3. Content of the OMRON FB LibraryOMRON FB LibraryCX-Programmer Ver.5.0 installation CD contains the OMRON FB Library files.The user can select to install the OMRON FB Library during the instal
31、lation of CX-Programmer Ver.5.0.CX-Programmer Ver.5.0 Install CDThe latest version OMRON FB Library files will be provided by Omron on the Web server. New files will be added to support new or enhanced PLC units and FA components.The download service of the OMRON FB Library is provided as a menu of
32、Omron Web in each country.Web serverThe internetThe internet3-4-3. Accessing OMRON FB Library files from Web server3-4-2. CX-Programmer installation CDTypeTarget componentsNumber of OMRON FB Part files (at the time of July 04)FA componentsTemperature controller, Smart sensor, ID sensor, Vision senso
33、r, 2 dimensions bar code readerapprox. 80PLCCPU unit, Memory card, Special CPU IO unit (Ethernet, Controller Link, DeviceNet unit, Temperature control unit)approx. 95Motion control componentsPosition control unit InverterServo motor driverapprox. 303-4-1. Catalog of OMRON FB Library files3-4. File C
34、atalog and Where to Access the OMRON FB Library1. Explanation of the target programExplanation ofOpening aCreating atarget Programnew projectImport FB LibraryprogramProgram CheckOffline OperationThis chapter describes how to use OMRON FB Library using the OMRON FB Part file Make ON Time/OFF Time Clo
35、ck Pulse in BCD.The target application specifications are as follows :- Pulse is generated after PLC mode is changed torun or monitor mode.- Output the pulse to address 1.00.- On time of generated pulse is set at D100.- Off time of generated pulse is 2 seconds.The OMRON FB Part file Make ON Time/OFF
36、 Time Clock Pulse in BCD has the following specifications:-1-2. Specifications of the OMRON FB Part file1-1. Application Specifications1. Explanation of the target programProgram CheckCreating a programImport FB LibraryOpening a new projectExplanation of target ProgramExplanation ofOpening aCreating
37、 atarget Programnew projectImport FB LibraryprogramProgram CheckOffline OperationCreate the following ladder program:-Reference If created as a straightforward ladder diagram, the program would be as below:-1-3. Input programProgram CheckCreating a programImport FB LibraryOpening a new projectExplan
38、ation of target Program2. Opening a new project and setting the Device TypeOffline OperationExExExppplanalanalanatiotiotionnnofooffOpeOpeOpeningningningaaaCreCreCreatiatiatingngngaaatargtargtargetetetProProgProggraramrammnenenewwwprojepprroojjeectccttImpoImpoImportrtrtFBFBFBLiLiLibrbrabraarrryyyprop
39、roprogrgrgramamamProgProgProgramramramCCCheheheccckkkOffline Operation2. Opening a new project and setting the Device TypeClick the toolbar button New in CX-Programmer.ClickClick the left mouse button.!To use Function Blocks, select the following PLCs:CS1G-H, CS1H-H, CJ1G-H, CJ1H-H, CJ1MClick the le
40、ft mouse buttonClick the left mouse button to select CPU type.Click OK to decidethe selected CPU type.Program CheckCreating a programImport FB LibraryOpening a new projectExplanation of target ProgramProject TreeSectionProject WorkspaceLadder WindowFunction Block Definition3. Main Window functionsTh
41、e main window functionality is explained here.SectionNameContents / FunctionTitle BarShows the file name of saved data created in CX-Programmer.MenusEnables you to select menu items.ToolbarsEnables you to select functions by clicking icons. Select View - Toolbars, display toolbars. Dragging toolbars
42、 enables you to change the display positions.SectionEnables you to divide a program into several blocks. Each can be created and displayed separately.Project Workspace Project TreeControls programs and data. Enables you to copy element data by executing Drag and Drop between different projects or from within a project.Ladder WindowA screen for creating and editing a ladder program.Functi
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年大学第四学年(汽车服务工程)售后客户管理测试题及答案
- 第1节 电流与电压、电阻的关系(同步教学课件)物理人教版2024九年级全一册
- 浙江省湖州市九校联合2026年初三暑假末结业考试物理试题含解析
- 上海市复旦初级中学2026届中考模拟冲刺卷(提优卷)(二)数学试题文试题含解析
- 山东省临沂市临沭县重点名校2025-2026学年初三英语试题三轮复习系列七-出神入化7含解析
- 上海市重点中学2026届招生伯乐马模拟考试(三)英语试题含解析
- 2025 高中文言文阅读理解之古代舞蹈文化课件
- 2026年施工现场管理的BIM解决方案
- 2026年医疗机械设备的设计与创新挑战
- 2026年自动化技术在能源行业中的应用前景
- 缺血性肠病课件
- 违纪违法反面典型案例剖析材料汇编3篇
- 黄金冶炼项目可行性研究报告
- 胆囊癌完整版本
- 第15课《十月革命与苏联社会主义建设》中职高一下学期高教版(2023)世界历史全一册
- 十期牛黄清心丸
- 缠论-简单就是美
- JT-T-798-2019路用废胎胶粉橡胶沥青
- 手术室应对特殊感染手术的应急预案
- 2.1科学探究感应电流的方向课件-高二物理(2019选择性)
- (正式版)JBT 14793-2024 内燃机质量评价规范
评论
0/150
提交评论