Activating Sequential Function Chart (SFC) Sequence Test Mode with S7-PLCSIM
Sequential Function Chart (SFC) Sequence Test Mode operates seamlessly within S7-PLCSIM in SIMATIC PCS 7. Because S7-PLCSIM executes the compiled S7-400 instruction set and system function blocks (FB300 / SFC runtime) identically to physical controller hardware, engineers can activate Test Mode directly within the SFC Editor. Sequence Test Mode allows validation of recipe phases, step actions, transition logic, and operating state logic (OSL) without physical I/O. Users can manually step through transitions, force conditions, simulate step run times, and verify holding, aborting, and resetting sequences safely in a simulated environment.
Table of Contents
- SFC Execution Architecture in S7-PLCSIM
- Operating Modes: Process Mode vs Sequence Test Mode
- Workflow for Enabling Sequence Test Mode
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
SFC Execution Architecture in S7-PLCSIM
In SIMATIC PCS 7, Sequential Function Charts (SFC) compile into standard SIMATIC S7 program blocks—primarily function blocks (e.g., FB300) and instance data blocks executing in cyclic organization blocks (typically OB32 or OB35). When simulating an automation station using S7-PLCSIM, the virtual controller fully executes this compiled logic. The engineering interface between the PCS 7 SFC Editor and S7-PLCSIM communicates across the simulated MPI, PROFIBUS, or Industrial Ethernet (ISO/TCP) communication channel without requiring special simulation drivers.
Operating Modes: Process Mode vs Sequence Test Mode
The SFC Editor provides distinct operational test modes to evaluate sequential logic:
Workflow for Enabling Sequence Test Mode
To activate and operate Sequence Test Mode using S7-PLCSIM:
- Launch Simulation: In SIMATIC Manager, select
Options->Simulate Modulesto launch S7-PLCSIM. - Download Program: Download the hardware configuration, CFC charts, and SFC charts to S7-PLCSIM, then switch the simulated CPU to
RUN-P. - Open SFC Chart: In SIMATIC Manager Plant View or Component View, double-click the target SFC chart or SFC type instance.
- Switch to Online Test: In the SFC Editor menu, select
Debug(orTest) ->Test Mode(or click the eyeglasses icon). - Enable Sequence Test Mode:
- Navigate toDebug->Operation Mode-> select Sequence Test Mode.
- Confirm the yellow status bar indicator changes fromProcess ModetoSequence Test. - Control Execution: Use the SFC debugging toolbar to trigger commands:
Start,Hold,Resume,Abort, orStep Advance.
Verification
To verify that Sequence Test Mode is actively executing in S7-PLCSIM:
- In the SFC Editor window, verify the status bar displays
Online: RUNandSequence Test Mode. - Observe the active step (highlighted in bright green with an active run indicator).
- Double-click a downstream transition object: verify that transition conditions display live evaluation states (green for true, red for false).
- Force an unsatisfied transition condition to True: confirm that the SFC immediately transitions to the subsequent step.
- Verify that corresponding block outputs in CFC reflect the newly executed step actions.
Limitations and Operational Precautions
Operational boundaries when testing SFCs in S7-PLCSIM:
- Asynchronous Timing Variations: S7-PLCSIM cycle times depend on host PC processor load and do not guarantee hard real-time deterministic scan cycles identical to physical AS 410-5H controllers.
- OS Interlock Synchronization: If testing SFCs interconnected with WinCC OS faceplates, ensure WinCC is connected to the S7-PLCSIM virtual adapter (
PLCSIM.TCPIP.1orPLCSIM.ISO.1). - Never Download While in Sequence Test: Always exit Test Mode before executing full or changes-only chart downloads from CFC or SFC editors.
Engineer FAQ
Can I force transition conditions inside Sequence Test Mode without modifying CFC logic?
Yes. In Sequence Test Mode, opening the transition properties window allows engineers to manually override individual boolean conditions or force the entire transition result to True.
Does Sequence Test Mode accelerate step timer durations in S7-PLCSIM?
Yes. Engineers can configure time scaling factors within the SFC test settings to compress multi-hour batch step holding times into seconds for rapid sequential validation.
What happens to physical I/O during Sequence Test Mode in S7-PLCSIM?
In S7-PLCSIM, physical I/O does not exist; all inputs and outputs reside in the process image partition tables, which are safely driven by test scripts, simulation models, or manual overrides.
Can multiple SFC charts be monitored simultaneously in Sequence Test Mode?
Yes, multiple SFC charts and SFC type instances can be opened and monitored concurrently in the PCS 7 engineering environment connected to S7-PLCSIM.
Technical References
- Siemens SIMATIC PCS 7 SFC for S7 Function Manual (A5E39140306)
- Siemens SIMATIC S7-PLCSIM V5.4 Testing User Programs Manual (A5E00994191)
- Siemens Industry Online Support Entry ID 109748895: SFC Engineering and Commissioning Guide
Related Articles
- Connecting S7-PLCSIM to WinCC OS Server Across Distributed Physical Computers
- Troubleshooting Forcing and Signal Exchange Failures in SIMIT with Classic S7-PLCSIM
- Locating and Monitoring SFC Type Instances in Continuous Function Chart (CFC)
Related Tags
- SFC
- S7-PLCSIM
- Sequence-Test-Mode
- Simulation
- Operating-State-Logic
- Virtual-Commissioning