Resolving MotSpdCL Process Control Errors and EventState Misalignment with Third-Party VFDs in PCS 7

Resolving MotSpdCL Process Control Errors and EventState Misalignment with Third-Party VFDs in PCS 7

Process control errors on the APL MotSpdCL motor block—accompanied by an unexpected EventState tag value (such as 0x0200FFFF) on the OS Server—occur when interfacing third-party variable frequency drives (such as Schneider Electric Altivar) that do not conform to standard PROFIdrive telegram profiles (Telegram 1 or 20). When using the standard FbDrive channel driver with a drive configured for 3-wire control rather than standard 2-wire PROFIdrive control, command and status word bits mismatch, causing dynamic monitoring timeouts (MonDynErr) that trip a PLC Process Control Error. To resolve this, either reconfigure the drive to strict 2-wire PROFIdrive operation or replace FbDrive with a custom SCL adapter block using standard discrete and analog drivers (Pcs7DiIn, Pcs7DiOut, Pcs7AnIn, Pcs7AnOu) to map the drive's vendor-specific control and status words directly to MotSpdCL.

Table of Contents

Executive Summary

Integrating non-Siemens variable frequency drives into SIMATIC PCS 7 Advanced Process Library (APL) architectures frequently causes commissioning friction. While Siemens SINAMICS drives seamlessly integrate via PROFIdrive telegrams and the FbDrive block, third-party drives (such as Schneider Altivar or Danfoss VFDs) often employ proprietary control words or 3-wire pulse schemes. If FbDrive is forced onto a non-compliant drive, the block detects inconsistent drive ready/running states and raises a Process Control Fault. Concurrently, engineers observing the WinCC internal @..._EventState tag find unexpected bit patterns (e.g., bit 25 active). Resolving this failure requires understanding the PROFIdrive state machine, developing customized signal translation adapters, and recognizing how WinCC Alarm Logging calculates EventState values.

Architecture and Fundamental Mechanics

The integration between physical drive hardware, AS control logic, and OS visualization involves three interacting architectural components:

  1. The PROFIdrive Standard vs. Proprietary VFD Control:
    * Siemens FbDrive (FB 1881) is built strictly to the PROFIdrive Profile (IEC 61800-7). It expects standard Telegram 1 (2 PZD words: STW1/ZSW1) or Telegram 20.
    * Under PROFIdrive, Bit 0 of Control Word 1 is ON / OFF1 (2-wire steady state), and Bit 3 is Enable Operation. Status Word 1 reports Ready to Switch On (Bit 0), Ready for Operation (Bit 1), and Operation Enabled (Bit 2).
    * Many third-party drives default to 3-wire pulse control (e.g., pulse on Bit 1 to start, drop Bit 0 to stop). If wired to FbDrive, the drive does not transition through the PROFIdrive state machine cleanly, and FbDrive reports status inconsistencies to MotSpdCL.
  2. MotSpdCL Monitoring and Process Control Errors:
    * MotSpdCL monitors drive feedback using static monitoring time (MonTiStatic) and dynamic monitoring time (MonTiDynamic).
    * If MotSpdCL issues a run command (FwdAut or RevAut), but feedback (FbkFwd / FbkRev from FbDrive) does not assert within MonTiDynamic, the block generates a dynamic monitoring error (MonDynErr = 1), trips the internal interlock, and raises a 'Process Control Fault' alarm.
  3. The EventState Tag on the OS Server:
    * In WinCC, every APL block with message capabilities has an internal tag named <TagName>#EventState (a 32-bit DWORD).
    * While Tag Management displays the instance DB starting address (e.g., DB637.DBD0), the actual tag value is not read from DB offset 0 in the PLC. Instead, the WinCC message subsystem (CCAlgRtServer.exe) updates EventState dynamically via raw alarm telegrams dispatched by ALARM_8P blocks.
    * An EventState value of 33619967 (0x0200FFFF) signifies that the lower 16 bits represent alarm states (active and unacknowledged), while Bit 25 indicates an active Process Control Error generated by dynamic or static feedback failure.

Step-by-Step Implementation Procedure

Follow these procedures to resolve drive monitoring faults and adapt third-party VFDs to MotSpdCL:

  1. Analyze the Third-Party Drive Control Profile:
    * Inspect the VFD parameter manual (e.g., Altivar 630). Determine whether the drive is operating in 2-wire level control or 3-wire pulse control.
    * Check the drive's communication profile: is it set to standard PROFIdrive (CIA402) or vendor-specific I/O scanning?
    * If the drive supports a native 2-wire PROFIdrive mode, configure it accordingly in the drive's keypad/commissioning software.
  2. Develop a Dedicated VFD Adapter Block (Recommended for Custom Telemetry):
    * If the drive uses non-standard control words, do NOT use FbDrive.
    * In S7-SCL, create a custom adapter FB (e.g., ATV_Adapter) to map process data words (PZD):
    • Extract Bit 0 (Ready), Bit 1 (Running), and Bit 3 (Fault/Trip) from the drive's Status Word.
    • Assemble the drive's specific Control Word from MotSpdCL.Fwd, MotSpdCL.Rev, and fault reset commands.
    • In CFC, insert the adapter block between the physical I/O words and MotSpdCL.
  3. Use Standard APL Driver Blocks:
    * Route raw analog speed feedback to Pcs7AnIn, scaling 0..16384 (or drive raw counts) to 0..100% or engineering units (RPM/Hz).
    * Connect Pcs7AnIn.PV_Out to MotSpdCL.Rbk (Readback value).
    * Route the speed setpoint from MotSpdCL.SP_Out through Pcs7AnOu to the drive's speed reference PZD.
    * Connect the drive's running feedback bit directly to MotSpdCL.FbkFwd.
  4. Verify Feedback Inversion and Trip Settings:
    * Verify the Trip input on MotSpdCL. In PCS 7 APL, Trip = 1 signifies healthy (no fault), while Trip = 0 indicates a tripped motor. If the drive's fault bit is 1 on error, invert the signal before feeding it to MotSpdCL.Trip.
    * Set MonTiDynamic and MonTiStatic to adequate values (e.g., 3.0 to 5.0 seconds) to accommodate drive acceleration ramps.
  5. Compile, Download, and Test:
    * Compile CFC charts with 'Generate module drivers' (if using standard channel drivers).
    * Download changes to the AS controller.
    * Recompile the OS and verify that faceplate operation initiates drive rotation without raising monitoring errors.

Verification

Test the motor by issuing a Start command from the WinCC MotSpdCL faceplate. Verify that the motor starts smoothly, FbkFwd asserts within the configured monitoring window, and the faceplate icon turns solid green without flashing. Confirm that EventState in WinCC transitions to 0x00000000 (normal running, zero alarms). Trip the drive locally; confirm that Trip = 0 generates a motor protection alarm and halts the control output safely.

Limitations and Operational Precautions

Do not bypass MotSpdCL safety interlocks (Intlock, Permit, Protect) when mapping external drives. Always ensure hardware emergency stop circuits operate independently through hardwired fail-safe contactors or PROFIsafe (e.g., Safe Torque Off - STO) rather than standard Ethernet control words.

Engineer FAQ

Why does EventState show DB637.DBD0 in WinCC Tag Management?

WinCC assigns the block instance DB base address in the tag properties, but the EventState value is updated asynchronously via ALARM_8P raw message packets, not cyclic DB polling.

What does Bit 25 in EventState indicate?

In PCS 7 APL, Bit 25 of EventState indicates an active Process Control Error (such as a motor feedback failure, dynamic monitoring error, or actuator fault).

Can FbDrive work with any drive if a GSD file is used?

Only if the drive's GSD/GSDML file strictly maps standard PROFIdrive Telegram 1 or Telegram 20. Drives with proprietary PPO or custom word mappings will fail with FbDrive.

Why did inverting the Trip signal fix motor startup?

APL blocks use positive logic for safety: Trip = 1 means the motor protection is intact, whereas many third-party drives emit 1 to indicate a fault condition.

Technical References

Related Articles

Related Tags

  • MotSpdCL
  • FbDrive
  • EventState
  • PROFIdrive
  • Altivar VFD
  • Process Control Error
20 respuestas