搜索
您的当前位置:首页wonderware ide 培训的手册文档第9章

wonderware ide 培训的手册文档第9章

来源:小侦探旅游网
Lab 9–Creating the Mixer4-77

Lab 9 –Creating the Mixer

Introduction

Inthislab, you will use the valve and motor templates that you created in previous lab to create dedicated templates for each mixer component. You will use these templates and the mixer template to create an object containment, which integrates all of the parts that make up the mixer.

You will then update the existing instance by adding instances and configure their attribute references so that their values can be viewed in Object Viewer.

Finally, you will create a new instance of the mixer container, which will also create all of the instances of the container and the contained objects.

Objectives

Upon completion of this lab, you will be able to:

Create contained templates and a containment relationshipUpdate an existing mixer instanceDeploy contained instances

Create a new containment instance

Application Server2012

4-78Module 4–Application Objects

Create the Mixer Containment Relationship

In the following steps, you will create templates for the parts of the mixer container.

1.In the Template Toolbox,Workingtoolset, right-click $Valveand select New | Derived Template.2.Rename the template $Inlet1.

Invensys Learning Services

Lab 9–Creating the Mixer4-79

3.Right-click $Valveand select New | Derived Template.4.Rename the template $Inlet2.

5.Right-click $Valveand select New | Derived Template.6.Rename the template $Outlet.

Application Server2012

4-80Module 4–Application Objects

7.Right-click $Motorand select New | Derived Template.8.Rename the template $Agitator.

Invensys Learning Services

Lab 9–Creating the Mixer4-81

You will now assign the newly created templates to the mixer template to create a container at the template level.

9.Drag and drop the following templates onto the $Mixertemplate:

$Inlet1

$Inlet2$Outlet$Agitator

Contained templates lose the $at the beginning of their names. If you were to take one or more out of the containment relationship, the $would reappear.

Application Server2012

4-82Module 4–Application Objects

Now, you will create instances for all the contained objects that will be added to the existingMixer_001.10.Display the Modelview.

11.In the Template Toolbox,Workingtoolset, right-click Agitatorand select New | Instance. Keep the

default name.

Invensys Learning Services

Lab 9–Creating the Mixer4-83

12.Create the following instances and keep the default names:

TemplateInlet1Inlet2OutletInstanceInlet1_001Inlet2_001Oulet_001The Modelview now displays the new instancesin the Unassigned Areafolder.

Application Server2012

4-84Module 4–Application Objects

Configure the Existing Mixer Instance

You will now create the containment at the instance level.

13.IntheModelview, assign all four instances in the Unassigned Areafolder to the Mixer_001

instance.

The four contained object instances display configuration warnings, which you will resolve later in this lab.

Invensys Learning Services

Lab 9–Creating the Mixer4-85

The contained name displays next to an object name in brackets. You will now change the contained name for the new four instances to match the template names.

14.In the Modelview, right-click Agitator_001and select Rename Contained Name.

The Rename Contained Namedialog box appears.

15.Rename the contained name Agitatorand click OK.

Application Server2012

4-86Module 4–Application Objects

The Modelview now displays the new contained name for the Agitator_001object.

Invensys Learning Services

Lab 9–Creating the Mixer4-87

16.Rename the contained names for the following:

Inlet1_001Inlet2_001Outlet_001

change to Inlet1change to Inlet2change to Outlet

Application Server2012

4-88Module 4–Application Objects

Configure I/O for Valves and Agitator

Next, you will configure the attribute references for the newly created contained instances.17.In the Modelview, open the Agitator_001configuration editor.

18.On the Inputstab, click the ellipsis button next to the Input Source Referencefield.

Invensys Learning Services

Lab 9–Creating the Mixer4-89

The Galaxy Browser -TrainingGalaxywindow appears.19.In the Instancespane, click PLCSim.

20.Select the Tagname.M1XX_AG_AuxContactattribute, where XXis your student number. In this

image, 00will be used.

21.Click OK.

Application Server2012

4-90Module 4–Application Objects

The Input Source Referencefield is now populated with the correct attribute reference.

Invensys Learning Services

Lab 9–Creating the Mixer4-91

22.In the Outputstab, click the ellipsis button next to the Output Destination Referencefield.23.Select the Tagname.M1XX_AG_CmdStartattribute and click OK.

The Output Destination Referencefield is now populated with the correct attribute reference.

24.Save and closethe configuration editor.

25.IntheCheck Indialog box,Commentfield,enterI/O references configurationand click OK.

Application Server2012

4-92Module 4–Application Objects

26.Open the Inlet1_001configuration editor.

27.In the Inputstab, configure the Input Source Referenceas follows:

Input 2: CLSInput 1: OLS

Tagname.M1XX_IV1_CLSTagname.M1XX_IV1_OLS

The Input Source Referencefields now display the correct attribute references.

Invensys Learning Services

Lab 9–Creating the Mixer4-93

28.In the Outputstab, configure the Output DestinationReferenceas follows:

Output 1: CmdOpen

Tagname.M1XX_IV1_CmdOpen

The Output Destination Referencefield now displays the correct attribute reference.

29.Save and closethe configuration editor.

30.IntheCheck Indialog box,Commentfield,enterI/O references configurationand click OK.

Application Server2012

4-94Module 4–Application Objects

31.Open the Inlet2_001configuration editor.

32.In the Inputstab, configure the Input Source Referenceas follows:

Input 2: CLSInput 1: OLS

Tagname.M1XX_IV2_CLSTagname.M1XX_IV2_OLS

The Input Source Referencefields now display the correct attribute references.

Invensys Learning Services

Lab 9–Creating the Mixer4-95

33.In the Outputstab, configure the Output DestinationReferenceas follows:

Output 1: CmdOpen

Tagname.M1XX_IV2_CmdOpen

The Output Destination Referencefield now displays the correct attribute reference.

34.Save and closethe configuration editor.

35.IntheCheck Indialog box,Commentfield,enterI/O references configurationand click OK.

Application Server2012

4-96Module 4–Application Objects

36.Open the Outlet_001configuration editor.

37.In the Inputstab, configure the Input Source Referenceas follows:

Input 2: CLSInput 1: OLS

Tagname.M1XX_OV_CLSTagname.M1XX_OV_OLS

The Input Source Referencefields now display the correct attribute references.

Invensys Learning Services

Lab 9–Creating the Mixer4-97

38.In the Outputstab, configure the Output DestinationReferenceas follows:

Output 1: CmdOpen

Tagname.M1XX_OV_CmdOpen

The Output Destination Referencefield now displays the correct attribute reference.

39.Save and closethe configuration editor.

40.IntheCheck Indialog box,Commentfield,enterI/O references configurationand click OK.

Application Server2012

4-98Module 4–Application Objects

The Modelview no longer displays any exclamation points.

Invensys Learning Services

Lab 9–Creating the Mixer4-99

Deploy the Instances

Even though Mixer_001is already deployed, the newly contained instances still need to be deployed.41.In the Deploymentview, select all four new instances.

42.Right-click on any of the highlighted instances and select Deploy.43.Keep the default optionsand click OK.

44.When the Deployprogress displays 100% completed, click Close.

Application Server2012

4-100Module 4–Application Objects

View the Mixer Data in Runtime

You will now return to Object Viewer to observe the attribute values in runtime.45.Right-click on Mixer_001and select View in Object Viewer.

Object Viewerappears and is refreshed.

Although the container relationship was created and the container deployed, Object Viewerdoes not display this relationship in the object list.

Invensys Learning Services

Lab 9–Creating the Mixer4-101

46.In the details pane, add the following attributes tothe watch window:

ObjectAgitator_001AttributeCmdPVInlet1_001CmdPVInlet2_001CmdPVOutlet_001CmdPVThe data being displayed is updating in the watch window.

47.Savethe watch window.

Application Server2012

4-102Module 4–Application Objects

Create a New Instance of $Mixer

Next, you will create a new instance of the mixer template.

48.In the ArchestrA IDE,Template Toolbox,Workingtoolset, right-click $Mixerand select New |

Instance.49.In the Modelview, under the Unassigned Areafolder, expand the Mixer_002instance.

Mixer_002has the contained instances of the mixer created with the correct contained names, as well as the mixer instance.

The configuration warnings and deployment for these objects will be addressed in a later lab.

Invensys Learning Services

因篇幅问题不能全部显示,请点此查看更多更全内容

Top