OutputCompilerWarning

Utilizzate questa istruzione per la compilazione condizionata nell'editor ST.

Esempio

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

Risultato

Questo codice, con un PLC FPS, restituisce il seguente avviso:

Argomenti correlati

L'ultima revisione: 2024-03-15Feedback su questa paginaPanasonic hotline