Resolving CFC Test Mode Error 0xFFDF_011E (DATABASE_DISCONNECTED) with S7-PLCSIM in SIMATIC PCS 7
In SIMATIC PCS 7, encountering the error 'Error 0xFFDF_011E: [S7DOS]' with the online monitoring 'Watch On' button disabled when attempting to activate Test Mode in a CFC chart connected to S7-PLCSIM indicates S7DOS error 286 (DATABASE_DISCONNECTED). This error signifies that the S7 communication layer cannot establish or maintain an online database handle to the virtual controller. It is caused by a mismatched PG/PC Interface setting (e.g., using physical network cards instead of PLCSIM.TCPIP.1 or PLCSIM.ISO.1), or by downloading blocks from the STEP 7 Blocks folder rather than compiling and downloading directly from the CFC chart editor. To resolve this, set the PG/PC Interface Access Point S7ONLINE to match S7-PLCSIM, perform a full download from the CFC editor, and engage Test Mode.
Table of Contents
- Anatomy of S7DOS Error 0xFFDF_011E (DATABASE_DISCONNECTED / Error 286)
- Root Causes: PG/PC Interface Mismatches and Virtual Communication Routing
- CFC Chart Database Timestamps vs Raw STEP 7 Block Downloads
- Configuring Set PG/PC Interface for S7-PLCSIM in SIMATIC PCS 7
- Diagnostic Matrix: S7-PLCSIM and CFC Online Monitoring Faults
- Step-by-Step Restoration and Online Monitoring Workflow
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
Anatomy of S7DOS Error 0xFFDF_011E (DATABASE_DISCONNECTED / Error 286)
When commissioning automation software in SIMATIC PCS 7 without physical hardware, engineers utilize the virtual controller simulation tool S7-PLCSIM. After compiling Continuous Function Charts (CFC) and downloading the program into the virtual CPU, engineers open the CFC chart editor and click Debug -> Test Mode to inspect live signal values and debug interlocks.
A frequent roadblock occurs when the 'Watch On' icon remains permanently greyed out and unclickable, or attempting to activate Test Mode generates the error popup: Error 0xFFDF_011E : [S7DOS]. Decoded through the Siemens S7DOS communication specification, hex 0x011E (decimal 286) translates to DATABASE_DISCONNECTED: No connection to database anymore or S7DOS handle invalid. The CFC editor's background communication process (s7epa64x.exe) has failed to bind its communication handle to the active simulation instance.
Root Causes: PG/PC Interface Mismatches and Virtual Communication Routing
The primary driver of S7DOS Error 286 is an interface routing discrepancy in the Windows Control Panel tool Set PG/PC Interface:
- The S7ONLINE Access Point: All high-level STEP 7 and PCS 7 engineering tools query the logical access point named
S7ONLINE (STEP 7)to locate the controller. - Physical vs Simulation Binding: On a physical engineering workstation,
S7ONLINEis typically mapped to an Industrial Ethernet adapter (e.g.,CP 1623(ISO)orIntel Gigabit Network Connection). If an engineer starts S7-PLCSIM without updatingS7ONLINE, the initial program download may succeed via a localized dialog, but the CFC chart editor attempts to open its online monitoring database across the physical network adapter. Because no physical AS controller exists at that address, S7DOS severs the socket handle and raises0xFFDF_011E.
CFC Chart Database Timestamps vs Raw STEP 7 Block Downloads
A secondary procedural flaw occurs when engineers bypass the CFC compilation and download manager:
- The CFC Database Contract: CFC charts maintain an offline relational database cross-referencing every block input, chart connection, and runtime group. To monitor a chart online, the compiled timestamp in the controller must match the offline chart database identically.
- The STEP 7 'Blocks' Download Trap: If an engineer opens the STEP 7
Blockscontainer and drags compiled blocks (FB,FC,DB) directly into S7-PLCSIM, the binary executes in the simulated CPU, but the CFC chart database was not notified of the transfer. When the engineer opens CFC Test Mode, CFC detects that the online CPU blocks lack the authoritative chart signature, disables the 'Watch On' button, and invalidates the S7DOS handle.
Configuring Set PG/PC Interface for S7-PLCSIM in SIMATIC PCS 7
To establish a robust communication link between CFC and S7-PLCSIM:
- Close all open CFC charts and stop S7-PLCSIM.
- Open Windows Control Panel and launch Set PG/PC Interface (32-bit).
- In the Access Point of the Application drop-down menu, select
S7ONLINE (STEP 7). - In the Interface Parameter Assignment Used list, select the driver matching your simulated CPU subnetwork:
-PLCSIM.ISO.1: For S7-400 / CPU 410 systems communicating over Industrial Ethernet (ISO transport).
-PLCSIM.TCPIP.1: For systems communicating over TCP/IP subnets.
-PLCSIM(MPI): For standard MPI simulation. - Click OK to commit the binding.
Diagnostic Matrix: S7-PLCSIM and CFC Online Monitoring Faults
The following matrix outlines troubleshooting steps for virtual controller communication failures:
S7ONLINE to PLCSIM.ISO.1 or PLCSIM.TCPIP.1Charts -> Download -> Entire ProgramCharts -> Compile -> Changes Only and Delta DownloadStep-by-Step Restoration and Online Monitoring Workflow
Follow this sequence to restore CFC Test Mode with S7-PLCSIM:
- Rebind Interface: In Set PG/PC Interface, set
S7ONLINEtoPLCSIM.ISO.1(or matching protocol). - Start S7-PLCSIM: Open S7-PLCSIM from SIMATIC Manager (
Options -> Simulate Modules). - Clear Virtual Memory: In S7-PLCSIM, select
PLC -> Clear/Resetto wipe any corrupt internal memory remnants. Ensure CPU switch is in STOP. - Compile and Download from CFC:
- In SIMATIC Manager, open the target chart container.
- SelectCharts -> Compile -> Entire Program.
- SelectCharts -> Download -> Entire Program.
- Allow PCS 7 to transfer the system data blocks (SDBs) and compiled chart DBs into S7-PLCSIM. - Transition to RUN-P: In S7-PLCSIM, switch the operational key from STOP to RUN-P (RUN with parameter modification allowed).
- Activate Test Mode: In the CFC chart editor, select
Debug -> Test Mode(or click the yellow test glasses icon). Confirm that the 'Watch On' icon activates and dynamic signal values illuminate in yellow text fields.
Verification
Verify live virtual controller monitoring in CFC:
- In the CFC editor with Test Mode active, click the 'Watch On' button on a technological block (e.g.,
MotLorPIDConL). - Confirm that dynamic blue and green lines reflect live logic execution without communication timeout dialogs.
- In S7-PLCSIM, toggle a digital input bit; confirm that the corresponding block input on the CFC chart transitions instantaneously.
- In SIMATIC Manager, open
PLC -> Module Information; confirm that the operating state reports 'RUN' and the diagnostic buffer shows zero S7DOS errors.
Limitations and Operational Precautions
Adhere to the following operational precautions:
- Never Forget to Revert Set PG/PC Interface: When disconnecting from S7-PLCSIM to commission physical hardware on site, always remember to re-assign
S7ONLINEback to your physical CP 1623 or network card; otherwise, downloads to the real plant AS will fail. - RUN vs RUN-P in PLCSIM: Always run S7-PLCSIM in RUN-P mode; running in standard RUN mode locks the controller against dynamic parameter forcing from CFC Test Mode.
- S7-PLCSIM Advanced Compatibility: If using S7-PLCSIM Advanced, virtual Ethernet adapters (
Siemens PLCSIM Virtual Ethernet Adapter) operate under different routing rules than classic S7-PLCSIM.
Engineer FAQ
Why did the initial program download succeed if the PG/PC interface was wrong?
The initial download dialog in STEP 7 can establish a temporary direct connection to the active window of S7-PLCSIM. However, CFC Test Mode strictly queries the system-wide S7ONLINE Access Point, which fails if mapped to a physical card.
Why must I download from the CFC editor instead of the STEP 7 Blocks folder?
The CFC editor maintains an internal database linking chart instances to online memory. Downloading from the Blocks folder circumvents this database, causing CFC to reject online monitoring.
Can multiple CFC charts be monitored simultaneously in S7-PLCSIM?
Yes, once S7DOS establishes a valid handle, multiple CFC charts can be opened in Test Mode simultaneously within the limits of your PC's processing memory.
Technical References
- SIMATIC Process Control System PCS 7 CFC for SIMATIC S7 (Entry ID: 109746516)
- S7-PLCSIM V5.4 Professional User Manual (Entry ID: 109746517)
- Siemens Industry Online Support (SIOS) FAQ: S7DOS Error Codes and Meanings (Entry ID: 109740190)
- STEP 7 V5.6 Programming with STEP 7 Manual (Entry ID: 109751825)
Related Articles
- SIMIT Simulation with S7-PLCSIM Advanced: HWCN-Export and Signal Mapping
- Configuring ibaPDA High-Speed Process Data Recording with S7-PLCSIM in SIMATIC PCS 7
- Resolving CFC Online Monitoring Error (254:61152) Online Access No Longer Available
Related Tags
- S7-PLCSIM
- CFC Test Mode
- Error 0xFFDF_011E
- S7DOS Error 286
- Set PG/PC Interface
- Online Monitoring