Information of EtherCAT Dynamic-link Library (DDL) EtherCAT Programming Guide
28-4 March, 2017
28
28.3 _ECAT_Master_Get_DLL_Path_Single
Syntax
U16 PASCAL _ECAT_Master_Get_DLL_Path_Single (
U16 CardNo, I8 *lpFilePath, U32 nSize,
U32 *nLength)
Purpose
Acquire the directory of the ECAT_RTX_DLL.dll or PCI_L221.dll file.
Note: These two DLL files (ECAT_RTX_DLL.dll or PCI_L221.dll) are the updated file and the file generated
by EtherCAT_DLL.dll automatically.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
lpFilePath I8* String
Directory of the ECAT_RTX_DLL.dll or PCI_L221.dll
file.
nSize U32 Value The string length to be read
nLength U32* Value The string length of the directory
Example
U16 Status = 0, CardNo=16;
I8 FilePath[128];
U32 nSize=128, nLength=0;
Status= _ECAT_Master_Get_DLL_Path_Single(CardNo, FilePath, nSize, &nLength);