我們的品牌

Impact-Company-Logo-English Black-01-177x54

歡迎造訪施耐德電機全球網站

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
Video: How to create custom OPC DA Device Types in SPM and PME
Issue
A user would like to add an OPC DA device in SPM or PME.

Product Line
StruxureWare Power Monitoring 7.0.x
Power Monitoring Expert 7.2.x
Power Monitoring Expert 8.x

Environment
Adding OPC DA devices to PME and SPM

Cause
Although OPC Sites can be added within Management Console OPC devices do not have a native device type and require a custom configuration.
Resolution
*Warning: Take backups of any files prior to modifying them. Ensure the backups are in a location that will not be overwritten (i.e. the Desktop).
Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio.
Databases should be backed up prior to performing this procedure.*

1. Name the device in the MDI. For example "OPCDevice"
IMG1

2. Add a Manager, Module, and Register.  (NOTE:  add as many Managers, Modules and Registers as needed to monitor all of your tags)
Manger


Under the tools option select "Add Device Type"



3. Save the Device in the <install path>\config\translators directory.
NOTE: In this example, the file was saved as OPCDevice.ION

After saving, go to Tools and select "Add Device Type"
Device Type


Current Device

4. Navigate to that path in Windows Explorer.
(Example path was as follows:  ...\Schneider Electric\Power Monitoring Expert\config\translators)


5. Open OPCDevice.ion file with Notepad or Notepad++

6. Copy the value ION Handle numbers that were added in step 2 above (In this example we only added one):

OPC2
7. Close the OPCDevice.ion file.

8. Open the OPCDevice.xml file.

9. Find where the ION Handles are in the OPCDevice.xml file (ctrl+f) it should look like screen cap below.  Modify the following line:

<ModbusInfo IONHandle="134217729" Name="Register1" ModbusAddress="40001" RequestType="R" Format="UINT16"/>

TO

<H ION="134217729" OPC="Channel1.Device1.IA"/>

Channel 1

TO
Channel 2

NOTE: In this example, Channel1 is the Channel/Group configured in the OPC server.
Device1 is the Device name configured in the OPC server. IA is the quantity/tag name configured in the OPC server.
This will be unique for every tag/OPC Server

10. Save and close OPCDevice.xml

11. Open SQL Management Studio.
12. Open Navigate to Databases>ION_Network>Tables, and open the dbo.DeviceType table.
13. Scroll all the way down, and locate the row with the OPCDevice recently created.
Sql 1


14. Change the value in Translator column to a 21 , and press Enter to save the changes
SQL 2


15. Close SQL Management Studio.

16. Open Management Console.
17. Add an OPC Site.

Use the following format to enter the OPC Servers address:

opcda://MACHINENAME/Server

OR

opcda://IPADDRESS/Server
Server4


Refer to your OPC server documentation for the correct server name.
Note that this information is case sensitive.

18. Click OK.

19. Add an OPC device.

Note: Leave the Address field blank.
Server2

20. Click OK.

The OPC Device is now successfully added to the system with one quantity.

NOTE:
The MDI is used to generate a dummy tree w/handles for an OPC client's XML files to do its mapping, but none of the other Modbus-related features(such as logging) work for an OPC device.
Thus, logging must be configured in the VIP.

Below is a picture of the TOPServer Configuration and TOPServer Quick Client used in the above examples.
End pic



SWToolbox.TOPServer is the name of the OPC server.
Channel1 is the Channel/Group configured in the OPC server.
Device1 is the Device name configured in the OPC server.
IA is the quantity/tag name configured in the OPC server.

In order to test OPC Server connections, it is recommended to use the OPC Test Client (<install path>\system\bin\OpcTestClient.exe)

In order to verify tag readings, it is recommended to 1) link the tag to a numeric object in Vista or 2) The ION Real Time Data Test Client (<install path>\system\bin\IONServices.TestClient.exe)

IFrame

施耐德電機Taiwan

探索更多
系列:
探索更多
系列:

需要協助?

  • 產品選型工具

    快速輕鬆地為您的應用找到合適的產品和附件。

  • 取得報價

    立即線上提交您的銷售需求,專業團隊將主動聯繫您。

  • 購買地點

    輕鬆在您所在地區找到最近的施耐德電機經銷商。

  • 支援中心

    在同一位置找到滿足您所有需求的支援資源。

  • 產品文檔
  • 軟體下載
  • 產品選型工具
  • 產品替代和替換
  • 幫助和聯絡中心
  • 尋找我們的辦公室
  • 取得報價
  • 人才招募
  • 公司簡介
  • 舉報不當行為
  • 無障礙
  • 新聞中心
  • 投資者
  • 專業洞察
  • 台灣施耐德電機學院
  • 綠色影響力落差調查
  • Schneider Go Green 2025
  • 隱私政策
  • Cookie通告
  • 使用條款
  • Change your cookie settings