Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
but then i get weird values, some missing, some twice and the order seems completely wrong... can you please point me in the right direction?
Thank you
Seems specific to your setup.
on CODESYS Control Win V3 x64 3.5.17.20 I get the expected results (see attached).
What are you running it on?
Also a possibilty, is nd having an array out of bounds problem, writing to memory it shouldn't.
Hi Guys
i am trying to define a Constant array in Var Constant....
i initialise it like this:
but then i get weird values, some missing, some twice and the order seems completely wrong... can you please point me in the right direction?
Thank you
Seems specific to your setup.
on CODESYS Control Win V3 x64 3.5.17.20 I get the expected results (see attached).
What are you running it on?
Also a possibilty, is nd having an array out of bounds problem, writing to memory it shouldn't.
hmm, kinda weird... unfortunately not the first time i got weird behaviour on codesys for raspberry pi....
i'll do a test with a empty project to make sure i have no other issues that can interference...
hmm, the problem seems to sit a little deeper, i just tested on Raspberry pi 4.2.0.0, in SP16.60 and SP17 in a empty project... works fine on both.
there must be a issue with my current project.
this is how i initialize all constants. do you see a error here?
btw. if i init like this:
that works...
Can you post a project which reproduces it?
Your latest declaration works fine on my Pi. (screnshot)