EtherCAT Programming Guide Information of EtherCAT Dynamic-link Library (DDL)
March, 2017 28-5
28
28.4 _ECAT_Master_Get_DLL_Version_Single
Syntax
U16 PASCAL _ECAT_Master_Get_DLL_Version_Single (U16 CardNo, I8 *lpBuf, U32 nSize,
U32 *nLength)
Purpose
Acquire the version information 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 number
lpBuf I8* String
Version 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 version information
Example
U16 Status = 0, CardNo=16;
I8 Version[128];
U32 nSize=128, nLength=0;
Status= _ECAT_Master_Get_DLL_Version_Single(CardNo, Version, nSize, &nLength);