对于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;
带有FP0 PLC的此代码返回以下错误: