MC&TT Co., Ltd

Cấu hình OPC Server với UltimateAccess (Cimon SCADA)

Chia sẻ:

Cấu hình OPC Server với UltimateAccess – phần mềm SCADA Cimon

Q: How to configure CIMON-SCADA OPC Server for Windows 7 and 8?
A: CIMON-SCADA OPC Server function is available only with WEB SERVER USB Dongle (Keylock).
These are conditions that should be met in order to properly configure and use OPC Server in SCADA:
+ USB Dongle (Keylock) should be CM04-SCADA 1-E or above as shown in the below image.
In this example, UltimateAccess V3.03 is used for the FAQ manual

UltimateAccess (CIMON-SCADA) OPC Server Configurations

1. Go to Computer → Local Disk (C:) → CIMON → UltimateAccess → CIMON SCADA
And change the file name from “CmHOpcsvr.exe” to “CmHOpcsvr_B.exe.”

2. Download and unzip “OPC Server Components” from CIMON website.

3. Copy and paste the “CmHOpcSvr” file from the [OPC Server Components] folder to
the CIMON SCADA UltimateAccess installation folder. (This file is different from the
existing file in the UltimateAccess installation folder).

4. Click and open the “AddOn.lst” file in the UltimateAccess installation folder. Type the below information in red to the “AddOn.lst” file.

5. Or you can just copy and paste “,OpcRun, orn, OpcRun.dll,,” from AddOn.lst file from
the OPC Server Components folder to the AddOn.lst file in the UltimateAccess folder.

6. Copy and paste the three files (opccfg.dat, OpcRun.dll, OpcTag.ini) from the OPC Server Components folder to the UltimateAccess installation folder.

7. The three files are now located in the UltimateAccess installation folder.

*This is the end of the UltimateAccess (CIMON-SCADA) OPC Server configurations.
Now, we’re going to learn how to configure DCOM and Firewall in Windows 7 and 8.

Windows DCOM and Firewall Configurations
The configurations for Vista / Windows 7 / Windows 8 are as follows.
1. If your PC is Windows 8, these additional settings must be done prior to the step 2.
The step 1 only applies to Windows 8.
+ Press [Windows button + R] and run “regedit.”

+ In the Registry Editor dialog, go to Edit → and click “Find” (Shortcut keys: Ctrl + F).

+  In the Find dialog, search for “EnableLUA.”

Make sure that the status bar located in the bottom of the Registry Editor displays

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Current\Version\Policies\System

If not, press F3 key and continue to look for a next search until you find it.
+ When the search is completed, double-click EnableLUA.
+ Change the Value data from 1 to 0.
+ Close the Registry Editor dialog and restart the computer.

2. User Account Control Settings
+ Control Panel → User Accounts → Run “User Account Control Settings”
+ Click “Change User Account Control settings.

Select the control level as [Never notify] and click [OK].
+ Restart your computer to apply the new setting value.
3. Create a New Account
+ Control Panel → User Accounts → Add or remove user accounts
+ Create a new account as Administrator type (i.e. “opcserver”).
+ Register a password for the new account.
+ In order for the OPC function to work properly, the newly added account must be logged on with the exact same account name and the password for both OPC Server PC and OPC Client PC.
4. The installation of the OPC Core Components
+ Go to the [UltimateAccess installation folder] → Open the [OpcSvr] folder.
+ Activate the [Setup] file and install the OPC Core Components.

If the installation does not proceed normally, go to the
www.opcfoundation.org website and install the latest version (x86 required).
5. Registration of CmHOPCSvr
+ Go to the UltimateAccess installation folder.
+ Right-click the [RegOpc.bat] file and [Run as administrator].

+ In the Command Prompt window, move to the CIMON-SCADA installation folder and type in CmHOpcSvr/regserver to execute.
+ This process registers the OPC Service on Windows.

6. DCOM Configurations
+ Click the Windows Start button and type in “dcomcnfg” in the search box.

+ [Component Services] → [Computers] → Right-click [My Computer] and select [Properties]

+ Set the configurations as above for [Options] and [Default Properties].

+ After moving to the [COM Security] tab, add the new account (“opcserver”) along with “Administrator”, “Administrators”, “Anonymous Logon”, “Everyone”, “Interactive”, “Network”, “System” in the [Access Permissions] → [Edit Limits…] and [Launch and Activation Permissions] → [Edit Limits…] and select “Allow” for everyone.
+ Set the same configurations as above for [Edit Default…]

+ Go to [MSDTC] tab and select “Use local coordinator.

+ When the configurations are completed, click [Apply] and then [OK].
+ [Component Services] → [Computers] → [My Computer] → [DCOM Config].

+  Right-click “OpcEnum” and select “Properties.”

+ Select the values as above for [General] and [Location] tabs.

+  Select “Use Default” for Permissions in [Security] tab.

+  Select “The interactive user” in [ID] tab and click [OK].

+ Right-click “KDTsystems.CmHOPCSvr”, “CimonX.Document” and set the same configurations as above in the Properties.

+ Select “Services (Local)” → Right-Click Remote Registry and select Properties.

+ Select Startup type as “Automatic” and click the [Start] button to initiate the service

7. Firewall configurations

+ Control Panel => Windows Firewall
+ Select “Allow a program or feature through Windows Firewall

+ Click [Allow another program] to add the file from the path below.
C:\Windows\System32\OpcEnum.exe (32-bit Operating System)
C:\Windows\SysWOW64\OpcEnum.exe (64 bit Operating System)

C:\CIMON\UltimateAccess\CIMON SCADA\CmHOpcSvr

+ When the two programs are added, go back to Windows Firewall and then click [Advanced settings].

+ Select [Inbound Rules] and register a [New Rule].

+ Select “Port” for the type of rule and click [Next].

+ Select “TCP” and enter “135-139” for specific local ports.
This opens all ports from 135 to 139.
Click [Next].

+ Select “Allow the connection” and click [Next].

+ Select “Domain”, “Private”, “Public” and click [Next].

+ Type in the name for the new inbound rule (i.e. “opc_server”) and click [Finish].
*This is the end of the Windows DCOM and Firewall configurations.
Now, we’re going to see how SCADA (OPC Server) communicates with an OPC Client PC.

UltimateAccess (CIMON-SCADA) OPC Server Communication with an OPC Client PC
1. Execute CimonD and open a new project.
2. Register a group tag named “A.” This group tag name will be identical with OPC tag.
3. Go to UltimateAccess installation folder and open “OpcTag.ini” file.

4. When you first open it, the “OpcTag.ini” file will be displayed as below.

5. Edit the name of the OPC group tag to “A” as previously configured in CimonD

6. Ensure that the group tag “A” in CimonD is identical with that of OpcTag.ini file

7. Save the OpcTag.ini file and run CimonX. CimonX must be running at all times in order to communicate between OPC Server and OPC Client.
8. Run “OPC Client1.exe” file from the [OPC Server Components] folder downloaded from CIMON website.

9. Go to [OPC] → [Connect] and select “KDT systems.CmHOPCSvr” for OPC Serve

10. Go to [OPC] → [Add Item] and select the tags that you want to communicate.

11. You can write and read data value between (CIMON SCADA) OPC Server and OPC Client program vice versa.

[SCADA] How to configure OPC Server in UltimateAccess

Bạn đang xem: Cấu hình OPC Server với UltimateAccess (Cimon SCADA)
Bài trước Bài sau
Đăng nhập
Đăng ký
Hotline: 0904251826
x