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

Variant type

geenst
2022-11-08
2022-11-09
  • geenst - 2022-11-08

    Hi,

    In Siemens I have used the Variant type to connect a variable which could be a word or a real.
    Depending on the type (typeOf(..)) I would then take different code paths.

    Is something similar possible in Codesys function blocks?

    Greetings,

    TG

     
  • geenst - 2022-11-09

    Thanks for the quick response. Will edit the code immediately ;)

     

Log in to post a comment.