GetConfiguredModuleCount
Gets the number of the configured devices.
Syntax
KsError GetConfiguredModuleCount(
int* Count
);
Parameters
Count: the number of the configured devices.
Return value
If the function succeeds, it returns errNoError
, otherwise an error code. For more information about the error code, see the KsError list.
Usable EtherCAT states
ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP
Example
Copy
int count = 0;
nRet = GetConfiguredModuleCount(&count);
Requirements
RT | Win32 | |
---|---|---|
Minimum supported version | 4.0 | 4.0 |
Header | ksapi.h | ksapi.h |
Library | KsApi_Rtss.lib | KsApi.lib |
See also