Hi Rob! Right click your Application in the device tree and "add object > Global Variable List".
Give your Global Variable List an easy name to type like "GVL".
This is where you make all of your global variables.
Reference them in your code with GVL.ConstantName for example.
If you are against global variables for idealogical reasons, you can use a VAR INPUT CONSTANT in your FB and pass it the constant from where you call it in your main PRG.
Hi I-Campbell, once again thanks for your tips!
The first approach you described seemed unfortunately to not work out for me
but I went for the second one and it "nearly" has worked out except for one issue...I let here a couple of screenshots where is to see what kind of error messages I've gotten by compiling...