PLCcheck

S5 AWL Command: R (Reset)

S5 AWL instruction R (Reset): Resets a bit to FALSE when VKE is TRUE. Counterpart to S (Set).

·2 min read
S5AWLRResetRücksetzenbit logic

Diesen Artikel auf Deutsch lesen

S5 AWL Command: R (Reset)

The R instruction resets a boolean operand to FALSE when the VKE is TRUE. It is the counterpart to S (Set). R can also reset timers and counters.

Syntax

R  <operand>

S7 Equivalent

S5 AWLS7 STLS7 SCL
R A 4.0R Q 4.0 (EN) / R A 4.0 (DE)IF condition THEN output := FALSE; END_IF;

Code Example

U  E 0.1       // Stop button
R  A 4.0       // Reset motor output to FALSE

Also used for timers and counters:

U  E 0.3       // Reset condition
R  T 5         // Reset timer T5 to zero
R  Z 3         // Reset counter Z3 to zero

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.