In today's rapidly changing automation technology, a large number of classic control systems that have been in operation for ten or even twenty years are still playing a residual role in industrial sites. The Siemens S5-90U and S5-95U, as the backbone of small and medium-sized control systems at that time, are still deployed in numerous fans, pump stations, small production lines, and auxiliary process units. However, with the aging of equipment and the turnover of technical personnel, the difficulty of maintaining, diagnosing faults, and modernizing these "veterans" is increasing day by day. This article will provide you with a detailed maintenance and diagnostic guide based on the core features of the S5-90U/S5-95U system, helping you understand its working principle, handle common problems calmly, and pave the way for its integration into modern automation architecture.
System hardware characteristics and anti-interference configuration
The S5-90U and S5-95U are known for their compact design and flexible expansion capabilities. Understanding its hardware characteristics is the foundation for any maintenance work. The S5-90U directly integrates 10 digital inputs and 6 relay outputs, while the S5-95U provides stronger onboard capabilities: 16 point digital inputs, 16 point digital outputs, 8 analog inputs, 1 analog output, 4 interrupt inputs, and 2 high-speed counter inputs. Both can be expanded for I/O through the S5-100U series expansion module, and the S5-95U can connect up to 32 modules.
Key points for on-site maintenance:
Power check (S5-95U): S5-95U requires an external supply of 24V DC. Be sure to use an isolated power supply that complies with DIN VDE 0551/EN 60742 standards. Many inexplicable "crashes" or I/O errors are caused by excessive ripple or poor grounding of the 24V power supply. Check the "Battery Low" LED on the backplane. If it lights up, replace the lithium battery while the PLC is powered on, otherwise it may cause RAM data loss.
Bus configuration (PBUS parameter of S5-95U): There is a "PBUS" parameter in the system parameters (SDP:) of data block DB1. Its default value is "PBUS N", allowing the PLC to start without an external I/O bus. If your external I/O module frequently drops or reports errors, it should be changed to "PBUS J". This will force the PLC to detect the external I/O bus during startup, and only when the bus connection is normal can it enter the "RUN" mode, thereby avoiding I/O data disorder caused by poor contact.
Electromagnetic Compatibility (EMC) and Wiring: The manual extensively emphasizes anti-interference, which directly affects the stability of outdated systems. When maintaining, please focus on the following three points:
Cable grouping: Ensure that signal lines and shielded bus cables (such as SINEC L1) of 24V and below are routed separately from power lines greater than 60V and power cables greater than 400V, maintaining a distance of at least 10 centimeters, or in different metal cable trays.
Shielding grounding: Analog signal and bus cables must be shielded and grounded at both ends, and metal cables should be clamped at the entrance of the cabinet to directly press the shielding layer on the grounding rail over a large area. Do not twist the shielding layer into a "pig tail" and connect it to the module terminals, as this will greatly reduce the high-frequency interference suppression effect.
Equipotential connection: If the system is divided into different cabinets and connected through signal cables, it is necessary to lay equipotential connection conductors with a cross-sectional area of not less than 16mm ². This is crucial for preventing communication failures or analog drift caused by ground potential differences.

Structured Fault Diagnosis: From LED to ISTACK
The S5-90U/95U provides a powerful diagnostic toolchain. When the system malfunctions, please do not blindly restart and follow the following steps:
Step 1: Observe the LED on the operation panel
RUN light on, STOP light on (S5-95U): This indicates that the PLC is in "REST" mode and is usually executing the startup organization block (OB21/OB22). If it stays in this state for a long time, check if there is a dead loop in the startup program.
Red STOP light flashing: This is a critical signal indicating an error occurred while loading or saving the program. At this point, the programmer should be connected and the "ISTACK" function should be called.
RUN light on but I/O abnormal: This is a typical program logic error or I/O module failure. Use the "Status VAR" function of the programmer to monitor the status of input and output signals online, compared to checking the IO table point by point.
Step 2: Analyze ISTACK (Interrupt Stack)
ISTACK is the core of fault diagnosis. When the PLC enters STOP mode due to a fault, ISTACK freezes on-site information. By reading ISTACK through the programmer, you will receive a 16 bit error ID and fault address.