Configuring Third-Party PROFIsafe Encoders and Resolving F_PS_12 Timeout Errors in SIMATIC PCS 7 S7 F-Systems
When integrating third-party PROFIsafe absolute encoders (such as TR Electronic CDV 75M) into SIMATIC PCS 7 with S7 F-Systems and the generated module driver F_PS_12 reports communication error DIAG = DW#16#15 ('Timeout detected by F-I/O'), the failure occurs because of an F-parameter mismatch, an unacknowledged reintegration request, or an incorrect iParameter CRC (iPar_CRC). In PROFIsafe V2, the encoder requires a unique F_Dest_Add matching its hardware switches and an authentic iPar_CRC generated by the vendor tool entered into HW Config. To clear the timeout, verify the F_WD_Time, confirm the CRC checksums, recompile HW Config and Safety Program, and pulse input ACK_REI on the safety channel driver to execute operator acknowledgment.
Table of Contents
- Executive Summary
- PROFIsafe Protocol V2 Architecture in S7 F-Systems
- Root Cause Analysis of F_PS_12 Diagnostic Error DW#16#15
- F-Parameters and Vendor-Specific iParameter Checksums (iPar_CRC)
- Safety Module Driver Diagnostic and Troubleshooting Matrix
- Step-by-Step Procedure to Integrate and Reintegrate PROFIsafe Encoders
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
Executive Summary
Safety-related motion tracking in industrial processing (such as positioning hoists, centrifuges, or nuclear valves) relies on fail-safe absolute encoders communicating over PROFIsafe. In SIMATIC PCS 7 with the S7 F-Systems optional package, when third-party PROFIsafe field devices (e.g. TR Electronic CDV 75M) are added to HW Config on a CPU 410-5H, the safety compiler automatically generates fail-safe module driver blocks such as F_PS_12. However, upon downloading the program, engineers frequently observe that the encoder fails to deliver valid position values; the driver outputs fail-safe substitute values (SUBS_ON = 1), and parameter DIAG asserts DW#16#15 (Timeout detected by F-I/O). Even after extending watchdog times to extreme values, the fault persists. Resolving this issue requires aligning PROFIsafe source/destination addresses, verifying vendor iParameter CRCs, and executing operator reintegration.
PROFIsafe Protocol V2 Architecture in S7 F-Systems
PROFIsafe operates as a safety layer tunneled over standard PROFIBUS DP or PROFINET IO (Black Channel Principle):
- Safety Telegram Structure: Encloses standard process data along with safety control/status bytes, a 24-bit consecutive sequence counter, and a 32-bit CRC signature (
CRC2). -
Addressing Rules: Safety frames are authenticated using two addressing parameters:
-
F_Source_Add: Unique safety identifier of the F-Host (CPU 410-5H). In PCS 7, this is managed automatically by S7 F-Systems (typically assigned to1or the central cluster). F_Dest_Add: Unique address assigned to the individual F-Slave (encoder), which must match hardware switches or internal non-volatile memory.
Root Cause Analysis of F_PS_12 Diagnostic Error DW#16#15
In S7 F-Systems, the diagnostic word DIAG exposes specific fault conditions:
DW#16#00000015indicates: 'Communication failure: Monitoring time exceeded (watchdog timeout) or safety frame rejected'.- While named 'Timeout', PROFIsafe drivers report this exact code whenever the slave rejects the parameterization telegram (
Set_Prm) due to an invalid CRC or invalid safety address. - Because the slave rejects the frame, cyclic safety communication never establishes, causing the watchdog timer to expire.
F-Parameters and Vendor-Specific iParameter Checksums (iPar_CRC)
Standard Siemens F-I/O modules calculate CRCs automatically within STEP 7 HW Config. However, third-party intelligent encoders contain device-specific configuration parameters (measuring steps per revolution, total measuring range, rotational direction, and preset values) known as iParameters:
- The encoder's manufacturer software tool calculates an
iPar_CRCchecksum based on these parameters. - This checksum must be entered into the corresponding hex parameter field in HW Config.
- If the checksum in HW Config does not match the checksum calculated by the physical encoder's firmware, the encoder refuses the PROFIsafe handshake, triggering error
DW#16#15.
Safety Module Driver Diagnostic and Troubleshooting Matrix
The following table summarizes diagnostic codes and corrective engineering responses for F_PS_12 / S7 F-Systems:
DW#16#00000000QBAD = 0).DW#16#00000015DW#16#0000000DDW#16#00000040ACK_REI on channel driver.DW#16#00000002Step-by-Step Procedure to Integrate and Reintegrate PROFIsafe Encoders
Method 1: Hardware Parameterization and Checksum Verification
- Connect the encoder to the manufacturer's parameter tool (e.g. TR-Electronic software) via PC interface.
- Configure the operational resolution, gear ratio, and counting direction.
- Note the generated
iPar_CRChex checksum displayed in the tool. - Open HW Config in SIMATIC Manager. Open the encoder's Profisafe parameter properties tab.
- Ensure
F_Dest_Addprecisely matches the physical DIP switch address on the encoder. - Enter the verified
iPar_CRCinto the designated parameter field. - Set
F_WD_Time(Watchdog time) to a realistic margin (e.g.200 msfor PROFIBUS DP at 1.5 Mbps). - Save and compile HW Config.
Method 2: Compiling Safety Program and Executing Reintegration
- In SIMATIC Manager, open CFC and select Options > Edit Safety Program.
- Click Compile to re-generate safety drivers (
F_PS_12) and recalculate the safety program collective CRC. - Download the safety program to the CPU 410-5H in RUN.
- Power-cycle the encoder to ensure its internal ASIC initializes cleanly.
- In the CFC safety chart, locate the safety channel driver linked to the encoder.
- If output parameter
ACK_REQ = 1(Acknowledgment requested), apply a rising edge pulse to inputACK_REI. - Verify that output
QBADswitches to0and live position data updates.
Verification
To verify that the PROFIsafe encoder is operating safely:
- Driver Status Inspection: In CFC Test Mode, inspect
F_PS_12. Confirm thatDIAG = DW#16#00000000,QBAD = 0, andSUBS_ON = 0. - Motion Validation: Physically rotate the encoder shaft. Confirm that the fail-safe position output tracks rotation continuously without data freeze or overflow.
- Trip and Reintegration Test: Disconnect the PROFIBUS cable. Verify that
QBADasserts immediately (substitute values active). Reconnect cable, pulseACK_REI, and confirm bumpless return to process tracking.
Limitations and Operational Precautions
- Safety Certification: Modifying any F-parameter or S7 F-Systems logic alters the safety collective signature; changes require formal validation and functional safety recertification according to IEC 61508 / IEC 62061.
- Watchdog Settings: Setting
F_WD_Timeexcessively high (e.g. 9000 ms) compromises safety response times; calculate proper watchdog limits using the Siemens Safety Response Time Table (SIMATIC S7 F-Systems Execution Times). - Power Supply Isolation: Ensure the encoder's 24V DC auxiliary power is sourced from a certified, regulated fail-safe power supply.
Engineer FAQ
Why can't I change the F-Source address cluster on a CPU 410-5H?
In CPU 410-5H with S7 F-Systems V6.1+, the F-Source address is managed automatically by the engineering system to ensure multiproject uniqueness.
Can ACK_REI be tied permanently to TRUE (1)?
No. S7 F-Systems strictly requires a 0-to-1 rising edge transition for reintegration acknowledgment to prevent automated un-safe restart.
Does S7 F-Systems require a dedicated hardware memory card on the CPU 410-5H?
Yes, CPU 410-5H requires a System Expansion Card (SEC) sized for the project's PO count and an active F-runtime license.
Technical References
- Siemens AG: SIMATIC Industrial Software S7 F/FH Systems - Configuring and Programming (Doc No. A5E00049000)
- PROFIBUS Nutzerorganisation e.V. (PNO): PROFIsafe - Profile for Safety Technology (IEC 61784-3-3)
- Siemens Industry Online Support Entry ID 101509838: SIMATIC S7 F-Systems User Manual
Related Articles
- https://industrialautomation.net/search?query=s7+f+systems+f_ps_12+timeout+error+dw16#15+fix
- https://industrialautomation.net/search?query=profisafe+ipar_crc+checksum+configuration+step7
- https://industrialautomation.net/search?query=cpu+410-5h+f-source+address+safety+configuration
Related Tags
- https://industrialautomation.net/search?query=simatic-pcs7
- https://industrialautomation.net/search?query=s7-f-systems
- https://industrialautomation.net/search?query=profisafe
- https://industrialautomation.net/search?query=safety