a better solution is to use the following
VAR_GLOBAL CONSTANT
screen : INT := 4800;
two:INT:=2;
END_VAR
and then use a calc in a initialise routine
posoffset := screen*two;
when the screen changes only one place needs changing.
btw you have a variable when using visualisations.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi is this declaration possible
Hi,
it is not.
First of all you have to declare the data type:
Then you can add an initialization value
I'm afraid, calculations are not possible in these declarations.
Yes I tried and ended up with errors
Thanks
In V3.x this kind of declaration is possible.
a better solution is to use the following
VAR_GLOBAL CONSTANT
screen : INT := 4800;
two:INT:=2;
END_VAR
and then use a calc in a initialise routine
posoffset := screen*two;
when the screen changes only one place needs changing.
btw you have a variable when using visualisations.