Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

Siemens SIMATIC S5-90U/S5-95U Compact PLC

F: | Au:FAN | DA:2026-04-28 | 702 Br: | 🔊 点击朗读正文 ❚❚ ▶ | Share:

Siemens S5-90U/S5-95U PLC System Maintenance, Diagnosis, and Upgrade Practical Guide

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.

Address analysis: ISTACK will provide a "STEP Address Counter (SAC)" and a "Relative STEP Address Counter (REL-SAC)". Convert the hexadecimal address to decimal and accurately locate the erroneous program statement based on the length of the data block (DB).

Common Error ID Interpretation:

NNN: Indicates a statement that the CPU cannot execute. The most common reason is that programmers used instructions that are not supported by this version of the CPU, or the program was damaged during transmission. In old systems, if the battery has been replaced, please be sure to download the program again to ensure its integrity.

TRAF: Transmission error. This usually occurs in accessing a data block (DB), such as attempting to read a non-existent DB, or accessing a data word (DW) that exceeds the defined length of the DB (e.g. the DB only has 10 words, but the program attempts to read the 11th word).

ZYK: Scan cycle timeout. The program execution time of S5-95U exceeds its watchdog time (default 300ms). The reason may be that the program contains a dead loop, or that too many interrupt/time drivers (OB3/OB13) are called within one cycle. The solution is to optimize the program or divide the long program into multiple program blocks (PB).

PEU: External I/O bus failure. When set to "PBUS J", if no external I/O bus is detected or the module on the bus does not match the configuration, the PLC will report this error and stop in STOP mode. Check the connection cable and terminal resistance of the IM 316/315 interface module.

SUF (S5-95U only): Replacement error. Usually, when calling a function block (FB), the actual parameters passed to FB do not match the parameter types defined by the called FB. For example, FB requires a KT type time constant, but you give an integer of KF type when calling it.

Step 3: Use BSTACK to track the program path

When dealing with runtime errors such as TRAF or SUF, BSATCK (block stack) is more effective than ISTACK. BSTACK records the nested path of program execution. Assuming ISTACK indicates that the error occurred in function block FB2, BSTACK will show you the complete chain of calling FB2: OB1->PB2->FB2. At the same time, it will also display which data block (DB) is open when calling FB2. This is crucial for troubleshooting errors such as' DB access out of bounds'.


In depth application of core functions and fault prediction

The S5-95U is equipped with many practical functions that even today seem quite useful, and mastering them can effectively predict and prevent system failures.

Real time response: interrupts and high-speed counters

Application scenario: A sensor signal is required to trigger an emergency stop, or an encoder pulse is needed for precise positioning.

Configuration: Interrupt inputs (I34.0-I34.3) and counter inputs (Counter A/B) need to be enabled in the OBI: and OBC: parameter blocks of DB1. For example, IP 0 indicates enabling I34.0 as a rising edge interrupt; CAP 500 indicates the activation of counter A, which generates an interrupt when the count reaches 500.

Fault prediction: The input frequency of the counter is strictly limited. The manual clearly states that when a programmer or OP (operation panel) is connected, the maximum frequency of counter A will decrease from 5kHz. The calculation formula is: frequency=1/[(0.5ms+additional interruption reaction time) * current count value]. If you find that high-speed counting always loses pulses, you should check if the human-machine interface is connected through the programmer interface and re evaluate the counting frequency.

Accuracy and efficiency of analog processing

Input processing (FB250): The onboard analog input range is 0-10V, with a resolution of 10 bits. Directly reading the original value (0-1024) is meaningless. FB250 must be called for scaling. For example, converting a 0-10V temperature sensor signal directly to an engineering value of 0.0-200.0 ° C.

Key parameter: KNKT is used to define channel types. For onboard input, KY=0.4 (unipolar) must be set. OGR and UGR define the upper and lower limits of the engineering values you want.

Optimize scanning cycle: By default, all analog inputs are read into the Process Image Area (PII), which increases the scanning cycle. In the OBA: parameter block of DB1, AI parameters can control the number of channels read into PII. For example, AI 4 indicates that the first four channels are cyclically read in. If your program does not require values for all channels every cycle, it is recommended to set this value to 0 and then perform a single read by setting EINZ=1 for FB250 when a channel needs to be read in the program, which can significantly improve CPU utilization.

Time sensitive application: Real time clock

Scenario: Scheduled start stop, accumulated equipment running time, event logging.

Key point: The positions of the clock data area and status word need to be defined in the CLP: parameter block of DB1. STW defines the position of the status word, and CLK defines the clock data area. For precise control, it is recommended to store the clock data area in a dedicated, power-off hold data block.

Diagnosis: Bit 0, 8, and 12 of the status word respectively indicate whether the clock, running hour meter, and prompt time settings are incorrect. Bit 13 is a very useful flag bit, which will be set to 1 when the set "prompt time" is reached. You can periodically scan this bit in the program to achieve precise timed task triggering.

Migration and Upgrade Strategies for Old Systems

Completely replacing an S5 system is costly and risky. A more economical strategy is to perform "core porting" or "system integration".

Retain I/O and upgrade CPU: Siemens' new generation S7-1200 or S7-1500 series does not provide direct compatibility with the S5-100U module. However, you can connect the existing sensor and actuator signals to the new system through a third-party gateway (such as Profinet to S5-100U bus coupler) or by using the ET 200SP distributed I/O system. This method can maximize the preservation of the original on-site wiring.

Program migration strategy:

Documentation: Firstly, use STEP 5 software to upload the complete program in the PLC and print out a detailed statement table (STL). This is the only reliable information for subsequent work.

Refactoring rather than translation: It is not recommended to mechanically "translate" STL code line by line into LAD/FBD language in TIA Portal. S5-95U supports structured programming (PB, FB, DB), and you can first understand the functional architecture of the original program (such as main loop, interrupt handling, PID tuning, etc.).

Using standard libraries: The original code may have called integrated function blocks such as FB240 (BCD to integer conversion) and FB242 (multiplication). In S7, these features have more efficient standard library functions (such as CONV, MUL). During the porting process, these new standard functions should be used instead of simulating the behavior of old blocks.

Communication integration: S5-95U can serve as a slave station for SINEC L1 through its TTY interface (programmer interface). In modern systems, you can integrate S5-95U as a substation into a new SCADA system through a protocol converter (such as converting L1 to Modbus RTU or TCP/IP). In this way, data collection and monitoring can be achieved without modifying any S5 program.

Tips for reducing scanning load:

The scanning cycle of S5-95U is greatly affected by internal timer updates. By default, the system will handle all 128 timers (T0-T127). If your program only uses a portion of it (such as T0-T9), it is strongly recommended to modify NT 128 to NT 10 in the system parameter (SDP:) of DB1. This can significantly reduce the timer refresh time from 128 * 33 µ s=4.2ms to 10 * 33 µ s=0.33ms. For systems with tight scanning cycles, this is an immediate optimization method.

  • BONFIGLIOLI W63 U P80 B5 Gearbox 2G20012741
  • Bonfiglioli BE80B4 Motor with A202 Gearbox
  • BONFIGLIOLI VECTRON KEYPAD 179675500 KP500
  • Bonfiglioli RA0 60/00 Gear Reducer i182
  • Bonfiglioli C212 F P90 VV Gearbox i=9.6
  • Bonfiglioli MP105 Servomotor Gear
  • Mannesmann Demag 4APB71-4-G08-PR Getriebemotor with Bonfiglioli MVF 63/f
  • Bonfiglioli Vectron ACT401-12 FA Inverter
  • Bonfiglioli BN 80A4 COD.830820106 Motor 0.55 kW IMB5
  • Bonfiglioli TR060 Gearbox
  • Silectron Bonfiglioli FT1000-0.75S RFI Filter
  • Trasmital Bonfiglioli 710C3B50F177G34W1A52VAG Drive
  • Bonfiglioli MAC800-D1 Motorreductor
  • Bonfiglioli VF 63 V HS Worm Gearbox
  • Bonfiglioli BN90LA4 Adjustable Gear Motor 1.5kW
  • Bonfiglioli ACT 400-018 FA Frequency Inverter
  • Bonfiglioli RAO50DNP90B5-I220 Gear Unit i=200
  • Bonfiglioli ACT 401-13FA Frequency Inverter SIACT513010001
  • Bonfiglioli ACU210-18 3 FA Active Inverter 4kW
  • Trasmital Bonfiglioli 709C3B50F177G34W1A52VAG Drive
  • Bonfiglioli BN27C4 Gear Motor 0.09 kW
  • Bonfiglioli BN71A4 Electric Motor
  • Bonfiglioli Vectron VCB400-370 Inverter
  • Bonfiglioli Vectron ACU401-18FA Inverter
  • Bonfiglioli LC120 2 40 STD Gearbox
  • Bonfiglioli BN63B6 Gear Motor 0.12 kW
  • Bonfiglioli T56BN/4 Asynchronous Motor
  • AEB Atlant D712-4B5 Motor with Bonfiglioli MVF 49F1 Gearbox
  • Bonfiglioli VF110 A P100B14 Worm Gear
  • Trasmital Bonfiglioli Raupengetriebe i 1:122 2174688 2T705C3122002 Travel Drive
  • Bonfiglioli ACT 401-21A Frequency Inverter
  • Bonfiglioli VF44 U14 Worm Reducer B03181367918
  • Bonfiglioli VF49 L1 P1 P63B5 Worm Gear i=45
  • Bonfiglioli S2U230S-03F Inverter 0.4kW
  • Ferag 5690512 Uiker TR90L4 Motorreductor with Bonfiglioli C212 F9.6
  • Bonfiglioli LC120250STD80A1CD14KE Gearbox
  • Bonfiglioli W63U38 P80 B14 V5 Gearbox
  • Bonfiglioli VF49A-28-P80-B14 Worm Gearbox
  • Bonfiglioli BN71B4 W63U64P75 Gearmotor
  • Alpha VDS 063-MF1-10-141-BE Planetary Gearbox
  • Bonfiglioli BN71B4 MVF49 F1 Gearmotor i=36
  • Bonfiglioli BN 63 B6 Gear Motor 0.12kW
  • Bonfiglioli SPL400 17F SynPlus Drive 3.7kW
  • Bonfiglioli ACU 401-25A Frequency Inverter
  • Esa 3M2209B5 M71Q Motor with Bonfiglioli MVF49 Gearbox
  • Ferag 5690512 UIKER TR90L4 Gear Motor with Bonfiglioli C212
  • Bonfiglioli A302 UH35 P90 Bevel Gearbox
  • Bonfiglioli GVX1000-1.5-S Inverter Drive 1.5kW
  • Bonfiglioli W63 U 15.0 P80 B14 B Worm Drive
  • Bonfiglioli KP500 Control Panel
  • Bonfiglioli C302PP71 Speed Reducer
  • Bonfiglioli BN71B4 Motor con MVF49 Reductor
  • Bonfiglioli BN71B4 Motor with MVF49 Gearbox i36
  • Bonfiglioli SYN10S 22001AF Inverter 0.2 kW
  • Motor Power Esa 3M2209B5/M71Q with Tachometer and Bonfiglioli MVF49 Gearbox
  • Bonfiglioli SYN10 S 220 01 AF Inverter
  • MEZ UD 1104 2.5 kW BONFIGLIOLI Trasmittal 300L19 Gear Motor 300L19.00HZP90AW0A
  • Bonfiglioli Vectron ACT W 401-39 D Inverter
  • Bonfiglioli BN27C4 Gear Motor 0.09 kW
  • Bonfiglioli A302 UH40 P90 Gear Reducer
  • Bonfiglioli ACT410-193FA Frequency Inverter 5.5kW
  • Bonfiglioli VFR49 P1 240 P63 B5 B3 Gearbox
  • Bonfiglioli BN 63A 6 Motor with VF30 Combination
  • Bonfiglioli VF44 FA1 P63B14 Reducer i=60
  • Bonfiglioli BN 80 B6 FD Electric Motor
  • Bonfiglioli MVF 49F1 Reducer with ICME T 71 B4 Motor
  • Bonfiglioli BN 27 C 4 Gearmotor 0.09kW
  • Bonfiglioli MP 080 Servomotor MPC2012S000F
  • Bonfiglioli S101 1 P P71 Gear Reducer i=4.7
  • Bonfiglioli 301L251.8-HC-P90 Gearbox
  • Bonfiglioli RFI Filter F1060800-SEFL-E9S
  • GE Aviation 9410M37P01 Motor Drive Core
  • Bonfiglioli VF44 FA1 P63B14 Gearbox 60 to 1
  • Bonfiglioli K63A4 Motor 8D09020032
  • Demag 4APB71-4-G08-PR Gear Motor 0.37 kW
  • Bonfiglioli BN90LA4 Gear Motor 1.5 kW
  • Bonfiglioli VF49A-28-P80-B14 Gearbox
  • Bonfiglioli MP053 Planetary Gearbox MPA2028S000D
  • Bonfiglioli C312 P P100 Gearbox
  • Bonfiglioli S1011PP71 Gearbox 4.7 to 1
  • Bonfiglioli VF 44 V 7 P63 B5 B3 with V 0.25 F D11
  • Bonfiglioli DW3000210 AX160 Motor Gearbox
  • Bonfiglioli ACT 401-13 FC Frequency Inverter 2.2kW
  • Bonfiglioli C222 P 7.1 P90 B3 Gearbox
  • Bonfiglioli BN90S4 Motor with C212 Gearbox
  • Bonfiglioli MP130.2.9.15.24.50.130.165.S1 Gearbox
  • Bonfiglioli VF110 V HS Worm Gearbox
  • Bonfiglioli BN7IA4 Electric Motor
  • Bonfiglioli ACU 401-23A Frequency Converter
  • Bonfiglioli BN63B4 Gearmotor
  • Bonfiglioli LC12210S490002 Gear Reducer
  • Bonfiglioli BN63A4 Geared Motor with VF49
  • Bonfiglioli WR86U120P80B5B3 Gear Reducer
  • Bonfiglioli MPB1006S000C Planetary Gearbox
  • Bonfiglioli GC000011 Frequency Inverter
  • Bonfiglioli VF44 FA1 P63B14 Gearbox 60 to 1
  • Bonfiglioli BN63B6 Gear Motor 0.12 kW
  • Trasmital Bonfiglioli 301 L2 Gear Reducer
  • Bonfiglioli BN71B4 Motor with MVF49 Gearbox
  • Bonfiglioli MVF62/A Worm Gear Motor 7 to 1
  • Bonfiglioli VF W30 63UFC2 Gear Reducer
  • Bonfiglioli S1011PP71 Gearbox 4.7 to 1
  • Bonfiglioli W63 U7 P90B14 V6 Gear Reducer
  • Bonfiglioli BN63B6 FD Geared Motor with VFR49F1P63B5 Reducer
  • Bonfiglioli T56BN/4 Three Phase Motor
  • Bonfiglioli MVF62/A Worm Gearbox 7 to 1
  • Bonfiglioli VF44 FA1 P63B14 Gearbox 60 to 1
  • ICME T71B4 Motor with Bonfiglioli MVF49F1
  • Bonfiglioli BN71B4 Motor with MVF49 Gearbox
  • Bonfiglioli C31 3P P63 PV V5 Gear Reducer
  • Bonfiglioli BN80B4 Electric Motor 8F31020004
  • Bonfiglioli VF/W30/63UFC2 Gear Reducer i=168
  • Bonfiglioli MPD1006S0006 In-Line Planetary Gearbox
  • Bonfiglioli LC 120 2 40 STD 80A1 CD Gearbox
  • Bonfiglioli Vectron ZBA400-010FC Brake Unit
  • Bonfiglioli VF44 U14 Worm Gearbox B03181367918
  • Bonfiglioli 8XNC63040004 Electric Motor IP55
  • Bonfiglioli W110U P100B5 Worm Gearbox
  • Bonfiglioli VF63/FC1 P80 Gearbox 203160152 i=15
  • Bonfiglioli VMN JB00017191 Gear Unit
  • Bonfiglioli AGL202-031FC Inverter 0.37 kW
  • Bonfiglioli BN71B2 Geared Motor with VF44
  • Bonfiglioli S1011PP71 Gearbox 4.7:1
  • Bonfiglioli VF W30 63UFC2 Gear Reducer
  • Bonfiglioli VF44FA146HSB3 Gear Reducer
  • Bonfiglioli MP105 Planetary Gearbox 18:1
  • Bonfiglioli VF49 L1 P1 P63B5 Worm Gearbox
  • Bonfiglioli 55aN-4 Electric Motor