wonderware ide 培训的手册文档第5章,共21章
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Lab 5 –Connecting to the Field
Introduction
In this lab,you will configure an instance of the $DDESuiteLinkClient template to connect to a device integration server using the SuiteLink protocol. You will then use Object Viewer to monitor the connection status of the instance in runtime.
Objectives
Upon completion of this lab, you will be able to:
Configure a device integration object
Monitor the connection status of a device integration object
Create a Connection to a Field Device
In the following steps, you will create an instance of the $gDDESuiteLinkClient template and configure it to connect to the PLC simulator.
1.In the ArchestrA IDE,Template Toolbox,Global toolset, right-click $gDDESuiteLinkClient and
select New | Instance.
2.Rename the instance PLCSim.
3.Double-click PLCSim to open its configuration editor.
4.On the General tab, configure the instance as follows:
Server node:[check with your instructor] In this image, TrainingPC-IO2 is used.
Server name:RTEngine
Communication Protocol:SuiteLink(default)
5.At the top of the PLCSim pane, click the Topic tab.
6.In the Available topics section,click the Add button.
7.In the Topic field, enter Tagname and press Enter.
8.In the Associated attributes for Tagname section, click the Import button.
The Open dialog box appears.
9.Navigate to the C:\Training folder, select the PLC Items List.csv file.
Click Open.
After a few seconds, the Associated attributes for Tagname section is populated with all of the items in the file.
The Attribute column displays the aliases assigned to each of the corresponding Item Reference data points.
10.Click the Save and close button to close the editor.
The Check In dialog box appears.
11.In the Comment field, enter Basic Configuration.
12.Click OK.
13.In the Model view, assign the PLCSim instance to the ControlSystem area.
14.In the Deployment view, host the PLCSim instance in AppEngine1.
15.Right-click on PLCSim and select Deploy.
16.Keep the default options and click OK.
17.When the Deploy progress displays 100% completed, click Close.
View the Attributes in Runtime
You will now return to Object Viewer to view the attribute values in runtime.
18.In the Deployment view, right-click PLCSim and select View in Object Viewer.
The Object Viewer window appears and refreshes.
19.Right-click on the watch window and select Add Watch Window.
20.Right-click on the watch window and select Rename Tab.
21.Rename the tab PLCSim.
22.In the details pane, add the following attributes to the watch window:
ConnectionStatus
Reconnect
ScanState
ScanStateCmd
23.Add the ScanGroupList attribute to the watch window.
The Array for PLCSim.ATTRIBUTE(ScanGroupList)dialog box appears.
This appears because ScanGroupList is an array and requires an index to be entered. You will now configure the array to display the entire array dimension.
24.In the Enter an array index field, enter-1.
25.Click OK.