Utilisez cette instruction pour la compilation conditionnelle dans l’éditeur ST.
#IF IsInstructionSupported('F145_WRITE_DATA') <> 0 #THEN
(*condition TRUE: first part is compiled and executed*)
#ELSE
(*condition FALSE: second part is compiled and executed*)
OutputCompilerError('Instruction NOT supported');
#END_IF;
Avec un automate FP0, ce code renvoie l’erreur suivante :