IsInstructionSupported

评估是否支持指令

对于ST编辑器内的条件编译使用此指令。视连接的PLC类型而定,如果支持由指令名称指定的系统指令,此指令将返回TRUE;否则将返回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;
相关主题

最后更新日期:2019-04-29此页面上的反馈松下热线