Vérifier la prise en charge d’une instruction
Utilisez cette instruction pour la compilation conditionnelle dans l’éditeur ST. En fonction du type d’automate connecté, l’instruction renvoie TRUE si l’instruction système spécifiée par le nom de l’instruction est prise en charge ; sinon elle renvoie FALSE.
#IF IsInstructionSupported('F145_WRITE_DATA') <> 0 #THEN
(*condition TRUE if channel 0 is enabled: first part is compiled and executed*)
#ELSE
(*condition FALSE: second part is compiled and executed*)
#END_IF;