Troubleshooting Inactive APL Faceplate Buttons and Communication Failures in S7-PLCSIM for PCS 7
In SIMATIC PCS 7 V9.0 SP2, when APL faceplates in WinCC Runtime render with invalid status displays and unclickable command buttons ('...') during simulation in S7-PLCSIM, the failure is caused by an unestablished communication connection. Standard S7-PLCSIM (V5.4) does not support PCS 7 Named Connections. To establish communication, configure an alternative ISO or TCP/IP connection between the OS and AS in NetPro, compile the OS using that connection, map the S7 Protocol Suite channel unit to 'PLCSIM', and set the Windows Set PG/PC Interface access point 'S7ONLINE' to 'PLCSIM.TCPIP.1' or 'PLCSIM.ISO.1'. Once valid signal quality is restored, all faceplate buttons activate.
Table of Contents
- Executive Summary
- Architecture and Fundamental Mechanics
- Step-by-Step Implementation Procedure
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
Executive Summary
Virtual commissioning using S7-PLCSIM enables automation engineers to validate Advanced Process Library (APL) logic, interlocks, and operator faceplates on an engineering workstation without physical hardware. A frequent pitfall encountered during initial simulation setup is opening WinCC Runtime, clicking an APL block icon (such as MotL or VlvL), and finding that the faceplate renders with bad signal quality indicators (yellow warning triangles) while all operator buttons and mode selectors remain completely grayed out and unresponsive. This behavior is an integrated APL protective feature: when communication is lost, operator commands are inhibited. This article explains the communication constraints of S7-PLCSIM in PCS 7, outlines the PG/PC interface configuration, and details the verified simulation setup procedure.
Architecture and Fundamental Mechanics
Named Connections vs. Standard S7 Protocol Suite, Bad Quality Inhibit, and S7-PLCSIM Routing:
- Named Connections vs. Standard S7 Protocol Suite in S7-PLCSIM:
- In a physical PCS 7 deployment, communication between the OS and AS relies on Named Connections (via
SIMATIC Communication Suiteover dedicated CP 1623 communication processors). - Classic S7-PLCSIM V5.4 does NOT support Named Connections; it emulates an S7-400 CPU communication stack accessible exclusively via MPI, PROFIBUS, ISO on TCP (RFC 1006), or Industrial Ethernet (ISO Transport).
-
If an engineer compiles the OS using the default Named Connection and launches PLCSIM, WinCC cannot resolve the connection handle, leaving all process tags in an uninitialized state.
-
APL Signal Quality (
Quality Code) Inhibit Logic: - Every APL block transmits structured tags containing both a process value (
.Value) and an 8-bit quality code (.ST). - When WinCC has no active communication to the controller, the WinCC data manager assigns all tags a quality status of
16#00(Bad, non-specific / not connected). -
The APL faceplate script (
@pg_*.pdl) evaluates the quality code: if the tag quality is Bad, the faceplate automatically disables the operator permission mask and sets theEnableproperty of all command buttons (Start, Stop, Auto, Manual, Internal, External) toFALSE, preventing operators from issuing blind commands. -
Resolution Architecture:
- To simulate successfully, the OS must be compiled against an Industrial Ethernet (ISO) or TCP/IP connection, and WinCC Tag Management must be directed to bind its logical device name to the active PLCSIM virtual adapter.
Step-by-Step Implementation Procedure
-
Configure Alternative S7 Connection in NetPro:
* In SIMATIC Manager, open NetPro.
* Select the WinCC Application on the OS station.
* In the connection table, insert a new connection targeting the S7-400 CPU.
* Select connection type: S7 connection (not fault-tolerant / not named); ensure the interface uses Industrial Ethernet or TCP/IP.
* Save and compile network configurations in NetPro. -
Compile OS with the Simulation S7 Connection:
* In SIMATIC Manager Component View, right-click the OS object and select Compile.
* In the 'Select network connections' step of the OS Compilation wizard, select the newly created Industrial Ethernet or TCP/IP connection instead of the Named Connection.
* Complete the compilation. -
Configure Set PG/PC Interface for PLCSIM:
* Open Windows Control Panel and launch Set PG/PC Interface (s7epaImp64.exe).
* In 'Access Point of the Application', select S7ONLINE (STEP 7).
* In the interface parameter list, select PLCSIM.TCPIP.1 (or PLCSIM.ISO.1).
* Click OK. -
Configure WinCC Tag Management Channel Unit:
* Open the OS project in WinCC Explorer.
* Expand Tag Management > SIMATIC S7 Protocol Suite.
* Right-click the channel unit used (e.g. TCP/IP or Industrial Ethernet) and select System Parameters.
* In the Unit tab, select the logical device name: set it to CP-TCPIP or PLCSIM.
* Click OK. -
Launch Simulation and WinCC Runtime:
* Start S7-PLCSIM; download the S7 hardware configuration and CFC charts to PLCSIM.
* Place PLCSIM into RUN-P mode.
* Start WinCC Runtime; open the APL faceplate and verify that all buttons are active and responsive.
Verification
- In WinCC Explorer, open the Channel Diagnosis tool (
WinCCChannelDiagnosis.exe); verify that the S7 connection reports status 'OK' with a green indicator. - In WinCC Runtime, click any motor or valve block icon; confirm that faceplate headers render with normal status and zero warning triangles.
- Click the Manual / Auto buttons or open/close commands; verify that commands toggle states in PLCSIM within 500 ms.
Limitations and Operational Precautions
S7-PLCSIM V5.4 does not support SIMATIC BATCH recipe execution or Route Control without specialized simulation bridges. Before deploying the OS project to physical production IPCs, you must recompile the OS using the production Named Connections.
Engineer FAQ
Why are APL faceplate buttons disabled in PLCSIM?
WinCC has no active communication with PLCSIM because default PCS 7 Named Connections are unsupported by S7-PLCSIM. Bad tag quality inhibits operator buttons.
Does S7-PLCSIM V5.4 support PCS 7 Named Connections?
No. S7-PLCSIM only supports standard S7 connections over MPI, PROFIBUS, TCP/IP, and ISO.
How do I fix the communication between WinCC and PLCSIM?
Compile the OS using a TCP/IP or ISO connection, set the WinCC channel unit to PLCSIM, and set the PG/PC interface S7ONLINE to PLCSIM.TCPIP.1.
What tool checks the status of the connection in WinCC?
The 'WinCC Channel Diagnosis' utility in the Windows Start Menu or WinCC Explorer tools menu.
Do I need to change my CFC charts to work with PLCSIM?
No. CFC charts run identically in PLCSIM; only the communication routing between the OS and the simulated CPU must be adapted.
Technical References
- SIMATIC S7-PLCSIM V5.4 Testing S7 Programs Manual
- SIMATIC PCS 7 Advanced Process Library (APL) Function Manual
- How do you simulate a PCS 7 OS with PLCSIM?
Related Articles
- Resolving Module Driver QMODF Faults and Bad Signal Quality in SIMIT and PCS 7
- Comparing PCS 7 APL vs Basis Library Architecture and Configuring Channel Driver Simulation
- Troubleshooting WinCC Bar Graph Display Inactive with Yellow Warning Triangle in PCS 7
- Diagnosing Unexpected Manipulated Values and Safe Position Behavior in PCS 7 APL VlvAnL
Related Tags
- S7-PLCSIM
- APL Faceplates
- Named Connections
- PG/PC Interface
- WinCC Channel Diagnosis
- Bad Signal Quality
- Simulation Setup
- PCS 7 V9.0