OutputCompilerWarning

Utilisez cette instruction pour la compilation conditionnelle dans l’éditeur ST.

Exemple

#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;

Résultat

Avec un automate FP-S, ce code renvoie l’avertissement suivant :

Thèmes apparentés

Modifié le : 2024-03-15Commentaires sur cette pageAssistance téléphonique