News CNCnetPDM About us Support  
       
  

SINUMERIK OPC ACCESS | SIEMENS

TOP

To be able to access the Siemens Sinumerik 840D built in OPC DA (=Classic) Servers OPC.SINUMERIK.Machineswitch and OPC.SinumerikEvents (Alarm Server) from a remote PC that is member of a workgroup or a domain via Ethernet some configuration tasks are necessary.

Note: If you want to avoid wasting your time do NOT use any of the solutions that can be found on the internet about configuring DCOM or OPC security. None of them works in this case.

The Sinumerik OPC servers heavily rely on DCOM. Successful communication between client and server requires proper authentication, nothing more.

DOWNLOAD PROGRAM | CONTROLLER SETUP | PC SETUP | DCOM GENERAL | NETWORK ACCESS TO CONTROLLER | OPC TEST | CONFIGURE INI FILE | RUN TEST | DCOM DEFAULT PARAMETERS | DCOM USERS

DOWNLOAD PROGRAM

CONTROLLER SETUP

At the controller there’s almost nothing to do.

Start up the controller in service mode without HMI.

It is recommended that you turn off simple sharing. Click Start->Run type in eplorer.exe click on Tools->Folder Options. In tab View uncheck ‘Use simple file sharing (Recommended)’. Click OK.

Just in case you have the firewall enabled proceed as follows: The most simple way to avoid communication problems is to turn off the firewall. Click on Start->Settings->Control Panel->Windows Firewall. Click on Off (not recommended) followed by OK. You’re done.

If you want to keep the firewall switched on you have to adjust some settings.

  1. Add Port 135 to exceptions.
  2. Check ‘File and Printer Sharing’.
  3. Add program ‘Simatic OPC Server’ (..\mmc2\opc\dataaccess\SOPC_MachineSwitch.exe)*
  4. Add program ‘OPCSinumerikAlarm.exe’ (..\mmc2\opc\alarmevent\OPCSinumerikAlarm.exe)*
  5. Click OK.

* Depending on the setup of your controller these files may be stored at a different location.

Sinumerik firewall settings

FIG 1:    Firewall settings on Sinumerik 840D

Restart the controller in normal mode to enable HMI again.

SERVER SETUP

DCOM GENERAL

Either click on Start->Programs->Administrative Tools->Component Services or
Start->Run and type in dcomcnfg and click OK.
Expand Component Services->Computers->My Computer
Right click My Computer select Properties
Open tab Default Properties
Make sure that Enable Distributed COM on this computer is checked.

NETWORK ACCESS TO CONTROLLER

For successful communication between PC and controller it is necessary that the querying computer is able to access the controller and its Operating System via the network with proper credentials.

Typically the account you’re using on your PC does not have the rights to access the controller. To resolve this you need to setup an additional account:

  1. Right click ‘This PC’ on your desktop and select Manage.
  2. Expand Local Users and Groups
  3. Right click on ‘Users’ and select ‘New User’
  4. In ‘User name’ enter ‘auduser’ (without quotes)
  5. In ‘Password’ enter the password for user ‘auduser’ used at the controller, (typically ‘SUNRISE’)
  6. Confirm the password, uncheck ‘User must change password at next logon’, click button Create followed by Close.
  7. Right click on username ‘auduser’, select Properties.
  8. In tab ‘Member Of’ click button Add and type in Administrators, click button Check Names followed by OK.
  9. Close the Properties dialog by clicking on OK.

Test access to your controller:

  1. Create a shortcut to explorer.exe (%SYSTEMROOT%\explorer.exe) on your desktop.
  2. Next, right click the shortcut with the shift key pressed and select ‘Run as different user’.
  3. Type in the name of your PC followed by a backslash and auduser (e.g. MYPC\auduser) followed by its password.
  4. In the address field input two backslash characters followed by the IP Address or DNS Hostname of your controller e.g. \\192.168.1.100 and press enter. You should get access to your controller.

OPC TEST

To test access to your controller’s OPC servers extract TestDCOM.exe and Config.ini to a folder of your choice at the server.

CONFIGURE INI FILE

With a text editor such as notepad edit Config.ini and change the IP Address right to ipaddr = to the IP Address of your controller. Save and close Config.ini.

Right click on TestDCOM with the shift key pressed, select ‘Run as different user’ and enter your PC’s name followed by a backslash and auduser (e.g. MYPC\auduser) followed by its password.

A dialog window opens:

TestDCOM dialog window

FIG 13:  TestDCOM dialog window

RUN TEST

  • On top you see the IP Address (1) of your controller, click on button Ping (2) right to it.
  • Under Status you should see something like ‘… Reply from 192.168.1.100: bytes=14 time=
  • Next click on button Connect (3). If it works you should see ‘…DCOM Connect Succeeded’.

All fields in sections ‘Com Security Initialize’ (4) and ‘CoCreateInstance’ (5) are preset with values that should work. So usually no changes have to be made here. Of course you can run tests with different parameters..

DCOM DEFAULT PARAMETERS

Section Com Security Initialize

Section Com Security Initialize

Authentication level default: RPC_C_AUTHN_LEVEL_CONNECT
Impersonation level default: RPC_C_IMP_LEVEL_IDENTIFY

Section CoCreateInstance

Authentication service to use default: RPC_C_AUTHN_WINNT (RPC_C_AUTHN_GSS_NEGOTIATE and RPC_C_AUTHN_DEFAULT work also)
Authorization service to use default: RPC_C_AUTHZ_NONE
Authentication level default: RPC_C_AUTHN_LEVEL_CONNECT (only RPC_C_AUTHN_LEVEL_NONE, does not work!)

Impersonation level default: RPC_C_IMP_LEVEL_IMPERSONATE

DCOM USERS

In section User (6) you can optionally set specific domain,  and usernames and passwords for access to your controller in the form of DOMAINNAME,USERNAME,PASSWORD separated by commas. If you controller is member of a workgroup use a dot instead of domain name.

Privacy notice

This website uses cookies. By continuing to use it you agree to our privacy policy. 

https://www.inventcom.net/support/siemens/sinumerik-opc-access

Support | Siemens | Overview

CNCnetPDM enables to acquire machine, process, quality, event and alarm data from a wide range of Siemens Sinumerik controllers and integrate the data seamlessly with your... [read more]
Support | Siemens | Overview

Support | Siemens | Release Notes

(4/26/2022) Due to Microsofts 'DCOM Hardening' efforts that have a huge impact on all programs which access remote devices via OPC Classic we released important updates... [read more]
Support | Siemens | Release Notes

Support | Siemens | OPC Classic DA

CNCnetPDM OPC DA for Siemens Sinumerik 840D controllers enables you acquisition and monitoring of machine-, process- and quality-data from machines with Sinumerik controllers... [read more]
Support | Siemens | OPC Classic DA

Support | Siemens | Opc Classic DA Device Driver

This highly configurable CNCnetPDM device driver for Siemens Sinumerik 840D controllers with OPC classic enables you to monitor and output machine-, process- and quality data... [read more]
Support | Siemens | Opc Classic DA Device Driver

Support | Siemens | OPC Classic A&E

CNCnetPDM OPC Classic Alarm & Events (A&E) for Siemens Sinumerik 840D controllers enables you to monitor active and acknowledged alarms and events from your machines by a... [read more]
Support | Siemens | OPC Classic A&E

Support | Siemens | Opc Classic A&E Device Driver

This highly configurable CNCnetPDM Alarm & Events (A&E) device driver for Siemens Sinumerik 840D controllers with OPC classic A&E interface enables constant... [read more]
Support | Siemens | Opc Classic A&E Device Driver

Support | Siemens | OPC UA DA SW 4.5

CNCnetPDM OPC UA for Siemens Sinumerik Operate version 4.5 enables you to monitor machine-, process- and quality-data from Sinumerik 840D SL & 828D controllers from a remote... [read more]
Support | Siemens | OPC UA DA SW 4.5

Support | Siemens | OPC UA DA SW 4.7

CNCnetPDM OPC UA for Siemens Sinumerik Operate version 4.7 or 4.8 enables you to monitor machine-, process- and quality-data from Sinumerik 840D SL & 828D controllers from a... [read more]
Support | Siemens | OPC UA DA SW 4.7

Support | Siemens | Opc UA DA Device Driver

This CNCnetPDM device driver for Siemens Sinumerik 840D SL and 828D controllers with OPC Unified Architecture (UA) enables you to monitor and output machine-, process- and... [read more]
Support | Siemens | Opc UA DA Device Driver
Modified: 2020-03-07