boardSetPasswordAlt (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.05 / 1.00.00


boardSetPasswordAlt sets the alternative password that is used by the RTCU IDE (or any other RACP1/RACP2) client that will authenticate itself to the device.

 

The alternative password is only enabled when a primary password is set, see boardSetPassword for more information.

 

Input:

curpsw : STRING (Max 20 characters)

The current password. Must be correct to set new password.

 

newpsw : STRING (Max 20 characters)

The new password.

 

Returns: BOOL

TRUE:

New password has been set.

FALSE:

Password is not set. Wrong or invalid password specified.

 

Declaration:

FUNCTION boardSetPasswordAlt : BOOL;
VAR_INPUT
  curpsw : STRING;
  newpsw : STRING;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
// Change password
boardSetPasswordAlt(curpsw:="12345",newpsw:="54321");
 
END_PROGRAM;