boardSetOption (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

2.50 / 1.00.00


The boardSetOption function makes it possible to enable certain options in the RTCU device.

 

Note that the device must be reset before the changes take effect (for example by using boardReset).

 

 

Input:

optionkey : STRING

The option key that is used to enable the options.

The option key is an 11 character long text that can contain both upper and lower case characters.

         

Returns:

0

- Success.

2

- Illegal option key.

3

- Unknown option.

 

Declaration:

FUNCTION boardSetOption : INT;
VAR_INPUT
  optionkey : STRING;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
  boardSetOption(optionkey := "5UtiUEhx30i");
 
BEGIN
  ...
END;
END_PROGRAM;