Explainer
How PROFIBUS DP byte offsets become S7-1200 input addresses
Short answer
The terminal's documented byte offset is added to the module's configured start address: with the input area based at byte 4 and the table giving byte offset 5 bit 3, the fault is read at I9.3 and complete at I9.5. Those bits are produced by the terminal, so they are PLC inputs; A5.3 addresses your own output area. A one-byte module at byte 4 stops at I4.7, so configure at least six input bytes.

On this page
- What the GSD file defines and what it does not
- Direction is named from the device being described
- Offsets, absolute addresses and word labels
- Worked example: the fault bit at byte offset 5 with input base byte 4
- Area length, process image and address conflicts
- Commissioning while the terminal is still in delivery
- Questions asked
For a slave whose input area begins at byte 4 and whose manual places the fault at byte offset 5, bit 3, that fault arrives at I9.3 — E9.3 in the German notation your manual uses — and the complete bit at I9.5. Two things in the current plan defeat that. Reading the fault as A5.3 addresses your own output area and skips the base addition, and the single input byte placed at byte 4 covers only I4.0 to I4.7, so byte 5 never reaches the CPU. The address is settled by three things — direction, offset and area length — and all three can be checked in TIA Portal before the weighing terminal is delivered.
What the GSD file defines and what it does not #
The GSD file does one job: it tells TIA Portal that this slave exists and which fixed byte layouts it can present as modules. When you drop one of those modules into the DP slave, TIA Portal assigns its I/O addresses automatically, and you can overwrite them — which is how these areas were pinned to chosen addresses. What the file does not tell you is which bit starts a fill or reports a fault; that comes from the terminal manufacturer's PROFIBUS documentation, the PDF delivered with the device.
A GSD file can carry several configurations, one per device variant or module set, and the terminal validates the chosen one at startup. The module you configure must therefore be one the terminal actually expects — the same module-matching discipline shown for why PROFINET GSD modules need slot-matched insertion in TIA Portal.
On the master side, select the PROFIBUS interface of the CM 1243-5, create the DP master system from the shortcut menu, assign both station addresses, and plan the cable for the module's 9-pin D-sub female connector; the full sequence is walked through in connecting an S7-1200 to a PROFIBUS slave through a CM 1243-5.
For this exchange you program no send or receive instructions. Cyclic I/O means the CPU moves the configured areas between the process image and the slave on every scan, and your logic reads and writes plain I and Q addresses.
Direction is named from the device being described #
Input and output are always named from the side of the device being described. A signal the terminal produces — fault, complete, dosing status — is output data at the terminal and arrives in the PLC as input data: you read it at an I address. A signal your program produces — control ready, start fill — leaves the PLC as output data at a Q address and is input data at the terminal. The heading "digital outputs" above the fault entry in the manual describes the terminal's view; in your program that bit is an input.
That is the first error in A5.3: A is the German label for the output area (an English project shows Q), and reading it returns the value your own program last wrote — no terminal bit ever lands there. The second error is the missing base addition, because the manual's number is an offset, not a project address.
One line on safety, since this interface starts a dosing: these bits are control, not a safety function. The machine stop and any dosing inhibit stay hardwired or safety-rated as your risk assessment requires; a status bit over PROFIBUS is never the thing that stops a fill.
Offsets, absolute addresses and word labels #
An offset is counted from a defined origin — the first byte of the input telegram or the first byte of the module the table describes. The address your program uses is the module's configured start byte plus the offset, with the documented bit number unchanged, bits counting 0 to 7 within the byte. Two checks before you add anything:
Unit. Confirm the table counts bytes, not words. A word-indexed table moves two bytes per step, and you would also need to know which byte of the word carries the bit. In this terminal's table the fields are byte fields counted from the telegram start, so the entry's number 5 means byte 5.
Origin. Confirm the numbers are device-relative, not absolute PLC addresses. Terminal manuals are device-relative because the vendor cannot know your project; adding a base to an absolute address double-counts. With a single input module in the slave, telegram start and module start coincide, so exactly one base applies.
Worked example: the fault bit at byte offset 5 with input base byte 4 #
The inputs, each with its unit and source:
- Input area base: byte 4 — the start address assigned to the slave's input module in your TIA Portal device configuration.
- Fault bit: byte offset 5, bit 3 — the terminal manual's PROFIBUS table.
- Complete bit: byte offset 5, bit 5 — the same table.
- Configured input size: 1 byte — your present module.
The rule in words: the PLC byte address is the module's start byte plus the documented byte offset, the bit unchanged; and the module must span every offset from 0 up to the highest one used, so its minimum size is that highest offset plus one byte.
The arithmetic:
- Fault address: 4 + 5 = 9, bit 3, so I9.3.
- Complete address: 4 + 5 = 9, bit 5, so I9.5.
- Minimum input size: 5 + 1 = 6 bytes, covering offsets 0 through 5.
- Size configured now: 1 byte, covering I4.0 to I4.7 only.
Result: the fault and complete bits are readable at the two addresses above, and the module currently configured contains neither of them.
Decision: replace the 1-byte input module with the GSD variant of at least 6 input bytes — 6 is the floor for this table, and if the terminal's full layout places fields higher, take the variant that covers the highest offset. Read the fault at the input bit itself and, if the rest of the program wants a marker, copy it to something like M10.0; the copy changes nothing about where the bit physically arrives.
Area length, process image and address conflicts #
Input and output spaces are separate: the input area and the output area can both carry the base you assigned without conflicting, because an I address and a Q address at the same byte are different memory. Overlap only matters within one direction, and the CPU 1214C's on-board I/O and the 16DI+16DO expansion module occupy both spaces too — compile the hardware configuration and clear every conflict TIA Portal reports, because a conflict fix that shifts the slave's area silently invalidates every address in the program.
The two lengths need not match: each follows its own side of the documented layout, so the command side may stay small while the status side takes the full span.
Keep the highest byte of both areas inside the CPU's process image, whose size sits in the CPU's cycle settings. An area above the image compiles cleanly but is never copied, so the program reads zeros or stale values — the failure traced in fix an S7-300 PROFIBUS gateway detected but reading no I/O data.
Commissioning while the terminal is still in delivery #
Use the wait. Compile the hardware configuration now, clear the conflicts, and write the logic against the final addresses: the fault read at its input bit, the start command written to the output area. Until the terminal feeds the bus, that input area holds zeros — the same dead-area symptom sorted out in why an S7-1200 watch table reads zeros from a PROFINET gateway — so do not debug data-dependent logic against the watch table yet. What you can verify on the bench CPU: addresses, lengths, clean compilation, and the logic downstream of the marker, by setting that marker yourself.
Questions asked
Do I need send and receive instructions for this PROFIBUS exchange?
No. For cyclic I/O the CPU moves the configured areas every scan, so the program only reads I addresses and writes Q addresses. Communication instructions appear only where the terminal documentation specifies an extra service, such as acyclic parameter transfer, that the cyclic bytes cannot carry. Before programming any, confirm in the CM 1243-5 documentation which services the module supports, because that set depends on the module and its firmware.
How do the terminal's hardware keys reach my PLC program?
Only through bits the cyclic telegram actually carries. The terminal reads its own keys; a press appears in your program solely if the documented layout exposes a key or request bit, or if the terminal is configured to map that key onto a status bit. There is no automatic path from a front-panel key to a PLC input, so find the bit in the telegram table and read it like any other input.
What should the CPU indicate before the terminal is connected?
With the slave configured but absent, the DP master flags the missing station and the CPU records it in its diagnostics. That indication is expected and clears once the terminal is on the bus with its station address set. For a clean dry run, load the project with the slave deleted: the CPU should then show green LEDs only. Either way, compile first, so address conflicts are gone before the real diagnostics matter.
Why does the manual write E and EW when my project shows I and Q?
Notation only. German documents label inputs E, outputs A and markers M; EB and AB mean a single input or output byte and EW a two-byte input word, while an English TIA Portal project shows I, Q and M for exactly the same memory, so E9.3 and I9.3 are one bit. The EW prefix on the manual's entry is also the cue to verify the table's unit, bytes or words, before adding your base address.
