Sign in to follow this  
Followers 0
Stuartjl

call function block in a function

5 posts in this topic

Hi, i want to call a function block from within a function block. What I want to know is, what the syntax should look like and how you can use the output from the FB you are calling. Stu *in title it should be "call function block in a function block". Edited by Stuartjl

Share this post


Link to post
Share on other sites
The syntax will be the same as calling the function blocke from a Program POU. I've just tested this: Create a FB in ladder. Crate a FB is FBD. Call the first FB from the second. Call the seconde FB from a Program POU. Outputs are used by right-click and "assign"... Compiles ok. Seems pretty straight forward so I'm guessing I've misunderstood the question? Edited by Veganic

Share this post


Link to post
Share on other sites
Hi, no you have not miss understood the question. I've forgot to put for "Structured Text", sorry. Stu

Share this post


Link to post
Share on other sites
Is this what you are looking for?
1 person likes this

Share this post


Link to post
Share on other sites
Nice one, thank you very much. Sometimes the syntax can be very confusing

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0