News CNCnetPDM About us Support  
         
  

SINUMERIK 840D (NT 4.0 OS ONLY) | SIEMENS

ADDITIONAL STEPS

Machines that have Sinumerik controllers which are based on NT 4.0 OS are NOT able to permanently store information about the trusted DDE share NCU840D$, the data does not survive a reboot of the machine. This share is mandatorily needed for data acquisition as it grants access to the controllers internal data structures from a remote location.

Examples for the required .reg and .bat files taken from various controllers can be downloaded here.

The information about the trusted share is stored in the following location of the registry at the controller:

  • HKCU \Software\Microsoft\NetDDE\DDE Trusted Shares\

For trusted shares an additional sub key (here DDEDBi05AF918F) is created that contains another sub key with the name of the share (here NCU840D$).

  • HKCU \Software\Microsoft\NetDDE\DDE Trusted Shares\DDEDBi05AF918F\NCU840D$

In addition to the serial number of the share the registry entry contains security related information concerning the remote users rights:

"SerialNumber"=hex:0c,00,00,09,00,00,00,01
"StartApp"=dword:00000000
"InitAllowed"=dword:00000001

BACKUP SHARE

As the above information does not survive a reboot of the controller it has to be automatically added to the registry on startup of the machine. Steps:

  1. Create a .reg file that contains the required information.

The .reg file can be created by exporting the whole sub key that contains the NCU840D$ key. This is done by calling regedit followed by connecting to the registry of the controller (File -> Connect Network Registry) and manually input of the controller’s IP address.

  1. The required data can be found at the following location

HKEY_USERS\CRYPTIC_USERID\Software\Microsoft\NetDDE\DDE Trusted Shares\

wherein CRYPTIC_USERID is a string like S-1-5-21-1455767761-1966283977-1617787245-500. On these specific controllers only one of these UserID’s can be selected.

  1. By right clicking the sub key under “DDE Trusted Shares” the required information can be exported (Note: Only the selected branch must be exported, file format must be Win9x/NT4 Registration Files) and saved in a file (e.g. 1349.reg).
  2. After exporting the registry key one line of the file has to be changed. The line containing

[HKEY_USERS\ CRYPTIC_USERID…

has to be changed into

[HKEY_CURRENT_USER… the full line has to look similar to

[HKEY_CURRENT_USER\Software\Microsoft\NetDDE\DDE Trusted Shares\DDEDBi05AF918F\NCU840D$]

RESTORE SHARE

  1. To restore the share a directory at the controller (e.g. f:\scripts\) is needed that contains the .reg file created in the above steps as well as a batch file (e.g. 1349.bat). The batch file just has to contain one single line:

@regedit /s f:\scripts\1349.reg

wherein regedit /s means insert the content of f:\scripts\1349.reg into registry silently. The batch file has to be stored in the same folder as the .reg file.

  1. To automatically run the batch file when the controller starts up another entry in the registry of the controller is needed. Navigate, via regedit, File -> Connect Network Registry and manually input of the controller’s IP address, to the following registry branch of the controller:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

  1. Create a string value with a descriptive name (e.g. ddetrust) that, as string value, points to the batch file created in step 1, e.g. f:\scripts\1349.bat

Now, every time the controller is powered on it automatically executes the above batch file which results in addition of the registry entry that is needed to access the controller for correct machine data acquisition.

Privacy notice

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

https://www.inventcom.net/support/siemens/sinumerik-840d-nt-40-os-only

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 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]
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]
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: 2020-03-07