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 would like to have a function that is able to create 'features' on compile time. So e.g. I would like to have a parameter that says 'OnDelay = TRUE', then a call should be made to a function(block) that has a on-delay timer. In case that this parameter 'OnDelay = FALSE', this function(block) should be ignored completely. Would something like this be possible?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All
I would like to have a function that is able to create 'features' on compile time. So e.g. I would like to have a parameter that says 'OnDelay = TRUE', then a call should be made to a function(block) that has a on-delay timer. In case that this parameter 'OnDelay = FALSE', this function(block) should be ignored completely. Would something like this be possible?
Take a look at this, maybe it's what you want: https://help.codesys.com/api-content/2/codesys/3.5.12.0/en/_cds_pragma_conditional/