Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Ecostruxure Machine Expert M241 PID Auto Tuning

Industry Automation and Control Forum

This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Industrial Automation
  • Industry Automation and Control Forum
  • Ecostruxure Machine Expert M241 PID Auto Tuning
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
32
LeTomas
Lt. Commander LeTomas Lt. Commander
12
RoozeeR
Lt. Commander RoozeeR Lt. Commander
6
JerryBartlemay
Lieutenant JG JerryBartlemay Lieutenant JG
6
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Machine Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Industry Automation and Control Forum
KarimSoliman
Ensign KarimSoliman
Ensign

Posted: ‎2025-05-04 07:45 AM

0 Likes
10
980
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-05-04 07:45 AM

Ecostruxure Machine Expert M241 PID Auto Tuning

Hello everyone,

 

I'm currently working on a project that adjusts the speed of a water pump based on the outlet pressure. I plan to use a PID controller for this purpose. However, I couldn't find any auto-tuning functionality within the project libraries. Manually tuning the PID parameters on-site would be quite time-consuming, so I'm looking for a way to implement auto-tuning using the PLC. Has anyone tackled something similar or have suggestions on how to approach this?

 

 

Labels
  • Labels:
  • Process Automation Talks
  • Tags:
  • english
Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 10
BevanWeiss
Spock BevanWeiss
Spock

Posted: ‎2025-05-04 11:09 PM

0 Likes
1
955
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-05-04 11:09 PM

Have you seen the FAQ here?
https://www.se.com/in/en/faqs/FA309271/

I assume that this SoMachine functionality here was brought forward in the renaming to 'EcoStruxure Machine Expert'..

If there's additional loop complexity (i.e. variable number of pumps etc), then I've often found that auto-tuning can be problematic, and you really need to have some knowledge of how the PID does its magic (i.e. understanding the Proportional / Integral / Derivative terms, however they're calculated, and what things contribute to overall loop gain, and loop response).


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

KarimSoliman
Ensign KarimSoliman
Ensign

Posted: ‎2025-05-04 11:22 PM

In response to BevanWeiss
0 Likes
0
954
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-05-04 11:22 PM

I think this article is related to machine expert basic, i was wondering if there is auto tuning mode like this mentioned in the article but with machine expert.

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
Admiral

Posted: ‎2025-05-05 07:00 AM

0 Likes
2
941
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-05-05 07:00 AM

There is a autotune function for PID heating control integrated. 

https://product-help.schneider-electric.com/Machine%20Expert/V1.2/en/comtb/comtb/Function_Blocks/Fun... 

An other autotune is not integrated. With ESME Basic and ESME HVAC you will get an autotune function.

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

freemanodu
freemanodu
Cadet

Posted: ‎2025-05-12 03:56 AM

In response to Bastian_Schmitz
0 Likes
0
825
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-05-12 03:56 AM

There is a autotune function for PID heating control integrated. 

https://product-help.schneider-electric.com/Machine%20Expert/V1.2/en/comtb/comtb/Function_Blocks/Fun... 

An other autotune is not integrated. With ESME Basic and ESME HVAC you will get an autotune function.

Etiket ekleHow and where can I download this library? It is not in my library.
Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
Admiral

Posted: ‎2025-05-12 10:25 PM

0 Likes
2
812
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-05-12 10:25 PM

It is hidden here

Bastian_Schmitz_0-1747113797980.png

 

 

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

freemanodu
freemanodu
Cadet

Posted: ‎2025-05-18 02:26 PM

In response to Bastian_Schmitz
1 Like
1
741
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-05-18 02:26 PM

Thank you very much, my problem is solved.

I was using v1.3, when I updated to v2.2, I was able to load the library from where you showed. Now I can add the function block.

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

KarimSoliman
Ensign KarimSoliman
Ensign

Posted: ‎2025-05-21 05:34 AM

In response to Bastian_Schmitz
0 Likes
0
705
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-05-21 05:34 AM

So it is working only with heating application and not applicable with pump operation?

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
Admiral

Posted: ‎2025-05-22 01:29 AM

0 Likes
1
687
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-05-22 01:29 AM

Yes that is correct, but in the end I should not make a difference.

 

Because heating application will rise the output if the actual value is lower then the setpoint.

And in Booster pumping application the output will also rise if the actual value is lower then the setpoint. 

 

The process of the autotune mechanisme is the same. 

As alternativ you could ask ChatGPT or Copilot to creat a function for this purpose. 

Here an example 

Bastian_Schmitz_0-1747902432016.png

FUNCTION_BLOCK FB_AutoTune_PID_ZN
VAR_INPUT
    xEn : BOOL; // Enable autotuning
    fSetpoint : REAL; // Setpoint in Bar
    fActual : REAL; // Actual pressure in Bar
END_VAR

VAR_OUTPUT
    fP : REAL; // Proportional gain
    fI : REAL; // Integral time
    fD : REAL; // Derivative time
END_VAR

VAR
    fError : REAL;
    fPrevError : REAL;
    fKu : REAL; // Ultimate gain
    fPu : REAL; // Oscillation period
    iWaveStep : INT;
    tStart : TIME;
    tNow : TIME;
    bOscillating : BOOL;
    tLastPeak : TIME;
    tCurrentPeak : TIME;
    bPeakDetected : BOOL;
END_VAR

IF xEn THEN
    fError := fSetpoint - fActual;

    // Simulate 3 wave steps to provoke oscillation
    CASE iWaveStep OF
        0:
            fKu := 1.0; // Initial guess
            tStart := TIME(); // Start time
            iWaveStep := 1;
        1:
            // Detect oscillation peak (simplified)
            IF fError > 0.05 AND NOT bPeakDetected THEN
                tLastPeak := tCurrentPeak;
                tCurrentPeak := TIME();
                bPeakDetected := TRUE;
                IF tLastPeak > T#0s THEN
                    fPu := REAL_TO_TIME(TIME_TO_REAL(tCurrentPeak - tLastPeak));
                    iWaveStep := 2;
                END_IF
            ELSIF fError < 0.01 THEN
                bPeakDetected := FALSE;
            END_IF
        2:
            // Apply Ziegler-Nichols closed-loop tuning rules
            fP := 0.6 * fKu;
            fI := fPu / 2.0;
            fD := fPu / 8.0;
            iWaveStep := 3;
    END_CASE
END_IF

TM241 isn´t the controller for pumping applications. Regarding to this point such a function is missing. 

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

KarimSoliman
Ensign KarimSoliman
Ensign

Posted: ‎2025-05-25 12:33 AM

In response to Bastian_Schmitz
0 Likes
0
638
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-05-25 12:33 AM

Dear Bastian,

Thanks for your support and your kind replies.

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

AlbertoJD2
AlbertoJD2
Cadet

Posted: ‎2025-05-26 09:54 AM

In response to freemanodu
0 Likes
0
589
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-05-26 09:54 AM

Glad to hear the update fixed it! I had a similar issue on v1.x before too,blank.png jumping to v2.2 definitely makes things smoother. Curious, which function block did you end up using?

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of