Decoding and Tracing PROFIBUS DP Drive Status and Control Words in PCS 7

Decoding and Tracing PROFIBUS DP Drive Status and Control Words in PCS 7

To trace and decode raw PROFIBUS DP process data words (PZD) from an undocumented variable-frequency drive in SIMATIC PCS 7, map the signals using standard PROFIdrive profile structures. In the S7-400, the first input word (e.g. IW512) is Status Word 1 (ZSW1), where Bit 0 indicates 'Ready to switch on', Bit 2 indicates 'Operation enabled', and Bit 3 indicates 'Fault present'; the second input word (IW514) is Actual Speed (N_ACT, scaled 16#4000 = 100%). In CFC, connect the input word to a Word-to-Bool converter (W_BO) to monitor individual bits in a variable table or trend chart during manual start/stop tests to confirm signal mapping.

Table of Contents

PROFIdrive Profile Standard: PZD Word and Bit Architecture

In industrial automation, variable-frequency drives (VFDs) communicating over PROFIBUS DP exchange cyclic process data via PZD (Process Data) telegrams. Regardless of the drive manufacturer (Siemens SINAMICS, ABB, Danfoss, Schneider Altivar), most drives adhere to the standardized PROFIdrive Profile:

  • PZD 1 Input (ZSW1 / Status Word 1): Transmits 16 boolean drive states (Ready, Running, Tripped, Local/Remote).
  • PZD 2 Input (N_ACT / Actual Speed): Transmits actual motor velocity formatted as a 16-bit integer, where 16#4000 (decimal 16384) represents 100% nominal motor speed.
  • PZD 1 Output (STW1 / Control Word 1): Transmits commands from PLC to drive (Bit 0 = ON/OFF1, Bit 3 = Enable, Bit 7 = Fault Acknowledge).
  • PZD 2 Output (N_SET / Speed Setpoint): Transmits the commanded speed setpoint formatted as 16#4000 = 100%.

When inheriting a plant lacking symbol tables or block source code, understanding this standardized byte layout allows engineers to decode drive signals rapidly without proprietary vendor software.

Reverse-Engineering Undocumented Drive Signals via Variable Tables

To determine the exact bit mapping and physical I/O addresses of an unknown drive:

  1. Identify Base Address in HW Config:
    - In SIMATIC Manager, open HW Config.
    - Locate the PROFIBUS DP slave for the motor drive.
    - Note the input and output address ranges (e.g. I 512..515 and Q 512..515 for a standard 2-word PZD telegram).
  2. Create a Variable Table (VAT):
    - In SIMATIC Manager, insert a new Variable Table.
    - Add addresses IW 512 and IW 514.
    - Set the display format for IW 512 to Binary (2#...) and IW 514 to Hexadecimal (16#...).
    - Activate PLC -> Monitor to observe live bit patterns.
  3. Perform Controlled Diagnostic Exercises:
    - Drive At Rest: Record the baseline bit pattern (typically 2#0000_0010_0011_0001).
    - Start Drive: Issue a start command and observe which bit toggles to 1 (Bit 2: Operation Enabled).
    - Simulate Trip: Open the local safety stop or trigger an overload; observe which bit asserts (Bit 3: Fault Present).

Connecting and Decoding Drive Status in CFC via W_BO Blocks

To integrate these raw bits cleanly into SIMATIC PCS 7 Continuous Function Charts (CFC):

  1. Deploy Converter Block: In CFC, drag the standard conversion block W_BO (Word to 16 Boolean Outputs) from the STEP 7 library (CFC Library -> Convert).
  2. Connect Address: Connect the raw peripheral input word (e.g. IW 512 or PEW 512) to the input pin In of W_BO.
  3. Map Bits to Motor Block: Interconnect individual output pins to the APL motor block (MotL or MotSpdCL):
    - Connect Bit 2 (Operation Enabled) to FbkRun (Run Feedback).
    - Connect Bit 3 (Fault Present) through an inverter to Trip or Protect.
    - Connect Bit 9 (Remote Control) to LocalLi.
  4. Scale Speed Readback: For IW 514, connect to a divider block or custom SCL block that multiplies by nominal speed and divides by 16384.0 to output calibrated engineering units (e.g. RPM or Hz) to Rbk.

Standard PROFIdrive PZD Telegram Mapping and Bit Definition Reference

The following table details the standardized PROFIdrive Status Word 1 (ZSW1) bit mapping:

Bit PositionStandard PROFIdrive DesignationState = 0State = 1Typical PCS 7 CFC Block InterconnectionBit 0Ready to Switch OnNot readyReady to Switch OnInterlock / Pre-Start ConditionBit 1Ready for OperationNot readyReady for OperationDrive Pre-Charge CompleteBit 2Operation EnabledStoppedRunning (Enabled)Connect to FbkRun on MotLBit 3Fault PresentHealthyDrive Tripped (Fault)Invert and connect to TripBit 4Coast Stop Not Active (OFF2)OFF2 Active (Coast)Operating ConditionDrive Interlock CheckBit 5Quick Stop Not Active (OFF3)OFF3 Active (Brake)Operating ConditionEmergency Stop MonitoringBit 6Switch-On InhibitPermittedInhibited (Reset req)Operator AlertBit 7Warning / Alarm PresentHealthyDrive Warning ActiveConnect to Wrn or System AlarmBit 8Speed Deviation Within LimitSpeed errorSetpoint ReachedRamp MonitoringBit 9Control Requested (Remote)Local controlPLC Control GrantedConnect to LocalLi / Mode logic

[!NOTE]
Commercial Accuracy Notice: Decoding fieldbus telegrams and mapping standard drive profiles uses native STEP 7 conversion > blocks (W_BO, BO_W). Interconnecting decoded drive bits to APL motor blocks (MotL / MotSpdCL) consumes standard AS RT > Process Objects, but requires no specialized drive communication licenses.

Verification

Verify accurate PROFIBUS drive telegram decoding:

  1. Variable Table Correlation: In the VAT table, compare IW 512 bits against the physical VFD display panel. Verify that when the drive trips, Bit 3 reliably flips to 1.
  2. CFC Online Test: In CFC, activate Test -> Test Mode. Verify that W_BO output pins toggle accurately in response to field actuator states.
  3. Speed Readback Calibration: Run the motor at 50% speed. Verify that IW 514 reads approximately 16#2000 (8192 decimal) and that the scaled CFC output displays 50% (or half of motor rated RPM).

Limitations and Operational Precautions

Observe these guidelines when working with PROFIBUS drive data:

  1. Byte Endianness (High Byte vs Low Byte): In S7-400 Big-Endian architecture, IW 512 consists of IB 512 (High Byte = Bits 8 to 15) and IB 513 (Low Byte = Bits 0 to 7). Ensure your bit references account for S7 byte ordering.
  2. Consistent Data Transfer: PZD telegrams exceeding 4 bytes (e.g. Telegram 352 with 6 PZD words) require consistent transfer using SFC14 (DPRD_DAT) and SFC15 (DPWR_DAT) to avoid word tearing.
  3. Drive Fault Reset Handshake: When resetting a drive trip via Control Word 1 Bit 7, the command must be pulsed (0 -> 1 -> 0); holding Bit 7 permanently high inhibits subsequent fault detection.

Engineer FAQ

How do I know which PROFIBUS address corresponds to my drive?

Open HW Config in SIMATIC Manager. Look at the PROFIBUS DP master line; each drive icon displays its assigned DP address (e.g. DP Station 5) and the configured I/O address range in the lower table.

Why is 16384 used to scale drive speed instead of 100 or 1000?

The PROFIdrive standard normalizes 100% nominal speed to 16#4000 (hexadecimal 4000), which equals decimal 16,384 (half of the 16-bit signed integer range, leaving headroom up to 200% overspeed at 16#7FFF).

Can I track these drive bits in WinCC trends?

Yes. By connecting the W_BO output pins to an APL event or monitoring block (EventTS or MonDiL), you can archive the digital bits and plot them in WinCC TrendControl.

What block should I use in PCS 7 if the drive is a Siemens SINAMICS G120?

Use the certified PCS 7 drive block FbDrive or the specialized SINAMICS library block APL_G120, which automatically handles all PZD telegram decoding and scaling.

Technical References

Related Articles

Related Tags

  • PROFIBUS DP
  • PROFIdrive
  • Status Word 1
  • ZSW1
  • W_BO
  • Drive Diagnostics
6 respuestas