PLCcheck

S5 AWL Command: SS (Retentive On-Delay)

S5 AWL instruction SS (Retentive On-Delay): Timer continues counting even when input goes FALSE. Output goes TRUE when full duration has elapsed. Must be explicitly reset with R.

·3 min read
S5AWLSStimerretentiveon-delayS_ODTSstored

Diesen Artikel auf Deutsch lesen

S5 AWL Command: SS (Retentive On-Delay)

SS starts a retentive (stored) on-delay timer. Unlike SD, the timer does NOT reset when the input goes FALSE. Once started, it continues counting until the set time has elapsed. The output then goes TRUE and stays TRUE until the timer is explicitly reset with the R instruction.

Syntax

L  KT xxx.y
SS T n

S7 Equivalent

S5 AWLS7 FunctionIEC 61131-3
SSS_ODTSNo direct IEC equivalent

Warning: SS ≠ TONR. The IEC TONR (accumulating timer) accumulates time across multiple input pulses. SS does not accumulate — it starts once, runs to completion regardless of input, and then latches. These are fundamentally different behaviors.

Timing Diagram

E 0.0:  ____/‾‾‾\____/‾\__________
T 4:    ________________/‾‾‾‾‾‾‾‾‾  (stays TRUE until R)
                   |--5s--|
Reset:  _________________________/‾\
T 4:    ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾\__

Code Example

U   E 0.0
L   KT 050.1       // 5 seconds
SS  T 4

U   T 4
=   A 4.0           // ON after 5 seconds, stays ON

U   E 0.1           // Reset condition
R   T 4             // Explicitly reset timer

Key Difference: SD vs. SS

SD (On-Delay)SS (Retentive On-Delay)
Input goes FALSE before timeTimer resetsTimer continues
Output after time elapsedTRUE (while input is TRUE)TRUE (latched, until R)
Explicit reset neededNoYes (R T n)

Part of the S5 AWL Command Reference. Maintained by PLCcheck.ai.


Analyze Your S5 Code Automatically

PLCcheck Pro reads your complete S5 AWL program and explains every instruction — including this one — in plain language. Upload your code and get instant documentation, S7 equivalents, and migration guidance.

Upload S5 code for free analysis → | S5→S7 Migration Guide →

Related Articles

Analyze your PLC code with AI

PLCcheck Pro explains, documents, optimizes, and migrates PLC code — automatically.

Try PLCcheck Pro →
← Back to Blog

Not affiliated with Siemens AG. S5, S7, STEP 5, STEP 7, and TIA Portal are trademarks of Siemens AG.