Posted 21 Sep 2016 Hi, i want to make a function block which will contain a block GP.CPRTCL (for predefined comm protocol). GP.CPRTCL has an input "Un" who only receives constant (H,K). On input of my own function block i can set a constant variable, but inside block that variable isn't a constant anymore (GP.CPRTCL doesn't recognize a variable). Is there a way for receiving constant variable in GP.CPRTCL block ("Un") if it is in another block. Regards Share this post Link to post Share on other sites
Posted 6 Oct 2016 Can you show an example, not sure if I fully understood - the compiler will make sure an input variable on the outside of a FB is still a constant on the inside. Share this post Link to post Share on other sites