S5 AWL Command: DO FW / DO DW (Direct Peripheral Access)
S5 AWL instruction DO (Direct Operation): System operation for direct peripheral and memory access on S5-135U/155U CPUs. Not available on S5-115U. Bypasses the process image.
S5 AWL Command: DO (Direct Operation)
DO is a system operation available only on the larger S5 CPUs (S5-135U and S5-155U, specifically CPU 928 and CPU 948). It provides direct access to peripheral I/O and memory areas, bypassing the normal process image update cycle. DO is not available on S5-90U, S5-95U, S5-100U, or S5-115U.
Syntax (S5-135U/155U only)
DO is used as a prefix modifier for load and transfer operations:
DO L PW 128 // Direct read of peripheral input word 128 (bypasses PAE)
DO T PW 128 // Direct write to peripheral output word 128 (bypasses PAA)
DO L FW 0 // Direct load of flag word 0
S7 Equivalent
There is no direct equivalent in S7. The closest concept is peripheral access via PEW/PAW in S7-300/400 (e.g., L PEW 128 reads peripheral input directly). On S7-1500, direct peripheral access uses the same PEW/PAW notation. Programs using DO extensively require careful analysis during migration.
Why This Is Important for Migration
DO commands indicate that the S5 program accesses I/O or memory outside the normal scan cycle. This is often performance-critical code (e.g., fast analog reads, direct hardware control). During migration, the intent behind each DO access must be understood and reimplemented using S7 mechanisms (peripheral access, interrupt OBs, or hardware interrupts).
Availability
| S5 CPU | DO available? |
|---|---|
| S5-90U, S5-95U | No |
| S5-100U | No |
| S5-115U (CPU 941–945) | No |
| S5-135U (CPU 928) | Yes |
| S5-155U (CPU 948) | Yes |
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 Address Mapping: Complete I/O Conversion Table
Complete reference for converting Siemens S5 PLC addresses to S7 format. Covers inputs (E→I), outputs (A→Q), flags (M/F), data blocks (DW→DBW×2 with bit-level mapping), timers, counters, and peripherals.
14 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.