Unterstützung einer Systemvariable prüfen
Verwenden Sie diesen Befehl für die bedingte Kompilierung im ST-Editor. Bei einer SPS, die die Systemvariable unterstützt, liefert der Befehl den Wert TRUE, andernfalls ist der Wert FALSE.
#IF IsSystemVariableSupported('sys_iScanTimeCurrent') <> 0 #THEN
(*condition TRUE: first part is compiled and executed*)
#ELSE (*condition FALSE: second part is compiled and executed*)
#END_IF;