easy-forum
Deutsch - Software => easySoft => Thema gestartet von: srd am Dezember 11, 2020, 07:13:02 Vormittag
-
I have written a program to calculate the aprox capacity of a storage tank. When i add a text display i have done it so you can put the diameter and height onto the front screen and it will them calculate the capacity. Diameter and height are in mm and capacity is m³. When i created the same program (minus the text display) to a user block for some reason it does not work. I am after advice on what the issue's could be. Cheers
-
Hi srd,
... please upload your program with the non-functioning user block. I can't understand your problem because I don't see it.
regards
-
When i covert the program to a user function block it doesn't work.
-
how do you convert the program into a user function?
-
copy and paste
-
this is the program and the user function block created
-
... I'm really sorry, but I can't find the malfunctioning user function you were talking about. So I can't find the errors for you.
Regards
-
Is this any good for you to look at.
-
...
first of all you have to parameterize the user block. I think 2 analog inputs and an analog output should be enough for the first time. Before changing, you have to delete the user function from the main program! If you drag the module back into your main program after the change, it has inputs and outputs. Next you have to assign the inputs and outputs in the user function program. See the pictures in the appendix.
You have to replace
MW10 with IA01
MW11 with IA02
MD15 with QA01
See the pictures in the appendix.
-
cheers for your help i will give it a try.
-
... a Version without errors ...
-
Cheers for doing that much appreciated
-
Hi srd,
... just as an idea, this user function would be a prime example of ST programming language. it would be much easier than a function diagram or a ladder diagram.
regards