Dear Tohid, Thank you very much for making video and highlighting my comment. I am really honored and grateful to you. As i mentioned in my previous comment that i want to use functions not function blocks to call them in the main program. As far as function blocks are concerned i already did that. P.S: For functions we can either select them as a POU or we can right click on the main program and can select (Method, Action, Transition etc.). But the problem is, function calling is not proper it gives me an error. Please make a video using functions only not FBs. Thanks anyway !
hello sir, why does it not work when you would write like this: function.input1 := ...; function.input2 := ...; somewhere else in normal program someVariable := function.output; afther your video i changed it to: function( input1 := ..., input2 := ...); someVariable := function.output; then it worked, but i do not understand what the difference is, they look similar to me.
You can have several functions implemented within a function block if needed. You need to pass the input arguments of all functions as the input to FB and get the outputs accordingly.
Thank you so much, Mr. Alizadeh!
You are welcome. I hope you enjoy watching my videos.
Thank you for your time!
Thanks for your comment!
thank you by the way, saved a lot of time because of this, soo very thank you
Thanks for your nice words. Glad to hear this.
Thanks for this sir!
🙏👍
thank you, very helpful, keep well!
You are welcome! Thanks for the comment!
Thank you very much for this tutorials..
You are welcome. Thanks for your nice comment!
Alhamdulillah
Thank you brother tauhid
👍
Dear Tohid,
Thank you very much for making video and highlighting my comment. I am really honored and grateful to you. As i mentioned in my previous comment that i want to use functions not function blocks to call them in the main program. As far as function blocks are concerned i already did that.
P.S: For functions we can either select them as a POU or we can right click on the main program and can select (Method, Action, Transition etc.). But the problem is, function calling is not proper it gives me an error.
Please make a video using functions only not FBs. Thanks anyway !
Check this out:
th-cam.com/video/hYuNbRQ_Q7g/w-d-xo.html
You should always check for division by 0 before dividing!
Could you please make a video about function blocks methods?
Please check out this tutorial:
th-cam.com/video/5xBf3JyQFec/w-d-xo.html
hello sir,
why does it not work when you would write like this:
function.input1 := ...;
function.input2 := ...;
somewhere else in normal program
someVariable := function.output;
afther your video i changed it to:
function( input1 := ..., input2 := ...);
someVariable := function.output;
then it worked, but i do not understand what the difference is, they look similar to me.
That is just the way in which you call the function.
Is it just me or is the audio really quiet on this one
Same here! Sorry for the low level of the sound for this video. I wish TH-cam provides a way to update the voice for the published videos.
Do you have to create a Funktionblock (FB) for each function you want to create? OR can one FB have different functions?
You can have several functions implemented within a function block if needed. You need to pass the input arguments of all functions as the input to FB and get the outputs accordingly.
@@TohidAlizadeh thank you
tnx
You are welcome. I am glad it was helpful!
what if A and B are arrays, and we want to do operations on every single element of that array.