Regulating Variable Motor Speed with MotSpdCL and PIDConL in PCS 7 APL

Regulating Variable Motor Speed with MotSpdCL and PIDConL in PCS 7 APL

In SIMATIC PCS 7 APL, regulating variable motor speed using a PID controller (such as maintaining a tank level at 5 L by modulating pump speed) requires interconnecting the continuous controller PIDConL (FB1870) with the variable-speed motor block MotSpdCL (FB1854). The manipulated output variable (MV) of PIDConL connects to the external speed setpoint input (SP_Ext) of MotSpdCL. To enable automated speed control, MotSpdCL must operate with its external setpoint selected, achieved by setting parameter SP_ExtLi.Value = 1 (or via faceplate selection) and enabling ModLiOp. The motor is started in Automatic mode via StartAut. Finally, MotSpdCL's calculated speed output (SP_Out) connects to the analog output driver (Pcs7AnOu) or frequency converter fieldbus telegram (e.g., PROFIBUS/PROFINET Telegram 1 or 20).

Table of Contents

Executive Summary

Process control applications—such as liquid level regulation, constant pressure water boosting, or chemical dosing—frequently require modulating pump or fan speed via variable frequency drives (VFDs). In SIMATIC PCS 7 APL, engineers must combine two technological building blocks: the continuous PID controller PIDConL (FB1870) and the controllable speed motor block MotSpdCL (FB1854). New practitioners often struggle with the parameter handshakes required to transfer PID output into motor speed commands while coordinating Automatic/Manual mode switches. This guide details the complete CFC interconnection architecture, setpoint switching logic, scaling alignment, and operational procedures to achieve stable closed-loop speed regulation.

Architecture and Fundamental Mechanics

The closed-loop architecture connecting continuous process control to variable speed machinery relies on distinct APL technological roles:
1. Role of the Continuous Controller (PIDConL FB1870):
- Measures the process variable (PV), compares it against the target setpoint (SP), and computes the manipulated variable (MV, typically 0.0 to 100.0% or engineering units such as RPM or Hz) using proportional, integral, and derivative algorithms.
- Operates in either Automatic mode (PID active) or Manual mode (operator drives Man output).
2. Role of the Speed-Controlled Motor (MotSpdCL FB1854):
- Governs motor drive interlocks (Intlock, Protect), operational states (Running, Stopped, Faulted), forward/reverse direction, and drive health monitoring (FbkRun, FbkSpd).
- Contains an internal setpoint management engine:
a. Internal Setpoint (SP_Int): Setpoint entered manually by the operator in the WinCC faceplate.
b. External Setpoint (SP_Ext): Setpoint received from external automated logic (such as PIDConL.MV).
3. Setpoint Selection and Mode Handshake:
- To accept the external PID output, MotSpdCL requires SP_ExtLi.Value = 1 (external setpoint linked via logic) or operator selection of 'External' in the faceplate.
- If SP_LiOp = 1, the choice between Internal and External setpoint is locked to the logic input SP_ExtLi.
4. Output to Field Hardware:
- MotSpdCL.SP_Out calculates the final clamped speed setpoint (respecting SP_LoLim and SP_HiLim, e.g., 20% to 100% to protect pump cooling).
- SP_Out connects to an analog output channel driver (Pcs7AnOu FB1871) or a drive communications block (e.g., FbDrive or SINA_SPEED).

Step-by-Step Implementation Procedure

  1. Instantiate Technological Blocks in CFC:
    a. Open the CFC chart governing the tank level control loop.
    b. Insert PIDConL (FB1870) and name it LIC_Tank4.
    c. Insert MotSpdCL (FB1854) and name it Pump_Feed.
    d. Insert Pcs7AnOu (FB1871) for the 4–20 mA drive speed reference (or insert FbDrive for PROFIBUS DP / PROFINET).

  2. Interconnect Process Variable and PID Parameters:
    a. Connect the scaled tank level from the analog channel block (Pcs7AnIn.PV_Out) to PIDConL.PV.
    b. Configure PIDConL.SP to the target setpoint (e.g., 5.0 L).
    c. Set controller gain (Gain), integration time (TI), and derivative time (TD).
    d. Set PIDConL.MV_HiLim = 100.0 and PIDConL.MV_LoLim = 0.0 (or match drive RPM).

  3. Interconnect PID Output to MotSpdCL External Setpoint:
    a. Connect PIDConL.MV directly to MotSpdCL.SP_Ext.
    b. To automatically force external setpoint when the PID is active:

    • Set MotSpdCL.SP_LiOp.Value = 1 (linking setpoint selection to logic).
    • Connect a boolean 1 (or the pump auto run condition) to MotSpdCL.SP_ExtLi.Value.
  4. Coordinate Motor Start/Stop Logic:
    a. To ensure the pump runs when level regulation is requested:

    • Connect the automated sequence or level enable flag to MotSpdCL.ModLiOp.Value = 1 and MotSpdCL.AutModLi.Value = 1.
    • Connect the start condition to MotSpdCL.StartAut.Value.
      b. Interconnect drive run confirmation from field digital input (Pcs7DiIn.PV_Out) to MotSpdCL.FbkRun.Value.
  5. Connect Clamped Speed Output to Physical Drive Driver:
    a. Connect MotSpdCL.SP_Out to Pcs7AnOu.PV_In (or FbDrive.SP).
    b. In MotSpdCL, configure SP_LoLim = 20.0% (minimum pump cooling speed) and SP_HiLim = 100.0%.
    c. Compile CFC charts and execute an OS compilation to generate WinCC faceplates.

Verification

  1. In WinCC Runtime, open the faceplate for Pump_Feed: verify the setpoint source indicates 'External' and displays the exact value of LIC_Tank4.MV.
  2. Start the pump in Auto mode: confirm MotSpdCL.SP_Out transmits the speed setpoint to the drive.
  3. Induce a level disturbance (e.g., open drain valve V211): observe the tank level drop below 5 L. Verify PIDConL.MV increases speed output, accelerating the pump to restore level to 5 L.

Limitations and Operational Precautions

Never operate centrifugal pumps below minimum manufacturer speed limits (SP_LoLim). Operating below minimum velocity causes overheating and cavitation, even if the PID requests 0% speed.

Engineer FAQ

Which block parameter on MotSpdCL receives the PID output?

The external setpoint input SP_Ext.

How do I force MotSpdCL to use the external setpoint via logic?

Set SP_LiOp.Value = 1 (enabling logic control) and set SP_ExtLi.Value = 1.

What block parameter on PIDConL outputs the speed reference?

The manipulated variable output MV (Manipulated Value).

Can an operator override the PID speed manually?

Yes. If SP_LiOp = 0, the operator can toggle between 'Internal' and 'External' setpoints on the MotSpdCL faceplate.

What parameter on MotSpdCL connects to the analog output card?

The parameter SP_Out (clamped speed setpoint output).

Technical References

Related Articles

Related Tags

  • MotSpdCL
  • PIDConL
  • Speed Regulation
  • SP_Ext
  • APL Drives
  • Closed-Loop Control
20 respuestas