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
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Hi.
Check type ANY:
https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_datatype_any.html
Thanks for the quick response. Will edit the code immediately ;)