IMDHMIControls LibraryShop main store

How-to

Read MICROMASTER 440 fault and alarm codes over PROFIBUS

Industrial networks Published 5 min read

Short answer

Yes: the fault and alarm numbers can ride the cyclic PROFIBUS telegram. p2051 selects which r-parameter each transmitted PZD word carries, so setting a spare index to the fault-number readout, r0947, delivers the fault number to the PLC every bus cycle. The relay output is a separate function that switches only if its own output-function parameter assigns it to the fault state.

On this page
  1. What the telegram already carries
  2. Map the number with p2051
  3. Choose the telegram before the word
  4. Worked example: the fault number in PZD2 of a PPO3 telegram at word 332
  5. The relay answers on its own terms
  6. Prove the chain end to end
  7. Questions asked

Yes to both halves of the question, with one line to keep straight. An S7-300 controlling a MICROMASTER 440 over PROFIBUS can read the fault number, the alarm number, speed and current cyclically: p2051 transmit mapping decides which r-parameter each PZD word carries, so pointing a spare index at the drive's fault-number readout puts the code in the PLC every bus cycle. The relay is the other half. It does not follow PROFIBUS, and it does not follow the fault unless its own output function says so; set that separately. The steps below map the numbers, answer the relay, and prove the chain.

What the telegram already carries #

The cyclic channel (PZD) carries the control word and setpoint to the drive and the status word and actual values back; the PKW area, present only in some telegram types, reads and writes individual parameters acyclically. The telegram type fixes the word count: the common PPO3 setting is 2 PZD words and no PKW, which is why a stock exchange returns a status word and one value. The Siemens "Essentials for PROFIBUS" document for SINAMICS G and MICROMASTER 4 gives the word layout for each supported type.

Two bits in the status word do the detecting: bit 3 is the fault bit, bit 7 the warning bit, in the layout that document prints. A bit says that a condition exists; it never says which one. The fault's number lives in a readout parameter, and it reaches the PLC only when you map it into the telegram. If the cyclic exchange itself is not running yet, Configuring S7-300 PROFIBUS control for an MM420 drive walks the same PPO3 setup on the sibling drive.

Map the number with p2051 #

p2051 is the transmit mapping: one index per transmitted PZD word, and each index holds the number of the r-parameter that word carries. That is the whole mechanism.

  1. Record what each received word does now: watch them online, and note which one changes state on start and stop (the status word) and which one tracks speed (the main actual value).
  2. Choose the word you can spend: with a two-word telegram that is the second word; with longer telegrams use a word from the third onward.
  3. Enter 947 at that index so the word carries r0947, the most recent fault number. Content changes, length does not, so the master's station configuration stays untouched.
  4. Map the alarm number the same way if you need it: the parameter list gives alarms their own number readout, listed with the fault buffer; give it its own index.
  5. Decode the matching input word in the PLC and keep the raw value beside the decoded text.

On the current SINAMICS generation the same one-index-per-word logic applies, and G120X telegram PZD mapping via p2051 BICO shows it drive by drive. If an index refuses the change or a word quietly reverts to its old content, the p2051 BICO lock and PZD word restore procedure is the documented recovery path.

Choose the telegram before the word #

A two-word telegram gives you one value slot, and the status word is not optional. Spend PZD2 on the fault number only when no logic uses the actual value it carried. If anything logs speed or current from that word, move both ends to a six-word PZD telegram such as PPO4 and map r0947 and the alarm readout into words three and four. Both ends must change together, the master's station configuration and the drive's telegram setting, or the slave drops out of data exchange on the length mismatch.

Worked example: the fault number in PZD2 of a PPO3 telegram at word 332 #

Inputs, each with its source:

  • Telegram: PPO3, 2 PZD and no PKW, from the project's drive configuration.
  • Addressing: the slave's first PZD word sits at 332 decimal (14C hex) in one documented commissioning setup; your number moves with the slot the slave occupies.
  • Mapping: p2051, one index per transmitted word, value = r-parameter number.
  • Readout: r0947, most recent fault number, from the drive parameter list.

Rule in words: the word after the status word carries whatever r-parameter its p2051 index names.

Arithmetic:

  • PZD1, the status word, is input word 332.
  • PZD2 is 332 + 2 = 334, so input word 334.
  • The index behind that word takes the value 947.

Result: bit 3 of input word 332 says a fault is active, and input word 334 carries that fault's number in the same cycle.

Decision: display and log the fault text when bit 3 is set and word 334 is nonzero; with the bit clear, word 334 is history, not an event. This route spends your only value word: if the logic uses that speed, stop here and take the six-word telegram instead.

The relay answers on its own terms #

The relay output monitors neither PROFIBUS nor the mapped words. It switches according to its function assignment in the drive's output-function parameter, and the drive's fault state is one of the signals you can assign there. Assign it, and the contact changes on every trip, whatever caused it.

Decide the wiring sense before commissioning. Energize on fault through a normally open contact and you read fault present. Energize while healthy through a normally closed contact and you read drive alive, which also drops on lost drive power or a broken wire; that arrangement cannot separate a fault from a dead drive, so let the bus carry the diagnosis. A diagnostic relay like this is not a safety-rated device and never stands in for a protective stop.

Prove the chain end to end #

  1. Before editing p2051, prove the addressing: a documented example writes hex 4000 (16384) as the setpoint word, so run there and watch the actual-value word track it; half the setpoint, hex 2000 (8192), should read near half scale.
  2. Make the mapping change; the spent word stops tracking speed and holds the readout.
  3. Trip the drive with a commissioning test condition agreed with operations: bit 3 must set in the same scan the number appears, the number must match the operator panel, and the bit must clear on acknowledge.
  4. Gate the alarm text with bus health. On a lost connection the last received words are stale data, not drive state; mark them unavailable. When the health gate itself keeps dropping, troubleshooting intermittent PROFIBUS dropouts on an S7-400 network covers the physical causes that repeat.

Questions asked

Will the drive's relay output energize whenever the PLC sees a fault?

No. The relay follows its own output-function assignment inside the drive, not the PROFIBUS connection. It switches on a fault only when that function is set to the drive's fault state. Wire the contact normally closed and energize the relay while healthy if you also want to see power loss or a broken wire, and label that indication drive alive rather than fault.

How do I get the alarm number as well as the fault number?

The same way: the drive's parameter list gives alarms their own number readout alongside r0947 for faults, and you map it into another p2051 index so it arrives in its own PZD word. The status word also carries a warning-present bit, bit 7, which is your display gate. Alarms do not stop the drive, so keep their path separate from the fault trip path.

We use PPO3 and the logic needs speed feedback. Where does the fault number go?

Not into PZD2. With a two-word telegram, PZD1 is the status word and PZD2 is your only actual value, so repurposing it costs you the speed. Change the master's station configuration and the drive's telegram together to a six-word type such as PPO4, then map r0947 into one of the spare words from word three onward.

Why does the PLC show a fault number after the drive has been reset?

The mapped readout reports the most recent fault, so it is a record, not a live flag, and it keeps the number after an acknowledge. Gate your alarm display with the status-word fault bit: the bit set means the drive is in that fault now, and the mapped word tells you which one it is.

How do I find which p2051 index feeds which PZD word?

Each index corresponds to one transmitted PZD word, in order. Before editing, watch the received words online: the word that tracks shaft speed while the drive runs is the main actual value, and the word that changes state when you start and stop is the status word. Record both assignments, then change only the index behind the word you are willing to repurpose.

Keep reading

  • How-to

    How to map a 1747-SDN scanner for DeviceNet drive control

    Seeing the drive in an RSNetWorx browse is not an I/O connection. Put the drive in the 1747-SDN scanlist, read the M-file words the scanner mapping assigns, and reference those mapped words in the SLC 5/04 ladder. A node address is not an integer-file offset: the mapping view, not node 10, decides where each command and status word lives.

    Industrial networks

  • Troubleshooting

    Why an AB7961 gateway will not link an FX5U to EtherCAT

    The AB7961 is a CC-Link IE Field slave expecting the 1 Gbps deterministic network, while the FX5U's built-in Ethernet port serves CC-Link IE Field Basic, a software-based protocol on ordinary Ethernet. The two never form a network, so no register mapping exists. Replace the AB7961 with a Modbus TCP-side gateway such as the AB9000 and serve Modbus TCP from the FX5U's Ethernet settings.

    Industrial networks

  • How-to

    Configuring S7-300 PROFIBUS control for an MM420 drive

    Hardware configuration alone moves no drive data. An S7-300 reads and writes an MM420's cyclic PROFIBUS area with SFC14 and SFC15 whenever the consistent area is too large for direct access, maps every control-word and status-word bit to the configured telegram, and switches the drive's command and setpoint sources to the fieldbus before the first enable. Judge drive readiness from the status word, not from a completed bus transfer.

    Drives and motion