Stuff learned every single day, thanks!
This is an input of another POU being cyclically written from the main POU. Does anybody have an idea of why the assigned and actual values differ? Different assigned value produces different delta. The only piece of code in the "another" POU that deals with this var looks like this: (Encoder handling) IF bInvertEncoder THEN nActPos:= (DWORD_TO_REAL(SHL(WORD_TO_DWORD (InEncoder[1]XOR 16#FFFF),16) OR InEncoder[0]XOR 16#FFFF)nEncScale)+nEncBias; ELSE nActPos:= (DWORD_TO_REAL(SHL(WORD_TO_DWORD (InEncoder[1]),16)...
Being back at this very project the question regarding placeholders still arises. My German ist quite weak , but from what I've managed to read in German-speaking forums the function doesn't exist in V3.xxx. I've played around with various uses of input variables and pragmas of the visu, but can't achieve my goal. Can someone with knowledge please verify that this is the case, so I can break down and carry on with my life?
Also had this very problem, which turned out to be non-identical netmasks on my PC and the Pi. (/20 on the PC and /24 on the Pi)
Dear Morberis, Perhaps I expressed myself a bit unclear. What I would like to achieve is a placeholder for a part of the variable name, just like pnn wrote. In my case the POU:s are named P_Axis01..P_Axis24. Displaying the same variable from each POU was super easy in CoDeSys 2. Just insert a placeholder within dollar-signs in the element attribute and then choose what the placeholder should be substituted with in that entire visu. E.g. P_Axis$ID$.bVariable could be substituted with 01..24 at ru...
Dear Morberis, Perhaps i expressed myself a bit unclear. What I would like to achieve is a placeholder for a part of the variable name, just like pnn wrote. In my case the POU:s are named P_Axis01..P_Axis24. Displaying the same variable from each POU was super easy in CoDeSys 2. Just insert a placeholder within dollar-signs in the element attribute and then choose what the placeholder should be substituted with in that entire visu. E.g. P_Axis$ID$ could be substituted with 01..24 at runtime.
Trying to do exactly the same thing as pnn, having 24 identical POU:s which I would like to interface with just one VISU so I don't have to change in 24 places when customer has ideas of look-and-feel. Using frame I've managed to switch visualization, but that doesn't make this a walk in the park. (Which Codesys 2.3 would have done using the placeholders) Can anyone point me in the right direction?
Trying to do exactly the same thing as pnn, having 24 identical POU:s which I would like to interface with just one VISU so I don't have to change in 24 places when customer has ideas of look-and-feel. Using frame I've managed to switch visualization, but that doesn't make this a walk in the park. (Which Codesys 2.3 would have done using the placeholders) Can anyone point me in the right direction?