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
- Architecture and Fundamental Mechanics
- Step-by-Step Implementation Procedure
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
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
-
Instantiate Technological Blocks in CFC:
a. Open the CFC chart governing the tank level control loop.
b. InsertPIDConL(FB1870) and name itLIC_Tank4.
c. InsertMotSpdCL(FB1854) and name itPump_Feed.
d. InsertPcs7AnOu(FB1871) for the 4–20 mA drive speed reference (or insertFbDrivefor PROFIBUS DP / PROFINET). -
Interconnect Process Variable and PID Parameters:
a. Connect the scaled tank level from the analog channel block (Pcs7AnIn.PV_Out) toPIDConL.PV.
b. ConfigurePIDConL.SPto the target setpoint (e.g.,5.0L).
c. Set controller gain (Gain), integration time (TI), and derivative time (TD).
d. SetPIDConL.MV_HiLim = 100.0andPIDConL.MV_LoLim = 0.0(or match drive RPM). -
Interconnect PID Output to MotSpdCL External Setpoint:
a. ConnectPIDConL.MVdirectly toMotSpdCL.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) toMotSpdCL.SP_ExtLi.Value.
- Set
-
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 = 1andMotSpdCL.AutModLi.Value = 1. - Connect the start condition to
MotSpdCL.StartAut.Value.
b. Interconnect drive run confirmation from field digital input (Pcs7DiIn.PV_Out) toMotSpdCL.FbkRun.Value.
- Connect the automated sequence or level enable flag to
-
Connect Clamped Speed Output to Physical Drive Driver:
a. ConnectMotSpdCL.SP_OuttoPcs7AnOu.PV_In(orFbDrive.SP).
b. InMotSpdCL, configureSP_LoLim = 20.0%(minimum pump cooling speed) andSP_HiLim = 100.0%.
c. Compile CFC charts and execute an OS compilation to generate WinCC faceplates.
Verification
- In WinCC Runtime, open the faceplate for
Pump_Feed: verify the setpoint source indicates 'External' and displays the exact value ofLIC_Tank4.MV. - Start the pump in Auto mode: confirm
MotSpdCL.SP_Outtransmits the speed setpoint to the drive. - Induce a level disturbance (e.g., open drain valve V211): observe the tank level drop below 5 L. Verify
PIDConL.MVincreases 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
- SIMATIC Process Control System PCS 7 Advanced Process Library Manual
- SIMATIC PCS 7 Control Loop Monitoring Manual
- Siemens Industry Online Support Entry 109780813 (APL Drive and Controller Engineering)
Related Articles
- PID Block Selection Guidelines in PCS 7: PIDConL vs PIDConR vs PIDStepL
- Configuring Operating-State-Dependent Alarm Suppression on APL Blocks in PCS 7
- Diagnosing Pcs7AnIn Channel Driver Inactive Output (PV_Out) and Missing Module Driver Interconnections
Related Tags
- MotSpdCL
- PIDConL
- Speed Regulation
- SP_Ext
- APL Drives
- Closed-Loop Control