OutputCompilerWarning

Use this instruction for conditional compilation within the ST editor.

Example

#IF IsSystemVariableSupported('sys_bIsPlcInTestMode') <> 0 #THEN
    (*condition TRUE: first part is compiled and executed*)
#ELSE
    (*condition FALSE: second part is compiled and executed*)
    OutputCompilerWarning('PLC does not support the test mode');
#END_IF;

Result

This code with an S PLC returns the following warning:

Related topics:

Modified on: 2019-01-24Feedback on this pagePanasonic hotline