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
- Architecture and Fundamental Mechanics
- Step-by-Step Implementation Procedure
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
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:
- The PROFIdrive Standard vs. Proprietary VFD Control:
* SiemensFbDrive(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 isON / OFF1(2-wire steady state), and Bit 3 isEnable Operation. Status Word 1 reportsReady to Switch On(Bit 0),Ready for Operation(Bit 1), andOperation 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 toFbDrive, the drive does not transition through the PROFIdrive state machine cleanly, andFbDrivereports status inconsistencies toMotSpdCL. - MotSpdCL Monitoring and Process Control Errors:
*MotSpdCLmonitors drive feedback using static monitoring time (MonTiStatic) and dynamic monitoring time (MonTiDynamic).
* IfMotSpdCLissues a run command (FwdAutorRevAut), but feedback (FbkFwd/FbkRevfromFbDrive) does not assert withinMonTiDynamic, the block generates a dynamic monitoring error (MonDynErr = 1), trips the internal interlock, and raises a 'Process Control Fault' alarm. - 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) updatesEventStatedynamically via raw alarm telegrams dispatched byALARM_8Pblocks.
* AnEventStatevalue of33619967(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:
- 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. - Develop a Dedicated VFD Adapter Block (Recommended for Custom Telemetry):
* If the drive uses non-standard control words, do NOT useFbDrive.
* 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.
- Extract Bit 0 (
- Use Standard APL Driver Blocks:
* Route raw analog speed feedback toPcs7AnIn, scaling 0..16384 (or drive raw counts) to 0..100% or engineering units (RPM/Hz).
* ConnectPcs7AnIn.PV_OuttoMotSpdCL.Rbk(Readback value).
* Route the speed setpoint fromMotSpdCL.SP_OutthroughPcs7AnOuto the drive's speed reference PZD.
* Connect the drive's running feedback bit directly toMotSpdCL.FbkFwd. - Verify Feedback Inversion and Trip Settings:
* Verify theTripinput onMotSpdCL. In PCS 7 APL,Trip = 1signifies healthy (no fault), whileTrip = 0indicates a tripped motor. If the drive's fault bit is 1 on error, invert the signal before feeding it toMotSpdCL.Trip.
* SetMonTiDynamicandMonTiStaticto adequate values (e.g., 3.0 to 5.0 seconds) to accommodate drive acceleration ramps. - 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
- SIMATIC Process Control System PCS 7 Advanced Process Library (V9.0 SP3) Manual (A5E41356138-AC)
- PROFIdrive Profile Drive Technology - IEC 61800-7 Standard Specification
- Siemens Industry Online Support Entry 109780813 - PCS 7 Licensing and Engineering Guidelines
Related Articles
- Configuring Fail-Safe Module Drivers and PROFIsafe Communication in S7 F Systems and PCS 7
- Resolving SIMOCODE pro V Module Driver Generation Errors on CPU Integrated DP Ports in PCS 7
- Diagnosing Unexpected Manipulated Values and Safe Position Behavior in PCS 7 APL VlvAnL
Related Tags
- MotSpdCL
- FbDrive
- EventState
- PROFIdrive
- Altivar VFD
- Process Control Error