OutputCompilerWarning

Verwenden Sie diesen Befehl für die bedingte Kompilierung im ST-Editor.

Beispiel

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

Ergebnis

Dieser Code liefert bei einer FP-S die folgende Warnung:

Verwandte Themen

Letzte Änderung: 2024-03-15Feedback zu dieser SeitePanasonic Hotline