Gaume
The subject may have already been discussed ?
Reply 0 0
thiagoralves
Reply 0 0
Gaume
Hello,thank you for your reply.
I simply needed to pass the global variable into a local variable.
I'll give a small example for anyone else who has been searching for the same solution.😁
 
VAR_EXTERNAL
  GlobalVar : ARRAY [1..3] OF INT;
END_VAR

VAR
  LocalVar : ARRAY [1..3] OF INT;
END_VAR

LocalVar[3] := 10;
GlobalVar := LocalVar;
Reply 0 0
thiagoralves
You may be running on an older version. Try the latest version of the editor v4.1.4
Reply 0 0
Reply