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 you to acquire machine-, process- and quality-data from a wide range of Siemens Sinumerik controllers and integrate the data seamlessly with your business... [read more]
Overview
Support | Siemens | Release Notes
(7/18/2018) We released updated versions with important fixes of the device drivers for controllers running OPC Classic and OPC UA.... [read more]
Release Notes
Support | Siemens | Sinumerik 840D OPC DA CLASSIC
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]
Sinumerik 840D OPC DA CLASSIC
Support | Siemens | Opc Classic 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 Device Driver
Support | Siemens | Sinumerik 840D 828D OPC UA 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]
Sinumerik 840D 828D OPC UA SW 4.5
Support | Siemens | Sinumerik 840D 828D OPC UA 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]
Sinumerik 840D 828D OPC UA SW 4.7
Support | Siemens | Opc UA 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 Device Driver
Modified: 2018-02-05