News CNCnetPDM About us Support  
       
  

OPC CLASSIC REMOTE ACCESS | SIEMENS

TOP

To be able to access the Siemens Sinumerik 840D built in OPC Classic DA (Data Access) or A&E (Alarm & Event) Servers from a remote PC that is member of a workgroup or a domain via Ethernet some configuration tasks are necessary.

PC SETUP | ADD LOCAL ACCOUNT | ADD OPC CORE COMPONENTS | ADJUST DCOM SETUP | FIREWALL SETTINGS | TEST CONTROLLER ACCESS | DCOM TEST | CONTROLLER SETUP

PC SETUP

ADD LOCAL ACCOUNT (NECESSARY)

For successful DCOM communication between local and controller PC it is necessary that the PC is able to access the controller via the network with proper credentials. Typically the account you’re using on your PC does not have the rights to access DCOM at the controller. To resolve this you need to setup an additional local 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

ADD OPC CORE COMPONENTS (NECESSARY)

Download, extract and install the x86 version of the OPC core components: 

ADJUST DCOM SETUP (NECESSARY)

On a Windows Operating System that is not customized DCOM is enabled by default.

  1. Either click on Start->Programs->Administrative Tools->Component Services or Start->Run and type in dcomcnfg and click OK.
  2. Expand Component Services->Computers->My Computer
  3. Right click My Computer select Properties
  4. Open tab 'Default Properties'
  5. Make sure that 'Enable Distributed COM on this computer' is checked
  6. Next open tab 'COM Security' and, in section 'Access Permissions' click 'Edit Limits'
  7. Check Allow Local and Remote Access for users 'Everyone' and 'ANONYMOUS LOGON' (If the users are not shown click Add...), click OK
  8. Click 'Edit Default', set the same permissions and click OK
  9. In section 'Launch and Activate Permissions' click ''Edit Limits' and check Allow Local & Remote Launch and Local & Remote Activation for users 'Everyone' and 'ANONYMOUS LOGON'
  10. Click 'Edit Default', set the same permissions, click OK followed by Apply
  11. Restart your PC
  • Important: In case your controller runs Operating System Windows NT 4.0 you mandatorily have to set 'Default Authentication Level' in tab 'Default Properties' to 'None' otherwise you just get an 'Access denied' output from the test programs and the device drivers! You also have to reboot your PC for these changes to take effect.

ADJUST FIREWALL SETTINGS (OPTIONAL)

If you use a firewall on your PC or your company network disable it or, if not possible, add an exception for TCP Port 135 and an Inbound Rule that allows program CNCnetPDM.OpcDA.SimpleClient.exe or AEClient.exe (1) to use any port (2) as ports for OPC Classic communication are dynamically assigned by design (OPC Classic uses TCP Ports > 1000).

Setup firewall inbound rule for CNCnetPDM.OpcDA.SimpleClient

FIG 1:    Firewall exception for program CNCnetPDM.OpcDA.SimpleClient

In case you use the Sinumerik CNCnetPDM device driver for OPC Classic or Alarm & Events you have to add a second Inbound Rule that allows program CNCnetPDM.exe (1) to use any port (2).

Setup firewall inbound rule for CNCnetPDM

FIG 2:    Firewall exception for program CNCnetPDM

TEST ACCESS TO YOUR CONTROLLER (NECESSARY)

  1. Open Windows Explorer on your PC
  2. 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
  3. You should be asked for credentials: Enter username ‘auduser’ and its password
  4. If no errors show up you have successfully tested access to the device
  • If this does not work it may be that file sharing is not enabled at the controller. In this case run the DCOM test program
  • If running the DCOM test also fails check if your controller is reachable via TCP Port 135 with our Device Port Scanner
  • In case access to TCP Port 135 fails perform the tasks in section controller setup

DCOM TEST


To test access to your controller’s OPC servers download and extract TestDCOM.exe and Config.ini to a folder of your choice at the PC. With a text editor such as notepad you can optionally 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 a . (dot) followed by a backslash and auduser (e.g. .\auduser) followed by its password.

A dialog window opens:

TestDCOM dialog window

FIG 3:  TestDCOM dialog window

RUN TEST

  • On top enter the IP Address (1) of your controller
  • Click on button Ping (2)
  • 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’.
  • If not, again check all steps under PC Setup

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

  • 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

CONTROLLER SETUP

This task is only needed if testing access to your controller fails.

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.

Firewall settings (Controller)

If you have the firewall enabled at the controller 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. DA: Add program ‘Simatic OPC Server’ (..\mmc2\opc\dataaccess\SOPC_MachineSwitch.exe)*
  4. A&E: 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 4:    Firewall settings on Sinumerik 840D

Restart the controller in normal mode to enable HMI again.

Privacy notice

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

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

Support | Siemens | Overview

CNCnetPDM enables to acquire machine, process, quality, event and alarm data from machines equipped with Siemens Sinumerik controllers and integrate it seamlessly with your... [read more]
Support | Siemens | Overview

Support | Siemens | Release Notes

(2/21/2024) We released a new IIoT Adapter device driver for Sinumerik 840D with HMI-Advanced or HMI-Embedded that runs... [read more]
Support | Siemens | Release Notes

Support | Siemens | DDE Device Driver

This highly configurable CNCnetPDM device driver for machines with Siemens Sinumerik 840D controllers enables to add OPC UA Server, MTConnect and SQL Database output... [read more]
Support | Siemens | DDE Device Driver

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: 2024-02-22