Loading
Innovation Center LOGO
Recent ActivityRecent Activity

PID Simulation with Lead/Lag and 1st Order Filter

This application uses a model to generate a random value for a process variable, which can be used for visualization or PID controller simulation. - [Implementation Time: 60 minutes]
Innovation Center Home Page
Input in control systems refers to reference signals or commands that guide system responses, ensuring performance aligns with desired outcomes.
Innovation Center LOGO
  • Overview
  • Implementation Guide
  • Download
  • Contact us
  • Subscribe
Innovation Center Home Page
 
 

What does this application do?

This is a simplified application for simulating the behavior of a process variable to be connected to a PID controller. This application includes executable files to perform this simulation in Studio5000 for use with Logix processors.

 

Is this application relevant to me?

This application can be used in Studio 5000 for Logix processors. It allows you to understand the effect of gains and different PID configuration parameters, as well as simulate simple processes for demonstration or virtual commissioning purposes.

 
AHIC Download ICON VF.png

Downloads

Please note: You will need to agree to the Terms & Conditions for each download.

Downloadable file ›
Legal Disclaimer Acceptance. ROCKWELL AUTOMATION WILL PROVIDE ACCESS TO ROCKWELL PRODUCTS (BEST PRACTICES, APPLICATIONS AND KNOWLEDGE) ON THE CONDITION THAT YOU ACCEPT AND COMPLY WITH THE FOLLOWING TERMS AND CONDITIONS. YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS AGREEMENT BY DOWNLOADING, INSTALLING, COPYING, OR OTHERWISE USING PRODUCTS. IF YOU ARE ACCEPTING THESE TERMS ON BEHALF OF ANOTHER PERSON, COMPANY, OR OTHER LEGAL ENTITY, YOU REPRESENT AND WARRANT THAT YOU HAVE FULL AUTHORITY TO BIND THAT PERSON, COMPANY, OR LEGAL ENTITY TO THESE TERMS. IF YOU DO NOT AGREE TO THESE TERMS, DO NOT DOWNLOAD, INSTALL, COPY, ACCESS, OR USE THE PRODUCTS, SOFTWARE AND/OR CLOUD SERVICES. 1. Rockwell Automation retains full ownership and title to all Products and related documentation. No rights or licenses are granted other than those set forth in this Agreement. Company grants to Rockwell Automation a non-exclusive, worldwide, royalty-free, perpetual, non-revocable license to use any feedback Company provides regarding the Products, even if Company has designated the feedback as confidential. Rockwell Automation will be entitled to use the feedback without restriction or compensation to Company. 2. Company may not lease sub-lease, assign, license, sub-license or otherwise transfer any of the Products without the prior written consent of Rockwell Automation. Company may not assign or otherwise transfer access rights to the Products without the prior written consent of Rockwell Automation. Any reverse assembly, reverse engineering, decompilation, and creation of derivative works based on the Products by Company is prohibited. 3. Company acknowledges that Products provided under this Agreement are Rockwell Automation’s Confidential Information and are covered by effective or pending copyrights, patents, trademarks and/or trade secrets of Rockwell Automation, and Company agrees to maintain confidentiality by not disclosing Products or documentation to any third party without the prior written consent of Rockwell Automation and to protect the confidentiality of the Products as it would Company’s own confidential information. Company agrees that its obligation of confidentiality under this paragraph shall survive expiration or termination of this Agreement. 4. Company agrees that Products provided under this Agreement are prototypes and examples and its application and results may vary depending on each customer and project conditions. Rockwell Automation do not warranty the same results. This Agreement shall in no way be construed as a commitment by Rockwell Automation at any time to manufacture and/or offer Products for sale. There is no explicit or implicit service level agreement associated with using the Products. Rockwell Automation does not warrant that the functions contained in the Products will meet Company’s requirements. Company agrees to use all Products only in accordance with the instructions and only for the intended usages identified in the documentation. 5. EXCLUSION OF WARRANTIES AND LIMITATION OF LIABILITY. THE PRODUCTS ARE PROVIDED "AS IS". ROCKWELL AUTOMATION DISCLAIMS ANY AND ALL WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. ROCKWELL AUTOMATION EXPLICITLY DISCLAIMS ALL WARRANTIES OF NON- INFRINGEMENT AND EXPRESSLY DOES NOT WARRANT THAT THE PRODUCTS, IN WHOLE OR IN PART, WILL BE ERROR FREE OR FREE FROM SECURITY VULNERABILITIES. IN NO EVENT SHALL ROCKWELL AUTOMATION BE LIABLE FOR (i) LOST PROFITS, LOST SAVINGS, DOWNTIME, SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR (ii) ANY PERSONAL INJURY, PROPERTY DAMAGE OR ENVIRONMENTAL DAMAGE ARISING OUT OF OR IN CONNECTION WITH THIS AGREEMENT, WHETHER IN AN ACTION IN CONTRACT, STRICT LIABILITY OR IN TORT INCLUDING NEGLIGENCE. 6. COMPANY AGREES TO INDEMNIFY AND HOLD ROCKWELL AUTOMATION HARMLESS FROM ALL COSTS, AWARDS, DAMAGES, EXPENSES AND FEES (INCLUDING ATTORNEYS FEES) RESULTING FROM OR RELATED TO ANY THIRD-PARTY CLAIMS (INCLUDING EMPLOYEES AND AGENTS OF COMPANY) AGAINST ROCKWELL AUTOMATION, ITS DISTRIBUTORS, AGENTS, OFFICERS, DIRECTORS OR EMPLOYEES FOR PERSONAL INJURY (INCLUDING DEATH), PROPERTY DAMAGE OR ENVIRONMENTAL DAMAGE RELATED TO OR RESULTING FROM THE USE OF THE PRODUCTS. 7. In the event a Product is exported, Company agrees to comply with all applicable United States Export Control Law and Regulations, and the applicable export control laws of other countries. This Agreement shall be governed by the laws of the state of Wisconsin. This Agreement is the complete and exclusive Agreement between Rockwell Automation and the Company, and supersedes all prior agreements, whether written or oral, relating to the Products.
AHIC NEED HELP ICON VF.png


Need Help?

If you need help with an application or have feedback from the Innovation Center, please contact us.

 

General Features

 
  • In the case of Studio 5000, this application uses a Lead-Lag process block.

     

    This will allow us to simulate the behavior of a temperature control system.

     
    pid-simulation-with-lead-lag-and-1st-order-filter_Fig 1.png

    pid-simulation-with-lead-lag-and-1st-order-filter_Fig 1

  • The steady-state error is adjusted using the Gain parameter within the LDLG instruction.

    pid-simulation-with-lead-lag-and-1st-order-filter_Fig 2_EN.png

    pid-simulation-with-lead-lag-and-1st-order-filter_Fig 2

  • The phase delay is adjusted using the Lag parameter within the LDLG instruction.

     
     
    pid-simulation-with-lead-lag-and-1st-order-filter_Fig 3.png

    pid-simulation-with-lead-lag-and-1st-order-filter_Fig 3

  • pid-simulation-with-lead-lag-and-1st-order-filter_Fig 4.png

    pid-simulation-with-lead-lag-and-1st-order-filter_Fig 4

 

Advantages

  • Simplified code
  • Ease of implementation
  • Impact on development time
  • Cost Reduction
  • Operational Efficiency
  • Enables simulation and study in a secure environment
 

How can I make it work?

Requirements: products, tools, prior knowledge.

Software

  • Studio 5000 – Logix Designer (V36.0→)

Prior Knowledge

  • Basic knowledge of Studio 5000.
  • Knowledge of PID Closed Loop Control Systems.

Links of Interest (internal or external)

  • https://www.rockwellautomation.com/es-mx/products/software/factorytalk/designsuite/studio-5000.html
  • https://www.rockwellautomation.com/es-mx/capabilities/industrial-automation-control/design-and-configuration-software.html
 
 
 
 
AHIC STEP ICON.png

Implementation Guide

 
  1. Step 1
  2. Step 2
  3. Step 3
  4. Step 4
  5. Step 5
  6. Conclusion
Open All Close All
Step 1
 
 

Implementation guide for Studio 5000.

Create a Periodic Task.

For this exercise, a 10ms trigger is used, but this time can be adjusted according to the type of process you want to simulate.

 

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 5.png

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 5

Step 2
 
 

Create a Function Block Diagram type routine.

 

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 6.png

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 6

Step 3
 
 

Insert the PID and LDLG instructions as shown below.

 

pid-simulation-with-lead-lag-and-1st-order-filter_ Fig 7.png

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 7

Step 4
 
 

On the line connecting the LDLG block output to the PID PV, right-click and select “Assume Data Available”.

This is an important step because otherwise the controller will flag an error due to its inability to resolve the loop between these two blocks.

 

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 8.png

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 8

Step 5
 
 

Adjust the PID parameters and gains according to the process you wish to simulate.

 

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 9.png

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 9

Conclusion
 
 

With this parameterization, an underdamped system with an overshoot of approximately 20% is achieved, reaching stability in three half-cycles.

However, it can be adjusted to obtain any desired behavior according to the process being simulated.

 

0 < ζ < 1  Underdamped System
ζ = 1  Critically Damped System
ζ > 1  Overdamped System

 

 

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 10.jpg

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 10

 
 
 
 
 
pid-simulation-with-lead-lag-and-1st-order-filter_Fig 5.png

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 5

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 6.png

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 6

pid-simulation-with-lead-lag-and-1st-order-filter_ Fig 7.png

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 7

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 8.png

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 8

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 9.png

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 9

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 10.jpg

pid-simulation-with-lead-lag-and-1st-order-filter_Fig 10

 
 

PID Simulation with Lead/Lag and 1st Order Filter

Version 1.2 - July 2026

 

 
 
AHIC White Logo

Receive new applications and Innovation Center updates directly in your inbox.

Subscribe!
 
  1. Chevron LeftChevron Left Rockwell Automation Home
  2. Chevron LeftChevron Left Sup...
  3. Chevron LeftChevron Left Pro...
  4. Chevron LeftChevron Left Downloads
  5. Chevron LeftChevron Left Innovation Center
  6. Chevron LeftChevron Left PID Simulation with Lead/Lag and 1st Order Filter
Please update your cookie preferences to continue.
This feature requires cookies to enhance your experience. Please update your preferences to allow for these cookies:
  • Social Media Cookies
  • Functional Cookies
  • Performance Cookies
  • Marketing Cookies
  • All Cookies
You can update your preferences at any time. For more information please see our {0} Privacy Policy
CloseClose