If you have a function block A which extends another function block B and if B has 2 var_input variables.
A has 3 VAR_INPUT CONSTANT variables. When we put a box of type A on the CFC chart we see that the inputs shown are not the ones defined in B but 2 of the constant inputs defined in A. These are then also repeated in the parameters button of this block.
I think this is not how it should behave
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you have a function block A which extends another function block B and if B has 2 var_input variables.
A has 3 VAR_INPUT CONSTANT variables. When we put a box of type A on the CFC chart we see that the inputs shown are not the ones defined in B but 2 of the constant inputs defined in A. These are then also repeated in the parameters button of this block.
I think this is not how it should behave
I have included a project to illustrate the point.
If you pull in a Box of type POU1 in the program in the project. The bug is visible.
simopc1.project [137.15 KiB]
Hello Shabroz.Gill,
thanks for reporting this issue
An ID to track is
CDS-48999 CFC: Wrong pins are inserted for derived FB
A workaround is to change the name of pin manually - click on pin names and type the correct name.
Regards,
Roman
Thanks for the reply.
Can I get access to the bug tracking system or is that restricted?
Thanks
You need a customer accout to login
https://customers.codesys.com/bugtracker.html
Regards,
Roman