IsSystemVariableSupported

评估是否支持系统变量

对于ST编辑器内的条件编译使用此指令。视连接的PLC类型而定,如果支持系统变量,此指令将返回TRUE;否则将返回FALSE

示例

#IF IsSystemVariableSupported('sys_iScanTimeCurrent') <> 0 #THEN
    (*condition TRUE: first part is compiled and executed*)
#ELSE    (*condition FALSE: second part is compiled and executed*)
#END_IF;
相关主题

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