OutputCompilerWarning

Utilizar esta instrucción para la compilación condicional con el editor ST.

Ejemplo

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

Resultado

Con un FP-S este código devuelve la siguiente advertencia:

Temas relacionados

Modificado el: 2024-03-15Comentarios sobre esta páginaLínea directa de Panasonic