boardSetFaultReset (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All

Firmware version:

1.00 / 1.00.00


boardSetFaultReset will set the length of time (in seconds) to wait after a fault before resetting the device. A time of 0 (zero) disables reset after fault.

Note: the minimum delay that is supported is 10 seconds.

 

Caution should be exercised when using this function as the devices will continue to reset when a fault occurs. This can make it difficult to connect to the device remotely for diagnostic etc.

 

When a PIN code fault (incorrect PIN code) occurs, the auto-reset will not occur.

 

 

Input:

delay : INT

The time the device waits before resetting when a fault is experienced.

 

Returns:

None

 

Declaration:

FUNCTION boardSetFaultReset;
VAR_INPUT
  delay : INT;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
// Enable reset after a Fault
boardSetFaultReset(delay:=10);
 
END_PROGRAM;