EtherCAT Programming Guide Security of Software Protection
March, 2017 29-7
29
29.5 _ECAT_Security_Check_UserPassword
Syntax
U16 PASCAL _ECAT_Security_Check_UserPassword (U16 CardNo, U32 *UserPassword)
Purpose
Check the user password.
The default user password is 00000000. Users can reset the new password with the API function
“_ECAT_Security_Write_UserPassword” (section 29.7).
Note: Before applying this API, users should use the API function (in setion 6.1 and 6.2) to initialize the
EtherCAT master in advance.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
UserPassword U32* Data array Input an 8-character User password.
Example
U16 Status = 0;
U16 CardNo = 0;
U32 UserPassword[8] = {0, 0, 0, 0, 0, 0, 0, 0};
Status= _ECAT_Security_Check_UserPassword ( CardNo, UserPassword);