News CNCnetPDM About us Support  
         
  

OPC CLASSIC A&E DEVICE DRIVER | SIEMENS

This highly configurable CNCnetPDM Alarm & Events (A&E) device driver for Siemens Sinumerik 840D controllers with OPC classic A&E interface enables constant monitoring and output of active and acknowledged alarms and events from these devices.

PREREQUISITES | DOWNLOAD DRIVER | LICENSING | SETUP CNCNETPDM | USAGE | SETUP BACKGROUND SERVICE | ADJUST ITEMS | TROUBLESHOOTING | UPGRADE DRIVER

You can dynamically define the number of messages that should be output in case of an event and the their content on a per machine basis by an INI file that is automatically created with reasonable default values for each machine configured. This INI file also allows you to define your own name for error tag names.

Alarm output from Sinumerik 840D

FIG 1: Alarm output from a Sinumerik 840D controller
  • To directly read alarms & events from machines with Sinumerik 840D controllers connetcted to CNCnetPDM with your applications you can use our free Open Source Client (C-Sharp)

PREREQUISITES

Please setup your controller and the PC properly and make sure that you can connect to the device and get data with our CNCnetPDM OPC Classic A&E Client.

DOWNLOAD DRIVER

TOP

LICENSING

This device driver requires at least Version 6.3 of CNCnetPDM and also works with a free license. However, in this mode you only get one (the first) error from the controller output. With a valid license you are able to output up to 30 simultaneous errors reported by the A&E Server at the controller, see licensing for details. TOP

SETUP CNCNETPDM

  • Download CNCnetPDM (at least Version 6.3 is needed) and install it as described in the quick-start-guide.
  • Download the Sinumerik OPC classic A&E device driver, extract all content of sinumerikae_dll.zip into the folder where you have CNCnetPDM installed.

Edit CNCnetPDM.ini with a text editor and modify it as follows, leave all other values at their default:

Section [GENERAL]:

  • AcquisitionMethod = 2
    This driver uses unsolicited (event driven) communication.
  • PollInterval = 10
    Define the interval (number of seconds) for checking if the device is connected.
  • ReconnectAfter = 15
    Define after how many successful connection checks CNCnetPDM should try to reconnect to the A&E Server at the controller if the device changed its state from disconnected to connected. As the machine needs some time to start up the combination of PollInterval and ReconnectAfter should be long enough e.g. 10 x 15 = 150 sec. For older machines increase this value.
  • CollectStates = 0
  • CollectCounters = 0
    If you do not switch off these items the driver reports values whenever it checks if the device is alive. TOP

Section [RS232]:

  • If you identify your controller by IP address change it from 127.0.0.1 to its correct address e.g. 192.168.1.100.
  • If you identify your controller by DNS-Hostname change it from localhost to its correct value e.g. SINUMERIK01.
  • Change the name of the device driver from device.dll to sinumerikae.dll

A correct example would look like:

[RS232]
1 = 1000;19200;8;N;1;SINUMERIK #1;192.168.1.100;0;0;SINUMERIK01;0;0;none;none;0;sinumerikae.dll

  • Save CNCnetPDM.ini TOP

USAGE

  • Start CNCnetPDM as user ‘auduser’ (Shift key + right click CNCnetPDM.exe -> Run as different user), foreground program is sufficient (Start thread)
  • CNCnetPDM automatically copies the original sinumerikae.dll and appends the machine number as configured in the INI file, e.g. sinumerikae_1000.dll for machine 1000.
  • In addition an INI file with the same name is automatically created by the device driver, e.g. sinumerikae_1001.ini for your first machine.
  • Double click CNCnetControl, if your device number is 1000 and the device name is SINUMERIK #1 the output should be similar to the one below:TOP

CNCnetControl Alarm & Events Sinumerik 840D

FIG 2:    CNCnetControl Alarm & Events (Sinumerik)

Here the machine (1) shows up as connected (2) which is good. If there are active errors at the controller you can see data on the right side (3):

  • The line starting with O contains errors at the controller with its activated items as defined in the INI file of the device. If you didn’t change the INI file you get something like the following:

1000 06/24/2019 03:21:41 PM O ERR01|12470(1) NACK Channel 1 block N80 unknown G function G123 used| 10000000003

Every error has a tag name followed by its activated items. The tag name is built by a prepending text here ERR followed by its sequential number here 01. If multiple simultaneous errors are reported this number increases. Tag name and items are delimited by pipe ‘|’ symbols. This allows CNCnetPDM to create a database record for every alarm. TOP

SETUP BACKGROUND SERVICE

To run CNCnetPDM as a background service for controllers with OPC Classic A&E interface the service mandatorily has to run under the ‘auduser’ user account. To setup a CNCnetPDM background service proceed as follows:

  • Right click CNCnetPDM, select ‘Run as Administrator’
  • Click button [Install]
  • In the following dialog, section Service Account enter the name of your PC followed by a backslash and username auduser e.g. TESTPC\auduser
  • Enter the password for user auduser twice and click button [Ok], the dialog closes. Do not start the service.
  • As user ‘auduser’ does NOT have the right to ‘Log on as a service’ one additional step is needed.
  • Open a command prompt with elevated privileges and type in secpol.msc.
  • Navigate to Security Settings -> Local Policies -> User Right Assignment.
  • Open ‘Log on as a service’ and add user ‘auduser’.

Now you should be able to start the background service without any issues.

See also: Setup CNCnetPDM as a background service

Sinumerik Alarm & Events service

FIG 3: CNCnetPDM background service (instance ALARM) with 11 machines

ADJUST ITEMS

This device driver enables to dynamically modify, enable or disable error items and change the tag name prefix for errors. The INI file automatically created by the device driver for every machine contains sections that allow you to control its behavior.

Section [GENERAL] contains information about global parameters used by the driver on startup. Commands defines the maximum number of simultaneous errors present at the controller that should be output by the driver, default = 5, max. = 30.

Section [ALARMS & EVENTS] contains definitions if and how error items should be output:

Entry

Description

Prefix

Prefix for error tag names, default ERR

Message

Should error description be output 0 = no, 1 = yes, default 1

Message length

Max. length of the error description, default 25 characters

Active state

Should the active state of the error be output 0 = no, 1 = yes, default 1
NACK = Not acknowledged, ACK = Acknowledged

Event number

Should error number be output 0 = no, 1 = yes, default 1

Event source

Should the event source e.g. PLC or part-program be output 0 = no, 1 = yes, default 0

Severity

Should the severity value (1-1000) of the error be output 0 = no, 1 = yes, default 0

Event timestamp

Should the time since when the error is active be output 0 = no, 1 = yes, default 0

FIG 4:    Names and description of error items

Note:   To change the tag name prefix or switch items on or off while CNCnetPDM is running open the INI file with a text editor such as notepad, make the desired changes and save the file. To apply the changes immediately you can click on the machine in CNCnetControl on the left side followed by clicking buttons ‘Close’ and ‘Open’ above the section ‘Devices TOP

TROUBLESHOOTING

  • The device driver writes a log file entry for any communication issue to the log file of the device. The file can be found in subdirectory \log of your CNCnetPDM program folder. The file format for the log file is log_ + device number + _ + date.txt. Please check this file first if you observe an issue.
  • If the machine shows a red icon, state disconnected the machine is not reachable at all. This has nothing to do with the device driver, the controller is switched off, it’s a network issue, DNS Hostname or IP Address is wrong.
  • If the machine shows a green icon, state connected but you do not see any output even there are errors present at the controller the machine is reachable but the A&E device driver is not able to connect to the A&E Server at the controller. In this case, check your controller setup and the parameters used in section [RS232] of CNCnetPDM.ini. Please use the tool AEClient.exe to check if you are able to connect to the A&E Server and get data.
  • If you do get a numeric device state in regular intervals but no errors please make sure that entries CollectOrders, CollectQuality and CollectFeeder are set to 1 in section [General] of CNCnetPDM.ini and CollectStates and CollectCounters are set to 0.
  • If specific alarm items are not acquired check first with AEClient.exe that you get output. Also make sure that the item in the device drivers INI file is activated (1), inactive items are not acquired.TOP

UPGRADE DRIVER

If you already have a previous version of the driver installed and would like to upgrade to the most recent version proceed as follows:

  1. Stop any CNCnetPDM background service or foreground program that uses the device driver
  2. Extract all content of sinumerikae_dll.zip into the folder where you have CNCnetPDM installed, overwrite the existing files
  3. Delete all sinumerikae_NNNN.dll and ClientAPIAE_NNNN.dll (NNNN = machine number) files. If you already have created adapted INI files for specific devices do NOT delete the sinumerikae_NNNN.ini files.
  4. After restarting CNCnetPDM upgraded device driver versions for all machines are automatically created. TOP

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-ae-device-driver
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]
Overview
Support | Siemens | Release Notes
(6/24/2019) We released an application and a CNCnetPDM device driver that support monitoring and output of Alarms & Events (A&E) from Siemens Sinumerik controllers with... [read more]
Release Notes
Support | Siemens | OPC Classic DA
CNCnetPDM OPC DA for Siemens Sinumerik 840D controllers enables you to acquire and monitor machine-, process- and quality-data from your machines from a remote PC. It also allows... [read more]
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]
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]
OPC Classic A&E
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]
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]
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]
Opc UA DA Device Driver
Modified: 2019-06-26