GetConfiguredModuleCount

获取已配置装置的数量。

语法

KsError GetConfiguredModuleCount(
     int* Count
);

参数

Count:已配置装置的数量。

回传值

如果此函式执行成功,会回传 errNoError,否则会传回错误码。如需更多有关错误码的资讯,请参阅 KsError 清单。

可用的 EtherCAT 状态

ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

范例

复制
int count = 0;
nRet = GetConfiguredModuleCount(&count);

使用需求

  RT Win32
最低支援版本 4.0 4.0
标头档 ksapi.h ksapi.h
程式库 KsApi_Rtss.lib KsApi.lib

参见

AddModuleConfiguration

GetModuleConfiguration

RemoveModuleConfiguration