IsClockCalendarBcdSupportedUnterstützung der Uhr-/Kalenderfunktion in BCD-Format prüfen
Verwenden Sie diesen Befehl für die bedingte Kompilierung im ST-Editor. Bei einer SPS, die die Uhr-/Kalenderfunktion in BCD-Format 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;