Hey,
when I declarate new local variable in function block FB1 in TwinCAT PLC control and try download this block to PLC receive message see in the picture. I find in MAIN(PRG) declaration FB1 : FB1. Maybe thiis it is reason?
I hope someone can help me.
And thanks for your time in advance.