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
I have the following code, and i can't wrap my head around how the "equal" operator does literally not work. I tried almost everything and i came to the conclusion that the following line doesn't work:
rtarrNode is reference for IN_OUT but i don't think that is relevant information.
oiNodePrio is an INT, and j is an INT aswell used in the loop. It should be possible right?
Already looked to anything else why it gave me a wrong result, it came down to rtarrNode[i].Status.oiNodePrio "equal" to j.
Does anyone know why this does not work? It's really weird.
Greetings.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi There,
I have the following code, and i can't wrap my head around how the "equal" operator does literally not work. I tried almost everything and i came to the conclusion that the following line doesn't work:
rtarrNode[i].Status.oiNodePrio = j
rtarrNode is reference for IN_OUT but i don't think that is relevant information.
oiNodePrio is an INT, and j is an INT aswell used in the loop. It should be possible right?
Already looked to anything else why it gave me a wrong result, it came down to rtarrNode[i].Status.oiNodePrio "equal" to j.
Does anyone know why this does not work? It's really weird.
Greetings.
Already solved! I still don't know how and why this is not possible. Codesys has some strange things sometimes....
Anyway how i solved is way more efficient and neat(Not double loop, and more like "pattern matching" stuff):
Last edit: hwillems 2021-03-13