News CNCnetPDM About us Support  
       
  

SINUMERIK 840D (NT 4.0 OS ONLY) | SIEMENS

TOP

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

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

Support | Siemens | OPC UA Device Driver

The CNCnetPDM OPC UA device driver allows reading, writing and monitoring of machine-, process- and quality data from Siemens Sinumerik 840D & 828D controllers that run HMI... [read more]
Support | Siemens | OPC UA Device Driver
Modified: 2024-02-20