Verwenden Sie diesen Befehl für die bedingte Kompilierung im ST-Editor.
#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;
Dieser Code liefert bei einer FP-S die folgende Warnung: