PLCcheck

S5 to S7 Marker/Flag Address Mapping: M → M

S5 to S7 marker (flag) address mapping. Addresses identical in both systems. Covers bit, byte, word, and double word access.

·3 min read
S5S7markerflagMMWMBaddressmapping

Diesen Artikel auf Deutsch lesen

S5 to S7 Marker/Flag Address Mapping: M → M

Marker addresses (flags) are identical between S5 and S7. The letter M is used in both systems, in both German and English mnemonics. No conversion is needed.

Address Mapping Table

S5 AWLS7 STLS7 SCLDescription
M 0.0M 0.0"Flag_0_0"Marker bit 0.0
M 100.5M 100.5"Flag_100_5"Marker bit 100.5
MB 0MB 0"FlagByte_0"Marker byte 0
MW 0MW 0"FlagWord_0"Marker word 0 (bytes 0+1)
MW 100MW 100"FlagWord_100"Marker word 100
MD 0MD 0"FlagDWord_0"Marker double word 0

Key Facts

F-to-M Conversion (S5 only)

S5 (F notation)S5 (M notation)S7Description
F 0.0M 0.0M 0.0Flag bit
FY 0MB 0MB 0Flag byte
FW 0MW 0MW 0Flag word
FD 0MD 0MD 0Flag double word

Overlapping Access Warning

Marker areas overlap in memory. MW 0 consists of MB 0 (high byte) and MB 1 (low byte). Writing to MW 0 overwrites both MB 0 and MB 1. This behavior is identical in S5 and S7 — no migration issue, but a common source of bugs.

MW 0 = | MB 0 (high) | MB 1 (low) |
       | M 0.0 ... M 0.7 | M 1.0 ... M 1.7 |

See also: Input Mapping | Output Mapping | Data Block Mapping


Part of the S5→S7 Address Mapping Reference. Maintained by PLCcheck.ai.

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.