S5 AWL Commands: TAK, ENT (Accumulator Operations)
S5 AWL accumulator instructions: TAK (swap ACCU1/ACCU2) and ENT (push ACCU2 to ACCU3). Advanced operations for multi-value calculations.
S5 AWL Commands: TAK, ENT (Accumulator Operations)
TAK — Swap Accumulators (Akku tauschen)
TAK swaps the contents of ACCU1 and ACCU2. Used when you need to reverse the operand order for subtraction or comparison.
L MW 10 // ACCU1 = MW10
L MW 20 // ACCU1 = MW20, ACCU2 = MW10
TAK // ACCU1 = MW10, ACCU2 = MW20 (swapped)
-F // ACCU1 = MW20 - MW10 (reversed subtraction)
S7 equivalent: TAK exists identically in S7 STL. No SCL equivalent — SCL handles operand order naturally.
ENT — Push ACCU2 to ACCU3
ENT copies ACCU2 to ACCU3 (and ACCU3 to ACCU4 on CPUs with 4 accumulators). Used in complex calculations that need to preserve intermediate values.
L MW 10 // Value A → ACCU1
ENT // Preserve ACCU2 in ACCU3
L MW 20 // Value B → ACCU1, A → ACCU2
+F // ACCU1 = A + B
S7 equivalent: ENT exists in S7 STL as PUSH. In SCL, use temporary variables instead.
Note: S7-1500 has only 2 accumulators (ACCU1 and ACCU2). ENT/PUSH has limited use. TAK works on all platforms.
Migration Advice
Both TAK and ENT are signs of complex accumulator manipulation. In SCL, these operations disappear entirely — use named variables instead:
// AWL with TAK: // SCL equivalent:
L MW10 result := MW20 - MW10;
L MW20
TAK
-F
T MW30
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
Reading and Understanding S5 AWL Code: A Practical Guide
Learn to read Siemens S5 AWL (Instruction List) code from scratch. Covers the accumulator model, bit logic, load/transfer, timers, counters, jumps, and data blocks with real code examples and line-by-line explanations.
16 min read
migration-guideThe Siemens S5/S7 Converter Tool: What It Does and What It Doesn't
Honest assessment of the Siemens STEP 7 S5→S7 conversion tool. What it converts automatically, what it cannot handle, common errors, and how to deal with the remaining 20–40% that requires manual work.
12 min read
migration-guideS5 to S7 Migration: The Complete Guide (2026)
Step-by-step guide for migrating Siemens S5 PLC programs to S7-1500. Covers AWL→SCL conversion, timer mapping, address translation, and hardware selection.
18 min read
Analyze your PLC code with AI
PLCcheck Pro explains, documents, optimizes, and migrates PLC code — automatically.
Try PLCcheck Pro →Not affiliated with Siemens AG. S5, S7, STEP 5, STEP 7, and TIA Portal are trademarks of Siemens AG.