Industry Automation and Control Forum
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Invite a Colleague
Found this content useful? Share it with a Colleague!
Link copied. Please paste this link to share this article on your social media post.
I'm on control expert classic. I implemented a section of a Derived FB Type in structure text.
There are some pieces of code that are repetitive in the code and I like to put them inside of a function
FUNCTION Foo : REAL
BAR : REAL;
Foo := BAR ;
(*BEGING OF THE DFB*)
OUT_DFB_1 : = Foo(IN_DFB_1);
OUT_DFB_1 : = Foo(IN_DFB_2);
So is it possible to nest function inside of DFB sections? Can't find any documentation on this topic.
Events & webinars
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.
Register today for FREE
Already have an account? Login