I have a customer that wants to use conditional compilation to configure his machine (today they've done it using exp files).
They want to generate a pou or variable list using PLCopenXML containing conditional pragmas that they want to import to the project. The problem is that i cant seem to get the conditional pragmas to be global for the application:
But the only way I've got it to work is to put it in the local program where I'm using it or in the compiler define property dialog of the application.
Anyone got an idea why this doesn't work?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I have a customer that wants to use conditional compilation to configure his machine (today they've done it using exp files).
They want to generate a pou or variable list using PLCopenXML containing conditional pragmas that they want to import to the project. The problem is that i cant seem to get the conditional pragmas to be global for the application:
I've created the program as below.
PlcProg:
I have tested using a configuration program:
ConfigProg:
As well as a configuration global variable list:
ConfigVars:
But the only way I've got it to work is to put it in the local program where I'm using it or in the compiler define property dialog of the application.
Anyone got an idea why this doesn't work?