PLCcheck

S5 AWL Command: = (Assign)

S5 AWL instruction = (Assign): Writes the current VKE to a boolean operand. Non-latching — output follows VKE directly.

·3 min read
S5AWLassignZuweisungoutputbit logic

Diesen Artikel auf Deutsch lesen

S5 AWL Command: = (Assign)

The = instruction writes the current VKE value to a boolean operand. Unlike S/R, this is a non-latching operation — the output follows the VKE directly. When the VKE becomes FALSE, the output becomes FALSE.

Syntax

=  <operand>

S7 Equivalent

S5 AWLS7 STLS7 SCL
= A 4.0= Q 4.0 (EN) / = A 4.0 (DE)Output := condition;

Code Example

U  E 0.0       // Switch (maintained)
U  E 0.1       // Safety interlock
=  A 4.0       // Motor follows switch directly

A 4.0 is TRUE exactly as long as E 0.0 AND E 0.1 are both TRUE. When either goes FALSE, A 4.0 goes FALSE immediately.

Difference: = vs. S/R

= (Assign)S (Set) / R (Reset)
BehaviorOutput = VKE (follows directly)S: latches TRUE / R: latches FALSE
When VKE is FALSEOutput goes FALSES: output stays unchanged
Typical useDirect control, indicator lightsMotors, valves, anything that needs start/stop

Important: VKE Reset After =

After the = instruction, the VKE is reset. The next U/O starts a new logic chain.


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.