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/