News CNCnetPDM About us Support  



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 remote PC.


This document describes setup and test of alarm & event monitoring from Sinumerik 840D controllers that use the OPC Classic A&E Interface which is most likely the case if your controller has a Microsoft Windows OS and does NOT run Sinumerik Operate >= Version 4.5.

Sinumerik 840D Alarm Output

FIG 1:    Alarm output on a Sinumerik 840D controller


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. Add program ‘OPCSinumerikAlarm.exe’ (..\mmc2\opc\alarmevent\OPCSinumerikAlarm.exe)*
  4. Click OK

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

Sinumerik firewall settings

FIG 2:    Firewall settings on Sinumerik 840D

Restart the controller in normal mode to enable HMI again.  



  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
  • Important: In case your PC runs an Operating System > XP, e.g. Windows 7 AND the controller PC 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 driver! You also have to reboot your PC for these changes to take effect.


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. Start Explorer (%SYSTEMROOT%\explorer.exe) on your desktop
  2. In the address field input two backslash characters followed by the IP Address or DNS Hostname of your controller e.g. \\ and press enter.
  3. A dialog window that asks for credentials opens.
  4. For username type in a dot ‘.’ followed by a backslash ‘\’ and ‘auduser’ e.g. ‘.\auduser’
  5. Type in the password and press enter.
  6. If no error message pops up you’re done otherwise check your controller and firewall setup. 



If you have installed CNCnetPDM on your PC with a license other than a ‘free license’ and run this program from the folder where CNCnetPDM is installed you can monitor ALL alarms & events output by your controller, otherwise only the first one. Please see licensing for details or contact us if you have any questions.

  • Note: If you like to run this program from a different location on your PC you can simply copy your CNCnetPDM.ini file to this directory.


Download and extract all files to a folder on your PC.

In case you use a firewall at your PC or your company network please make sure that there is an exception for TCP Port 135. As the ports for OPC communication are dynamically assigned you also have to add an exception for program AEClient.exe. You can use our tool Device Port Scanner to check if your controller is reachable via port 135.

  • Note: The program requires .NET Framework 2 components to be installed on your PC.
  • Note: If your PC does NOT have any OPC programs installed you need to install the x86 version of the OPC core components:


The program enables you to connect to your controller via the OPC Classic A&E interface and monitor active and acknowledged alarms and events.

Right click AEClient.exe with the shift key pressed and select ‘Run as different user’. Enter a dot ‘.’ and backslash ‘\’ followed by user name ‘auduser’ and its password.

In AEClient.exe enter the DNS Hostname or IP Address of your controller into the textbox right to [Connect] (1).

Connect Sinumerik 840D A&E Client

FIG 3:    Connect Alarm & Events Client

Click [Connect] you now should be connected to the OPC Alarm & Events server on your controller.

Sinumerik 840D OPC A&E Client

FIG 4:    Alarm & Events Client

If there are any active alarms on your controller the program outputs them in a list in the upper area of the dialog. The list contains:

  1. Event Time: Date and time since when the event is active
  2. Severity: Severity of the event (possible values 1 - 1000)
  3. Source: Source of the event e.g. PLC or PARTPROGRAM
  4. Condition: Alarm number of the event
  5. State: State of the event. Active events show up in red with a red icon as ‘Enabled, Active, Not Acknowledged’. For acknowledged events you see a green icon with grey text ‘Enabled, Acknowledged’
  6. Message: Text output by the OPC A&E Server associated with the alarm number (condition) of the event.

If you click on one of the events you can see its details in the lower area of the dialog (7).

  • If you right click on an event you can either delete this event or clear all events in the dialog. You can also acknowledge the event if permitted by the A&E Server.
  • Clicking on [Subscription] -> [Subscription State] enables you to deactivate/activate the current subscription, set a buffer time and a maximum size for messages from the A&E Server.
  • [Subscription] -> [Filer Settings] allows to select the event types that should be acquired and minimum/maximum values for severity of alarms and events that should be output.
  • If you deselect [Overwrite old notifications] in [Settings] acknowledged alarms are shown as separate entries in the list, otherwise active alarms are overwritten once acknowledged.
  • If you’re done, click on [Disconnect].


In case of errors the program outputs an error log file (Log + date.txt) that can be found in the directory where the program is located. This file contains detailed information about any errors.

  • If you see a popup window with ‘CoCreateInstanceEx: Access is denied’ make sure that you run the program as user ‘auduser’.
  • If you see a popup window with ‘CoCreateInstanceEx: The RPC server is unavailable’ check that the controller is running, you typed in the correct IP Address and you configured your firewall correctly.
  • If the program outputs an error that contains: 'Interface not registered' make sure that you have the OPC core components installed.
  • If you shut down AEClient.exe via Task Manager or it crashes the process OPCSinumerikAlarm.exe at the controller keeps running and refuses any new connections. In this case you can either, if possible, terminate OPCSinumerikAlarm.exe directly at the controller or restart the controller.


Steps for booting the PCU in service mode:

  1. Switch on the PCU.
  2. When the prompt 'Please select the operating system to start:' is displayed, press the KEY until the line below SINUMERIK is highlighted in white.
  3. Confirm the selection by pressing the INPUT KEY.
  4. The service menu opens:

Service Menu

FIG 5:    Service menu
  1. Select the menu option: 4 Start Windows (Service Mode).
  2. Then select the menu option:
  3. Standard Windows (without starting SINUMERIK HMI)
  4. The PCU restarts.
  5. When prompted to enter "Password:" Enter your service password (default: SUNRISE)
  6. This password authorizes you to make extensive changes to the control. The password must be entered in upper case letters.
  7. After the PCU has booted in service mode you can configure MS Windows components.

Privacy notice

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

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 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-06-01