VIS202 -采用RSLogix 5000 用户自定义指令和 FactoryTalk View SE 人机界面软件提高.pdf_第1页
VIS202 -采用RSLogix 5000 用户自定义指令和 FactoryTalk View SE 人机界面软件提高.pdf_第2页
VIS202 -采用RSLogix 5000 用户自定义指令和 FactoryTalk View SE 人机界面软件提高.pdf_第3页
VIS202 -采用RSLogix 5000 用户自定义指令和 FactoryTalk View SE 人机界面软件提高.pdf_第4页
VIS202 -采用RSLogix 5000 用户自定义指令和 FactoryTalk View SE 人机界面软件提高.pdf_第5页
已阅读5页,还剩63页未读 继续免费阅读

VIS202 -采用RSLogix 5000 用户自定义指令和 FactoryTalk View SE 人机界面软件提高.pdf.pdf 免费下载

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

RAU 2010 中国中国 VIS202 采用采用 RSLogix 5000 用户自定义指令和用户自定义指令和 FactoryTalk View SE 人机界面软件提高设计效率人机界面软件提高设计效率 3 of 68 VIS202 采用RSLogix 5000 用户自定义指令和 FactoryTalk View SE 人机界面软件提高设计效率 Contents Introduction 4 Part 1 Making an Add On Instruction AOI 5 About this section of the lab 5 Tools however the objects in this library contain graphics only They are not linked to anything 27 of 68 5 In the following steps you will copy each component from the library paste it to your global object display and then define a link to your AOI input or output Note Please read this whole step 4 pages before proceeding The global object will not be linked to an actual tag in the controller but instead to an AOI parameter with a 1 placeholder The 1 will be replaced at runtime with an actual tagname Use this to make this And link the Connections like this 1 Commands Color Animation 1 Start Oper 1 Aux Input 1 Stop Oper 1 Motor Output 1 Reset Oper 1 Motor Aux Fault 1 OperOper Req 1 Program Mode Enabled 1 OperProg Req 1 Operator Mode Enabled Multistate Displays2 If 1 Operator Mode Enabled then 0 else If 1 Program Mode Enabled then 1 else 1 If 1 Motor Output then 0 else 28 of 68 If 1 Motor Aux Fault then 1 else 2 1Hint for linking connections you can either type them manually or use the tag browser see following pages 2Hint for using Multistate Displays with individual bits Instead of a direct tag definition use an expression to evaluate tags to get a resultant state 29 of 68 When linking the connections you can type them in manually especially since all the values you need are conveniently listed for you right here You can follow the examples below Example for setting a command button Example for setting a color animation Example for setting a multistate display with an expression State Definitions Connections Tag Expression Definition 30 of 68 When linking the connections you can use the tag browser to populate the object connections with reference to a specific tag Once you verify it works you can use Tag Substitution to make it a generic global object Example for setting a command button Instead of typing the tag parameters use the tag browser to select the desired parameter as it relates to a specific tag In this example we are mapping the Start button directly to the Start Oper parameter of the MC1 instruction Continue mapping the rest of the screen objects using the tag browser You will have a finished global object that corresponds to an actual instruction If you were to use your global object now it would forever show you only the data for MC1 In the next step you ll make the object generic but for now take advantage of the direct mapping and test your object 31 of 68 6 Once all the components are added and linked group them together The grouped object becomes your global object At this point if you typed in the connections yourself you re ready for the next step Proceed to Step 7 If you used the tag browser to populate your global object you will need to use Tag Substitution to replace all references to MC1 with 1 Right click the grouped object to select Tag Substitution Replace the entire path up to and including MC1 with 1 In this example all references to SoftLogix Program MainProgram MC1 is replaced with 1 32 of 68 7 Right click the grouped object and select Global Object Parameter Definitions The Global Object Parameter Definitions are where you list all the placeholder tags you use in your global object that you would like to be replaced at runtime In this lab we used 1 as a placeholder for the motor control tag Enter 1 and Motor Control Tag into the table and press OK We could list as many placeholders in the global object as we have used and they all would be replaced at runtime 1 would be replaced by the first tag passed to it 2 by the second 3 by the third etc The concept is the same as using tag placeholders on screens 8 Save goMotorMain and close Go to the next part 33 of 68 Part 3 Using the AOI and Global Object together In this section of the lab you will create a second instance of your AOI in your Logix application use your global object in the HMI application in 2 ways as a faceplate popup as a group display with direct tag reference in global object parameters 3 1 Creating a Faceplate Popup By following the steps below you will create a faceplate that will display an instance of your global object when you press a button 1 Expand the Displays collection 2 Select the popMotorMain display and double click to open This display is an empty shell of what will soon be a very useful popup Tip Although not required it s a good practice to name your popup displays with a prefix or a suffix such as pop or anything else that will tell you at a glance it s not just a normal display 34 of 68 3 Add the global object to the popup display by simply opening the goMotorMain component selecting the global object and dragging it to the popMotorMain display Copy Motor 2 can be referenced by the tag MC2 Hint The resulting command for the button would be Display popMotorMain T SoftLogix Program MainProgram MC2 CC 38 of 68 8 For an interesting display we will add some animated fans to show the status of the motor An animated fan global object has already been created and can be found in goFan It uses Rotation animation and will rotate when the Motor Output bit of your AOI instruction is 1 Open the goFan object 9 Drag or copy paste the fan object to the Motor Faceplate display once for Motor 1 and again for Motor 2 39 of 68 10 Set the data source for the animation of each fan by setting the global object parameter This is a preview for the next section of the lab Right click on the reference object for Motor 1 and select Global Object Parameter Values 11 When the Global Object Parameter Values window appears use the tag browser to find the appropriate tag used in ControlLogix 40 of 68 Just as in step 6 select only the tag MainProgram MC1 Even though we know the instruction parameter Motor Output is what animates the fan that parameter is already referenced in the global object 12 Repeat steps 10 and 11 for Motor 2 Just as in Step 7 you won t be able to browse for the ControlLogix tag for the second motor since it doesn t exist yet in the controller but you can still configure it now and create it later in the next step Hint The resulting tag for global parameter would be SoftLogix Program MainProgram MC2 41 of 68 13 Your Motor Faceplate screen should now look like this Verify that you have Set the correct Display command on the buttons Motor 1 and Motor 2 Added the fan animation object to the screen twice and set the Global Object Parameters Save the screen and close Note You will not need to modify any Display Settings such as screen size or location as they have already been set for this advanced lab Go to the next part 42 of 68 3 2 Creating a second instance of your AOI In the previous part you referenced a second motor in your HMI Now by going back to RSLogix create a second instance of your AOI for a second motor The resulting Main Program should look like this Test your SE client 43 of 68 Testing the SE Client Launch the SE Client from the Studio environment At this point you will be able to test the screen Motors with Faceplate popups 44 of 68 3 3 Creating a Group Display Data Source Direct Tag Reference By following the steps below you will create a group display which is a screen with multiple machine control faceplates 1 Expand the Displays collection and open the Motor Group screen You ll see an empty screen just waiting for you to fill in 2 Using global objects goFan and goMotorMain make your screen look like this Don t worry about linking them to a data source now you ll do that in the next steps 45 of 68 3 Right click on each global object to access its Global Object Parameter Values 4 When the Global Object Parameter Values window appears use the tag browser to find the appropriate tag used in Logix As before select only the tag Even though we know we are interested in many other parameters because they are already included in the global objects we don t have to care about the specifics 46 of 68 5 Verify that you have Selected the appropriate tags for each Global Object Parameter Value Reference Object Global Object Parameter Value Motor 1 Fan object SoftLogix Program MainProgram MC1 Motor 1 Motor Control object SoftLogix Program MainProgram MC1 Motor 2 Fan object SoftLogix Program MainProgram MC2 Motor 2 Motor Control object SoftLogix Program MainProgram MC2 6 Save the screen and close Note You will not need to modify any Display Settings such as screen size or location as they have already been set for this lab Test your SE client Testing the SE Client Launch the SE Client from the Studio environment At this point you will be able to test both the screens Motors with Faceplate popups and Motor Group Display 47 of 68 Part 4 Updating Add on Instructions and Global Objects Both Add on Instructions and Global Objects use a class instance paradigm changes to the class or definition of the object will be applied to all of the instances of that object In this section of the lab we will update the definition of the motor control AOI and observe the changes made to the instances of the instruction Then we will update the definition of the motor control face plate to match 1 If it isn t running already launch RSLogix 5000 and open the project we have been working on 2 Take the controller offline Changes to the definitions of Add on Instructions can not be made online 48 of 68 3 Open the interface definition of the Motor Control AOI by right clicking on it and selecting Open Definition 4 Select the Parameters tab We are going to add a new input and a new output Call these parameters NewInput and NewOutput and make them BOOLs Click OK when done 5 Open up the logic for the Motor Control AOI by double clicking Logic 49 of 68 6 To keep things simple just add a rung that sets the value of NewOutput to the same as the value of NewInput 7 Save the project download and go into Remote Run mode 50 of 68 8 Open the MainRoutine Right click on the MC1 Motor Control and select Open Instruction Logic This will give us a view of the logic running for this instance of the Motor Control instruction 9 Notice that our new rung of logic is there Repeat this for MC2 if you wish 51 of 68 10 Open the Program Tags for MainProgram In the Monitor Tags window expand the MC1 tag Notice that our new parameters are present Manipulate the value of NewIntput from 0 to1 and notice that NewOutput follows suit Try this with the MC2 tag as well if you wish 11 Now we ll update our Global Object to incorporate the new parameters If it isn t running already launch FactoryTalk View Studio and open the local project TechEd08 DC04 12 To keep things neat close any open displays Then under Global Objects open goMotorMain 52 of 68 13 Before we add anything new to the Global Object we need to ungroup its components Click on the Global Object and then click the Ungroup button in the toolbar You will get the following warning dialog Answer Yes We will have to redefine the Global Object parameters after adding the new element and re grouping 53 of 68 14 Add a Maintained Push Button to the center area of the Global Object Configure its connections and states as shown below Click OK when you are done 15 Select all of the elements in the Global Object by using Edit Select All or by hitting Ctrl A on the keyboard Then re group the elements using the button on the toolbar 54 of 68 16 We now need to re define the Global Object parameter Right click on our Global Object and select Global Object Parameter Definitions 17 Fill out the parameter definitions as you did previously Hit OK and save the Global Object 55 of 68 18 We ll now check the runtime client to see how our changes have been automatically propogated If the client isn t running launch it with this button on the toolbar If the client is running switch to another screen to refresh the objects 19 Open the Motor Group Display Notice that our new button is displayed Click it to confirm that it is working properly Check the popup display in Motors with Faceplate popups as well The change we made to the definition has propagated to all three instances of the Global Object that we created 56 of 68 Part 5 Storing and Deploying Add On Instructions with RSLogix Architect Libraries RSLogix Architect gives users a place to manage Logix5000 based controller configurations Simple to use it helps efficiently manage controller configuration files network configurations and produced consumed tag relationships In version 3 RSLogix Architect added the ability to manage libraries of Add on Instructions and User Defined Types In version 3 5 RSLogix Architect added the ability to do basic revision management of Add on Instructions In previous sections of this lab we have seen how to transfer AOIs out of a library and into an RSLogix 5000 project In this section we ll see how to use libraries and AOI revision management within an RSLogix Architect 1 We are going to import the ACD file we have been working on into RSLogix Architect RSLogix Architect doesn t currently support SoftLogix so we will first have to change the controller type If you are online go offline Then in RSLogix 5000 right click the controller in the tree view and select Properties 2 In the Controller Properties dialog select Change Controller 3 Choose 1756 L63 in the Change Controller dialog and click OK 57 of 68 4 Click Yes in the warning dialog that appears 5 Click OK in the Controller Properties dialog and save the project 6 Close RSLogix 5000 7 If it isn t running already launch RSLogix Architect Use the shortcut on the desktop or from the Start menu select Programs Rockwell Software RSLogix Architect RSLogix Architect 8 Create a new RSLogix Architect project Select File New Project 9 Complete the dialog as shown below and click OK 10 Click OK in the Enter New Page Name dialog 58 of 68 11 We are now going to import the chassis definition from the application we ve been working on Right click on the Layout 01 page and select Add Controller Project 12 Select C RSLogix 5000 Project AOI ACD and click Open 59 of 68 13 Click OK to the Confirm Synchronization Changes dialog Our chassis will be added to the page 14 Let s add another controller to the chassis In the bottom left pane select the Control Hardware Catalog tab and expand Controllers 15 Click and drag another 1756 L63 into the chassis Name it AOI2 and click OK 60 of 68 16 In the Controller Properties dialog don t change the defaults Just click OK 17 Let s put the AOIs from our library into the controller we just created In the lower left pane select the Library Management tab 18 In the Controller View in the upper right pane select the AOI2 controller 61 of 68 19 To add our Motor Control and Motor Sim AOIs into the new controller just drag and drop them from the library to the Add On Instructions folder of the controller 20 Recall though that we updated the Motor Control AOI in our original controller Let s update the library to contain our latest revision In the Controller View select the AOI controller 21 Now drag and drop the Motor Control AOI from the controller to the library 22 A dialog will appear warning you that an AOI with the same name already exists Select the Replace component radio button and click OK 23 The library now contains our updated Motor Control AOI Let s say we want to find out where else in our RSLogix Architect project this AOI is used and update it To do this just right click on the Motor Control AOI in the library and select Replace AOI in Project 62 of 68 24 The resulting dialog shows that the last edit date of the Motor Control AOI in AOI2 doesn t match the last edit date of the one in the library Had we changed the revision number description or rev note when we updated our AOI as best practice would dictate it would show these differences as well If we wanted to see all instances of the selected AOI including the ones that matched we would uncheck the Show AOIs with differences only check box 25 We want to update this AOI so make sure the check box beside it is selected and click the Replace button It now has the latest version of the AOI 26 To push these changes out to an ACD file click the Commit Layout Page button in the toolbar 63 of 68 27 Click OK in the Validation Results dialog 28 We can now open the ACD file for AOI2 from RSLogix Architect Right click on the controller in the chassis and select

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论