FB_NT_QuickShutdown

FB_NT_QuickShutdown 1:

The function block FB_NT_QuickShutdown is used to immediately reboot the PC without stopping TwinCAT or the operating system Windows.

The function block FB_NT_QuickShutdown  is used internally from FB_S_UPS and is not intended to be used elsewhere!

FUNCTION_BLOCK FB_NT_QuickShutdown

VAR_INPUT

VAR_INPUT
    NETID :T_AmsNetId;
    START :BOOL;
    TMOUT :TIME := DEFAULT_ADS_TIMEOUT;
END_VAR

NETID                  : AmsNetID of the PC.

START                : rising edge leads to an immediate reboot of the PC.

TMOUT               : Timeout time.

VAR_OUTPUT

VAR_OUTPUT
    BUSY  :BOOL;
    ERR   :BOOL;
    ERRID :UDINT;
END_VAR

BUSY                       : The QuickShutdown is being executed.

ERR                         : Is TRUE, if an error occurs.

ERRID                     : Delivers the error number in case that ERR is TRUE.

Requirements

Development environment

Target plattform

Hardware

PLC Libraries to include

TwinCAT v2.11.0 Build 2016 or higher (R2)

PC (i386)

Second-UPS

TcSUPS.Lib