Troubleshooting Module Status with SFC51 on Siemens S7-300 PLC

Question:

Hello, I am attempting to retrieve the status of all modules on an ET200 Profinet rack using SFC51 with an S7-317 PLC. I am encountering a rack station fault when using SZL_ID 16#0694. I am also trying to obtain module faults for rack 1 using SZL_ID 16#0D91 and Index 16#8001 for station 1, but I am receiving a status error 8083 stating that the index is incorrect or not allowed. The station number for the rack is 1. Does anyone have a sample code or solution for this issue?

Top Replies

When configuring modules, they should have an ID of 16#xx94, indicating they are connected under ProfiNet and Profibus stations rather than being directly installed to the CPU. The index could possibly be 16#0101, representing station 1 module 1. Siemens provides example projects on their website for reference at SIOSsupport.industry.siemens.com. Discover more about configuring modules and setting up stations with Siemens example projects.

In relation to modules, Lare suggests that the ID should also include 16#xx94 (specifically for modules under Profinet and Profibus stations, not directly installed to the CPU). The index could possibly be 16#0101 (representing station 1 module 1). Siemens provides an example project on SIOS support website for reference. After some troubleshooting, it was discovered that the index needed to be adjusted to 16#8801 in order for bit 15 to indicate a Profinet device (first 8), the last 2 digits of the sub-system ID (101) to activate bit 11 (this section utilizes bits 11 to 14) (second 8), and ending with a 1 to signify the ProfiNet rack number.

More Replies →

Streamline Your Asset Management
See How Oxmaint Works!!

✅   Work Order Management

✅   Asset Tracking

✅   Preventive Maintenance

✅   Inspection Report

We have received your information. We will share Schedule Demo details on your Mail Id.

To add a comment, please sign in or register if you haven't already..   

Frequently Asked Questions (FAQ)

FAQ: 1. What is SFC51 and how is it used to retrieve module status on Siemens S7-300 PLC?

Answer: - SFC51 is a special function block in Siemens PLC programming used for diagnosing and monitoring the status of modules in a rack. It provides detailed information about module faults and status within the rack.

FAQ: 2. What does a rack station fault mean when using SZL_ID 160694 on an ET200 Profinet rack with an S7-317 PLC?

Answer: - A rack station fault typically indicates an issue with the communication or configuration of modules within the rack. It may require troubleshooting the connections, addressing, or module settings to resolve.

FAQ: 3. How can I resolve the status error 8083 while attempting to obtain module faults for rack 1 using SZL_ID 160D91 and Index 168001 on Siemens S7-300 PLC?

Answer: - The error 8083 "incorrect or not allowed index" suggests there might be an issue with the specified index value or the data being requested. Double-check the index value, ensure it is within the allowable range, and verify the data format being used.

FAQ: 4. Is there a sample code or solution available for troubleshooting the module status and faults in a Siemens S7-300 PLC using SFC51?

Answer: - While specific sample

Ready to Simplify Maintenance?

Join hundreds of satisfied customers who have transformed their maintenance processes.
Sign up today and start optimizing your workflow.

Request Demo  â†’