跳转至

TBindCounter

计数器参数结构体

结构体说明:

typedef struct
{
    short counterType;
    short edge;
    int32_t init;
    int32_t target;
    int32_t begin;
    int32_t end;
    short dir;
    int32_t unit;
    short inputVarId;
    short resetVarId;
} TBindCounter;
counterType计数器类型。
0:等于目标值时输出1。
1:小于等于目标值时输出1。
2:大于等于目标值时输出1。
edge设置计数。
0:上升沿计数。
1:下降沿计数。
2:上升沿和下降沿计数。
init计数器初值,当复位变量为1时内部计数器将恢复初值。

注意事项: