Call function block from st
-
Hello there,
I have just started to migrate to ST - these big diagrams gets messy in the long run ;)
Now I'm just trying to call a function block from st.


But i always get 'no value'.

My question is, how do I call ph_control_hourly and get the value of the variable 'out'?
Thanks a lot -
Hello @søren-hedegaard-0,
you didn't pass any input value to the ph_control_hourly(), so the block doesn't know anything about run_at_time and ph_hourly_feed.The call should look this:
ph_control_hourly(run_at_time := local_run_at_time, ph_hourly_feed := local_ph_hourly_feed, out => local_out_value)
If you look in to the help (F1) of any built-in FB, you will see a usage and you learn how the ST works:

Best regards,
Martin
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login