Delta EtherCAT Programming Manual page 423

Table of Contents

Advertisement

Security of Software Protection
29.6 _ECAT_Security_Get_Check_UserPassword _State
Syntax
29
U16 PASCAL _ECAT_Security_Get_Check_UserPassword_State (U16 CardNo, U16 *State )
Purpose
Acquire the status of verifying the user password.
Note: The password check function cannot be done unless the the return code is not 2.
Parameter
Name
CardNo
State
Example
U16 Status = 0;
U16 CardNo = 0, State = 0;
U32 UserPassword [8] = {0, 0, 0, 0, 0, 0, 0, 0};
// Check the user password.
Status= _ECAT_Security_Check_UserPassword( CardNo, UserPassword);
// Wait for the result.
While (1)
{
Status= _ECAT_Security_Get_Check_UserPassword_State ( CardNo, &State );
if (State != 2)
{
}
}
29-8
Data type
Property
U16
Number
U16*
Status
// Verification is done. Users can check the result from the return code.
break;
Description
Card No.
Return code:
0: Password check is done. User password is valid.
1: Verification failed. User password is invalid.
2: Verification in progress.
3: Please execute
_ECAT_Security_Check_UserPassword.
4: Processing error of
_ECAT_Security_Check_UserPassword
EtherCAT Programming Guide
March, 2017

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents