IsPulseChannelEnabled

评估是否启用特定脉冲输出通道

对于ST编辑器内的条件编译使用此指令。如果启用INT_iPulseChannel指定的脉冲输出通道,此指令将返回TRUE;否则将返回FALSE

示例

#IF IsPulseChannelEnabled(0) <> 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;

Available pulse output channels:

FPS: 0, 2

FP-X R: 0, 1

FP-X 16K C14T: 0, 1, 2

FP-X 32K C30T, C60T: 0, 1, 2, 3

FP0R: 0, 1, 2, 3

FP0, FP-e: 0, 1

相关主题

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