Lab 11: Configuring Automatic Reference
- Add the auto-configuration
functionality
- Add a script to the $Mixer template called
AssignIO (locked) with an OnScan execution type.
- In the AssignIO script body, add
the Lab 14 - Configuring Automatic
Reference.txt script located in the Wonderware Training folder.
- Lock the Aliases
and Declarations sections.
- Undeploy the Mixer_001 instance and change its name
to Mixer_1XX.
- Create a new instance of the $Mixer template named Mixer_2XX and assign it to the Line2 area.
- Deploy both instances of
the mixer.
- Using the watch list created in Lab 5, verify configuration of Mixer 1and its contained Objects using the Mixer tab in Object Viewer.
- Rename the Mixer
tab in Object Viewer, naming it Mixer 1.
- Add a new watch window named Mixer 2 with the following attributes to verify configuration of Mixer 2 and its contained
Objects.
- Add a script to the $Mixer template called AssignIO (locked) with an OnScan execution type.
- In the AssignIO script body, add the Lab 14 - Configuring Automatic Reference.txt script located in the Wonderware Training folder.
- Lock the Aliases and Declarations sections.
- Undeploy the Mixer_001 instance and change its name to Mixer_1XX.
- Create a new instance of the $Mixer template named Mixer_2XX and assign it to the Line2 area.
- Deploy both instances of the mixer.
- Using the watch list created in Lab 5, verify configuration of Mixer 1and its contained Objects using the Mixer tab in Object Viewer.
- Rename the Mixer tab in Object Viewer, naming it Mixer 1.
- Add a new watch window named Mixer 2 with the following attributes to verify configuration of Mixer 2 and its contained Objects.
Modify the Mixer instance, create and deploy a new Mixer instance
Object List |
Attribute List |
Agitator_002 |
Cmd |
|
PV |
Inlet1_002 |
Cmd |
|
PV |
Inlet2_002 |
Cmd |
|
PV |
LIT_002 |
PV |
Outlet_002 |
Cmd |
|
PV |
Pump1_002 |
Cmd |
|
PV |
Pump2_002 |
Cmd |
|
PV |
TT_002 |
PV |
- Add the Auto-configuration
Functionality
- Double-click the $Mixer template to open its configuration editor.
- In the Scripts
tab, click the + button to add a new script to the object. Name the script AssignIO
and
configure it as follows:
Aliases section: (locked)
Declarations section: (locked)
Scripts section:
Execution type: OnScan (locked)
Script body section: Configuring Automatic Reference.txt- Modify the Mixer instance, create and deploy a Mixer instance
- Right-click Mixer_001 and select Undeploy.
- Click OK to confirm the Undeploy, retaining the default selections in the Undeploy dialog box.
- Click Close when the Undeploy complete message displays.
- Right-click Mixer_001 and select Rename.
- Rename Mixer_001 to Mixer_100.
Note: When the mixer instance is renamed, a dialog box with a warning displays.
Click the Yes button.
Right-click the $Mixer template and choose New / Instance to create a new instance of the $Mixer template.
Rename the new instance Mixer_200,
Click Yes when the warning displays.
Assign Mixer_2XX to the Line2 area.
Click the + button to expand the Mixer_2XX instance.
Note: Warnings can be cleared by setting the default references from ---.--- to ---, or by using the Upload Runtime Changes in the context menu after deployment to pull runtime I/O assignments to the configuration interface.
Deploy the Mixer_100 instance, accepting the default deployment settings.
Deploy the newly created Mixer_200 instance, accepting the default deployment settings.
Monitor data in Object Viewer.