Resolving SFTP Connection Failures on SINUMERIK 840D sl TCU
Field engineers frequently report that FileZilla, WinSCP, and other SFTP/FTP clients fail to reach a SINUMERIK 840D sl TCU (Thin Client Unit). Because the TCU is a stateless display terminal that only renders HMI pages from a paired NCU (Numerical Control Unit), file transfer failures almost always point at the wrong target, the wrong network port, or a service interface that has not been enabled. This reference walks through the architecture, the network ports, the required credentials, and the diagnostic steps that consistently bring up a working SFTP session against an 840D sl control.
1. System Architecture: TCU vs NCU vs PCU
The 840D sl family is built around three hardware roles that engineers routinely confuse:
| Component | Function | File-system role | Default firmware/tool |
|---|---|---|---|
| NCU 710 / 720 / 730 PNS | Numerical Control Unit (CNC kernel, PLC, drives) | Holds all NC programs, compensation data, archive, and HMI runtime | SinuTrain / HMI Pro / HMI Advanced (CF card, 8-32 GB) |
| TCU 30.2 / 50.5 / 60.3 | Thin Client Unit (display + keyboard + mouse) | No persistent data; receives pixel stream over Ethernet | No local file system of engineering value |
| PCU 50.5 / IPC | Panel Control Unit (full PC, local HMI) | Holds HMI install, programs, services | Windows 7 Embedded / Linux-based HMI |
Confirm which device you are standing in front of before you chase an FTP problem. The label on the back of a TCU reads "TCU 30.2" or "TCU 50.5"; the NCU sits in the cabinet and exposes a Type 2 CompactFlash slot behind a captive screw.
2. Network Interfaces on the NCU and TCU
The SINUMERIK 840D sl provides a deterministic, segmented network topology. Every interface is bound to a specific role; you cannot repurpose them without changing PLC configuration and HMI sl configuration files.
| Port | Device | Default IP | Subnet | Purpose | Engineering access? |
|---|---|---|---|---|---|
| X120 | NCU | 192.168.250.1 | 255.255.255.0 | PROFINET / PROFIBUS fieldbus | No |
| X127 | NCU | 192.168.215.1 | 255.255.255.0 | Service interface (Siemens internal) | Yes - SFTP, VNC, Teleservice |
| X130 | NCU | 192.168.214.1 (DHCP by default) | 255.255.255.0 | Plant / production network, HMI, TCU | |
| X1 / X2 | TCU 30.2/50.5 | DHCP from NCU | 255.255.255.0 | Display link to NCU | Indirect only (via NCU) |
| X121 | NCU | n/a | n/a | PROFINET I/O stack (NCU 730 only) | No |
Why X127 is the correct SFTP target
The X127 service interface is hard-wired to 192.168.215.1, accepts a single engineering workstation, and is intentionally isolated from the plant network. It is the only port that:
- Runs an SSH/SFTP server bound to port 22.
- Allows connections with the manufact, auduser, or service accounts.
- Bypasses plant-side firewalls and DHCP topology issues.
Pointing your SFTP client at the X130 IP (192.168.214.1) often fails because the plant interface is firewalled by the customer's IT, or the SSH daemon is bound only to the X127 socket. Always start at X127.
3. Required Connection Parameters
Working SFTP/FTP parameters for a stock 840D sl NCU running HMI Pro or HMI Advanced V4.x or later:
| Parameter | Value | Notes |
|---|---|---|
| Protocol | SFTP (SSH File Transfer Protocol) | Do not use plain FTP - port 21 is closed by default on NCU 720.3B and later |
| Host | 192.168.215.1 | X127 service interface, fixed |
| Port | 22 | SSH daemon - see Microsoft Learn: FTP Connectors for protocol background |
| Username |
manufact (manufacturer) or auduser (Siemens service) |
Lowercase, no domain prefix |
| Password (default) |
SUNRISE for manufact account |
Customer must rotate at commissioning |
| Key exchange | Diffie-Hellman group 14 (SHA-256) or higher | Old clients (PuTTY < 0.65) fail the handshake |
| Client recommendation | WinSCP 5.17+ or FileZilla 3.46+ | Both support modern key exchange |
SUNRISE is the factory password for the manufacturer account. Per Siemens commissioning guidelines, it must be changed before the machine leaves the FAT. If the password has been rotated and is unknown, recover it via the NCU's seven-segment display boot menu (operator panel front button sequence: 6 → 1 → 3) which resets to factory defaults only on explicit confirmation.4. Service Account Hierarchy
840D sl uses a numeric access level for every login. Each account maps to one of seven levels. File system write privileges scale with the level.
| Account | Access level | Default password | SFTP privileges | Use case |
|---|---|---|---|---|
user |
1 (User) | customer-defined | Read /card/user | Operator viewing NC programs |
customer |
2 (Customer) | customer-defined | Read/Write /card/user | Setup engineer |
service |
3 (Service) | customer-defined | Read/Write /card plus /oem | Service technician |
auduser |
4 (Service extended) | AUDITORIUM / service-tag | Read/Write /card, /oem, /addon | Siemens remote support |
manufact |
5 (Manufacturer) | SUNRISE | Full read/write including /cf-card system | OEM commissioning |
root |
7 (Manufacturer - Linux) | n/a (SSH key only) | Full | Reserved for factory |
5. Root Causes of "Connection Refused" and "Timed Out"
The source conversation shows three recurring failure modes. Each is treated separately below.
5.1 Wrong target host
Connecting to the TCU's address returns either "connection refused on port 22" (because the TCU has no SSH daemon) or a successful login to a minimal display-only shell that exposes no engineering directories. Always target the NCU's X127 IP, not the TCU's display-link IP.
5.2 SSH service not yet up
The NCU boots in several stages: BIOS, Linux, then the HMI. The SSH server on the NCU 720.3B / 730.3B / 731.3B is started by the HMI runtime; if the HMI is in startup or in recovery mode, the daemon may not bind port 22 for 60-180 seconds. Ping the X127 address first; only attempt SFTP after a successful ping.
5.3 Key exchange / algorithm mismatch
NCU firmware 4.7 SP2 and later disabled SHA-1 and 3DES for SSH. Legacy clients that only negotiate these ciphers (FileZilla < 3.32, PuTTY < 0.67, WinSCP < 5.13) see a handshake failure. Upgrade the client or force AES-256-CTR + Diffie-Hellman group 14 in the client config.
5.4 Customer firewall / port blocking
X127 is point-to-point. If the engineering laptop is on a managed VLAN, switch port isolation can block ARP. Configure the laptop with a static address in 192.168.215.0/24 (e.g. 192.168.215.2) and disable any VPN client during commissioning.
5.5 Wrong username casing
Linux PAM is case-sensitive. Manufact, MANUFACT, and manufact are three different accounts. The correct spelling is lowercase manufact.
6. Step-by-Step Procedure: Establish Working SFTP to NCU 720/730
- Identify the NCU and TCU. Confirm the NCU is reachable by checking the seven-segment display on the front of the NCU. It must show a number (e.g. "6" = ready, "0" = boot pending). If the display cycles through numbers, wait for steady state.
- Connect the engineering laptop directly to X127. Use a Cat5e or better patch cable. Do not connect through a switch unless you have a dedicated service switch that preserves the 192.168.215.0/24 subnet.
- Set a static IP on the laptop. Configure a manual IPv4 address: 192.168.215.2, mask 255.255.255.0, gateway 192.168.215.1. Disable Wi-Fi to prevent routing ambiguity.
-
Verify reachability with ping. From a Windows cmd prompt:
ping 192.168.215.1 -n 4. You should see four replies with < 2 ms latency. If you see "destination host unreachable", the cable, NIC, or NCU is suspect. -
Probe the SSH port with a TCP test. PowerShell:
Test-NetConnection 192.168.215.1 -Port 22. A "TcpTestSucceeded: True" confirms the daemon is bound and listening. A "False" means the HMI has not yet started the SSH server or it has been disabled by configuration. - Install or upgrade the SFTP client. WinSCP 5.17 or FileZilla 3.46+ are recommended. Avoid using the Windows built-in FTP command-line client; it does not speak SFTP.
-
Create a new site in WinSCP:
- File protocol: SFTP
- Host name:
192.168.215.1 - Port number:
22 - User name:
manufact - Password:
SUNRISE(or the rotated password) - Click Advanced → SSH → Key exchange and ensure only
ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521, anddiffie-hellman-group14-sha256are enabled.
-
Click Login. Accept the host key fingerprint on first connection; WinSCP stores it for subsequent sessions. You should land in
/cardwith the standard directory tree visible (user, oem, addon, commissioning, etc.). -
Validate directory visibility. Switch to the
manufactaccount. You must see/card/user,/card/oem,/card/addon, and/card/commissioning. Theserviceaccount cannot see/oem/sinumerik;customercannot see/addon. -
Transfer a test file. Upload a small text file (1 KB) to
/card/user. Verify it appears in the HMI's Program Manager within 10 seconds (the HMI scans for new files every 5-15 s).
7. Verification Matrix
| Test | Command / action | Pass criteria |
|---|---|---|
| L1 - Link | ping 192.168.215.1 |
< 5 ms, 0% loss |
| L2 - TCP open | Test-NetConnection ... -Port 22 |
TcpTestSucceeded: True |
| L3 - Banner | ssh -v [email protected] |
Server banner contains "SSH-2.0" |
| L4 - Auth | WinSCP login | User "manufact" authenticated |
| L5 - Read | List /card
|
Standard subfolders visible |
| L6 - Write | Upload test.txt | File visible in HMI Program Manager |
| L7 - Persist | NCU reboot | Test file still present on CF card |
8. Alternative File Transfer Methods When SFTP Is Unavailable
If the SSH daemon cannot be enabled, several supported channels exist for moving files to the NCU:
| Method | Hardware path | Bandwidth | Notes |
|---|---|---|---|
| USB stick on TCU 30.2/50.5 | TCU → NCU over display link | USB 2.0 (~30 MB/s) | TCU must be paired; mount via HMI |
| CF card reader on NCU | Direct card swap | Card-reader limited | Requires NCU shutdown |
| Teleservice / RCS Commander | Internet → X127 or X130 | WAN-limited | Replaces SFTP for remote support |
| Network share (NFS / SMB) | X130 plant network | 1 Gbit/s | Configure in networks.xml on /card/oem |
| CFast card (NCU 731.3B) | Front-panel slot | CFast 2.0 | Card is the system disk; no hot-swap |
9. Network Topology Diagram
10. Diagnostic Decision Flow
11. Common Misconfigurations and Fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| Connection times out, no banner | Wrong host (TCU IP) or VLAN mismatch | Retarget 192.168.215.1, set static IP on laptop |
| Banner appears, auth fails with "Permission denied" | Wrong password or wrong account case | Verify manufact / SUNRISE (factory) |
| "No supported authentication methods" | SSH key-only, no password fallback | Enable keyboard-interactive in WinSCP advanced |
| Handshake fails silently | Old client ciphers | Upgrade WinSCP to 5.17+ or FileZilla to 3.46+ |
Lists /card but writes fail |
Wrong access level account | Login as manufact or auduser
|
| Files appear, but HMI does not see them | HMI cache not refreshed | Wait 15 s or trigger HMI soft-key refresh |
| Connection drops after 30 s | NCU in startup, HMI not ready | Wait for steady-state seven-segment value, retry |
12. Enabling or Disabling the SFTP Server
The SSH server is normally enabled. If a customer's IT policy has disabled it, re-enable it through the following path on the HMI:
- Press the Commissioning softkey on the main menu.
- Enter the manufact password (access level 5 required).
- Navigate to Diagnostics → SFTP / SSH service.
- Set the service to Active; bind to X127 only.
- Confirm and reboot if prompted.
For NCU firmware 4.95 and later, the equivalent setting lives in /card/oem/sinumerik/hmi/cfg/sshd.cfg. Setting enabled = TRUE and interface = X127 is the recommended factory configuration.
13. Performance and Limits
| Parameter | Value | Notes |
|---|---|---|
| Max simultaneous SFTP sessions | 3 (NCU 720/730) | Configured in /etc/ssh/sshd_config
|
| Typical throughput | 3-6 MB/s over X127 (100 Mbit/s) | X127 is Fast Ethernet, not Gigabit |
| Max file size | 2 GB per file (CF card FAT32) | NCU 731.3B CFast allows 4 GB+ |
| Idle disconnect | 120 s | Configure ClientAliveInterval 60 |
| Authentication timeout | 30 s | Long WAN latency may exceed this |
14. Frequently Asked Questions
What is the correct IP address to SFTP into a SINUMERIK 840D sl TCU?
Use the NCU's X127 service interface at 192.168.215.1, not the TCU's display-link IP. The TCU has no engineering file system; the NCU hosts it on its internal CompactFlash card.
Why does FileZilla connect to port 21 fail on an 840D sl NCU?
Plain FTP (port 21) is closed on NCU 720.3B and later firmware. Use SFTP on port 22 with a modern client (WinSCP 5.17+ or FileZilla 3.46+). The underlying SSH daemon is the only file-transfer service enabled by default on the X127 service interface.
What are the default username and password for the manufacturer account?
The manufacturer account is manufact with the factory password SUNRISE. Customers are required to rotate this password at commissioning. If the password is unknown, reset it via the NCU front-panel seven-segment display boot sequence.
Can I connect to the TCU's X130 address instead of X127?
Only if the plant network permits it and the SSH daemon is bound to that interface. By default the SSH server listens only on X127 for security. Confirm the bind interface in /card/oem/sinumerik/hmi/cfg/sshd.cfg before attempting X130.
The SFTP login works but file writes are denied - what account fixes this?
The manufact (level 5) or auduser (level 4) account has write privileges across /card/user, /card/oem, and /card/addon. The customer and service accounts are restricted to their own subfolders and cannot write to /oem/sinumerik/hmi.