8/4/2018 12:21 PM  
Joined: 7/26/2018 Last visit: 10/28/2022 Posts: 18 Rating: (0) 
Hey guys, i know it is old post but i want to make math model of heating system, so i'm trying to implement transfer function in tia portal. I saw your examples, but when I try them, nothing happens. Any kind of help? Thanks in advance.
 
Last edited by: Jen_Moderator at: 8/28/2018 10:45:13 AMNew subject after splitting and inserted quotation. 

8/30/2018 2:14 PM  
Joined: 1/28/2009 Last visit: 10/11/2024 Posts: 6852 Rating: (1365)

Dear user, You can use them with no problem.Copy the entire FB from "Numeric Methods to Solve ODEs(Ordinary Differential Equations )" that are customized for classic STEP 7 and save them as ".scl" external source and generate blocks.Follow the steps in the following video with an online test for TIA V15. I hope it helps, hdhosseini 
Last edited by: hdhosseini at: 8/30/2018 2:15:25 PM 

5/4/2020 11:49 AM  
Posts: 2 Rating: (0) 
Hello, i need to simulate measuring transducer in PLC. One of my ideas was to use hdhosseini ODE algorithm but the equation is not finish. So i prepare an PDF file where i show how i try to solve the second order equation and simulate it. The result of response time from my alhorithms and ODE algorithm made by hdhosseini is really big and i don't know where i do misstake. I would be very grateful if someone check what i did and led me to a solution. The second part of my question is straightly for hdhosseini's ODE alhgorithm from file ODE.pdf. I have problem with understood how you get the final result of second order equation or how you deriving the formula. At the and there should be the equation for output discrete signal y=x1... And i need to know how you define tag T_Internal ? It is similar to sampling time Ts ? The algorithm seems like correct but without explanation about output signal and what it is T_Internat tag it's not refers for any dynamical model of phisical object. Can you help me with this? Im apologize for my all my typing mistakes, English is not my native language. You can download the files here Files 
Last edited by: Jen_Moderator at: 05/04/2020 14:19:25Removed link and added file as an attachment. Last edited by: Kazuan at: 07/05/2020 19:14:52Please if you can add the files to Attachment and you can delete SOEMT 

7/6/2020 4:04 PM  
Joined: 1/28/2009 Last visit: 10/11/2024 Posts: 6852 Rating: (1365)

Dear Kazuan; Thanks for the message,I will share the important point :
I hope it helps hdhosseini 
Last edited by: hdhosseini at: 07/06/2020 16:05:22 

7/6/2020 4:27 PM  
Posts: 2 Rating: (0) 
Ok, i try to add my files in post attachment. Inside is two files one PDF with all my equations and simulation, and second one is JPG file with your's second order euler equation. Thanks for you response ;) AttachmentSOE.zip (406 Downloads) 
7/6/2020 5:16 PM  
Joined: 1/28/2009 Last visit: 10/11/2024 Posts: 6852 Rating: (1365)

I have checked your result.It is crystal clear that the hdhosseini ODE algorithm is simpler and produced a reasonable response (based on time constant definition). my suggestion: 1 Break you one line complex to smaller equation with proper use of parenthesis because a slight error may change the entire result. 2 Normally , I break a giant equation to smaller ones , log internal values with logic analyzer and compare it with my draft manual calculation.In such as case , I can find the trouble easily. 3 Consult the Numerical analysis books on the 1st methods , you are using for calculated samples and can be used as reference. I hope it helps, hdhosseini 
This contribution was helpful to1 thankful Users 
Follow us on