跳转至

TControlConfig

伺服控制器control配置参数结构体

结构体说明:

typedef struct ControlConfig
{
    short active;
    short axis;
    short encoder1;
    short encoder2;
    int32_t  errorLimit;
    short filterType[3];
    short encoderSmooth;
    short controlSmooth;
} TControlConfig;

active:axis资源是否有效,0:无效。1:有效
axis:axis资源序号。
正整数,取值范围请参照轴号参数范围一栏。
encoder1:第1路编码器资源序号。
正整数,取值范围请参照轴号参数范围一栏。
encoder2:保留参数。
errorLimit:误差极限,非负数。
filterType:控制算法模式。

0:标准PID算法。默认模式。
1:双环算法。
encoderSmooth:保留参数。
controlSmooth:保留参数。

相关指令:

GTN_GetControlConfig
GTN_SetControlConfig

注意事项:

保留参数建议不修改,如需修改请联系固高工程师。