PLCcheck

S5 AWL Command: NOP (No Operation)

S5 AWL instruction NOP 0 / NOP 1: No operation. Used as jump target placeholder and for program alignment.

·2 min read
S5AWLNOPno operationplaceholderlabel

Diesen Artikel auf Deutsch lesen

S5 AWL Command: NOP 0 / NOP 1 (No Operation)

NOP performs no operation. It is used as a placeholder — typically as a label target for jump instructions.

Syntax

NOP 0               // No operation (word = 0000 hex)
NOP 1               // No operation (word = FFFF hex)

S7 Equivalent

S5 AWLS7 STLS7 SCL
NOP 0NOP 0Not needed
NOP 1NOP 1Not needed

Typical Use

U   E 0.0
SPB =M001
// ... some code ...
SPA =M002

M001: NOP 0         // Jump target — NOP is just a landing pad
// ... other code ...

M002: NOP 0         // Another jump target

NOP 0 does nothing but provides a valid address for a jump label. In SCL, there is no equivalent — IF/THEN/ELSE structures do not need landing pads.

NOP 0 vs. NOP 1

The difference is only the bit pattern stored in memory: NOP 0 = all zeros (0x0000), NOP 1 = all ones (0xFFFF). Functionally identical. NOP 1 is sometimes found in erased EPROM areas (where all bits default to 1).


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.