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 ;)