Luka0204

Function block self-made

2 posts in this topic

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

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

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