0% found this document useful (0 votes)
33 views19 pages

How to Setup OPC DCOM How to Setup OPC DCOM: 1. HY헤드라인M (20pt)

Uploaded by

Bình Đặng
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views19 pages

How to Setup OPC DCOM How to Setup OPC DCOM: 1. HY헤드라인M (20pt)

Uploaded by

Bình Đặng
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

1.

HY헤드라인M(20pt)

All about Data Connectivity Solutions

How to Setup OPC DCOM


BridgeWare
+82-31-346-1981
[email protected]
www.opchub.com
1. HY헤드라인M(20pt)
DCOM Setup Procedure

You need to configure DCOM on both server and client machines.

• Configure your computer to be a member of your Network


• System-wide DCOM Setup
• OPC Server-specific DCOM Setup
• OPCEnum Setup
• Configure Local Security Policies
• Add Firewall exceptions
p
• OS-specific Setup
– Recommend to disable UAC & DEP on Win7, Win2008 & Win2012.
• Checks for In-proc
p OPC Server
– Most OPC servers are out-of-Proc, Clients can connect to the server remotely.
– In-proc OPC Servers do not allow connections from remote clients. You may need
additional components (OPC Server for DA client) or DCOM Tunneller.

www.opchub.com
1. HY헤드라인M(20pt)
Network & User Account Setup

• Configure your computer to be a member of your network (Domain or Workgroup)


– Workgroup users: Client’s logon account and password must be registered on the server PC.
And client must log-on by the registered account.
**OPC Server & client PCs do not need to use the same account and password, though most
DOCM manuals recommend to do so.
– Domain users: Logon ID and PW will be managed by Domain Server.
Server No need to add logon
account on individual PCs.

• Add Windows user account


– In the Start menu, type “lusrmgr.msc” and then click OK.
– Add user account or group and setup password for that account.

www.opchub.com
1. HY헤드라인M(20pt)
System-wide DCOM Setup

• From the Start menu, type “dcomcnfg” in the run command and then click OK
• Alternatively, go to Control Panel > Administrative Tools > Component Services

www.opchub.com
1. HY헤드라인M(20pt)
System-wide DCOM Setup

Connect , if not specifically instructed

www.opchub.com
1. HY헤드라인M(20pt)
System-wide DCOM Setup

• Give Anonymous Logon, Everyone,


Interactive, System accounts (and your
specific account ) Access Rights.

www.opchub.com
1. HY헤드라인M(20pt)
System-wide DCOM Setup

www.opchub.com
1. HY헤드라인M(20pt)
System-wide DCOM Setup

www.opchub.com
1. HY헤드라인M(20pt)
DCOM Setup for OPCEnum

• Configure DCOM for OPCEnum which is almost


same as System-wide DCOM setup
• OPCE
OPCEnum enables
bl OPC clients
li t to
t browse
b OPC
server name and tag names

Expand this and Select OPCEnum

www.opchub.com
1. HY헤드라인M(20pt)
DCOM Setup for OPCEnum

Default or None, if not specifically instructed

www.opchub.com
1. HY헤드라인M(20pt)
DCOM Setup for OPCEnum

OPCEnum uses Anonymous Logon account


for initial handshake

www.opchub.com
1. HY헤드라인M(20pt)
DCOM Setup for OPCEnum

OPCEnum is run as Windows Service

www.opchub.com
1. HY헤드라인M(20pt)
Server-specific DCOM Setup (for Kepware OPC Server)

Kepware runs as Windows Service and uses


System account. Make sure SYSTEM, Everyone
are included in the list. You can remove
Interactive account from the list, if not Kepware
runs in interactive mode.

• Add the followings to the Exception list


list, if firewall enabled.
enabled
− Program “Server_Runtime.exe”
− TCP port “32402”

www.opchub.com
1. HY헤드라인M(20pt)
Local Security Policies Setup

• In the Start menu, type “secpol.msc” and then click OK.


• Or In the Start menu, open the Control Panel > Administrative Tools and setup as below.
– “Network
et o access
access: Let
et Everyone
e yo e Permission
e ss o Apply
pp y to Anonymous
o y ous Use
Userss ” Enabled”
ab ed
– “Network access: Sharing and security model for local accounts”  “Classic: Local users
authenticate as themselves"

www.opchub.com
1. HY헤드라인M(20pt)
Local Security Policies Setup

www.opchub.com
1. HY헤드라인M(20pt)
Firewall Setups

• In the Start menu, type “firewall.cpl” and then click OK.


• Or go to Control Panel > Windows Firewall
• We recommend you turn off firewall before DCOM setups.
setups Once DCOM setups done
done, you
may need to turn your Firewall back on, if required.
• You need to add the followings to the Firewall Exceptions list.
− In the Start menu,
menu type “wf
wf.msc
msc” to add exceptions.
exceptions
− Inbound Rule > New Rule > Port > add TCP port 135 (for initial DCOM handshake)
− Inbound Rule > New Rule > Program > add “OPCEnum.exe”
− Inbound Rule > New Rule > Custom > Protocol and Port > add ICMPv4 (for PING
command to work over firewall).
− Add your OPC Server executable and port number which is used by the executable.
((“Server
Server_runtime.exe
runtime.exe” and the port 32402 for Kepware OPC Server)
− Add your OPC client executable and the port number which is used by the executable.
− On Win7 or later, adding the above in the Inbound Rule is enough in most cases, if not,
add them in the Outbound Rule as well.

www.opchub.com
1. HY헤드라인M(20pt)
Windows UAC (User Access Control) Setup

• In the Start menu, type


“msconfig” and then click OK.
• From the Tools tab
tab, select Change
UAC Settings.
• And press Launch button.

• Once done, you are prompted to


re-start
t t your computer,
t bbutt you d
do
not need to do so in most cases.

www.opchub.com
1. HY헤드라인M(20pt)
DEP (Data Execution Protection) Setup

• Start Menu > Computer > Properties > Advanced


System Settings > Advanced Tab

www.opchub.com
1. HY헤드라인M(20pt)
Contact Us

Thank You!
Jason Hwang

Phone +82-31-346-1981
E il
Email i f @
[email protected]
h b
Home www.opchub.com

www.opchub.com

You might also like