FB_NT_QuickShutdown

Note

Loss of data

The function block FB_NT_QuickShutdown is used internally by the various FB_S_UPS blocks. It must not be used independently, because this could result in data loss!

FB_NT_QuickShutdown 1:

The function block FB_NT_QuickShutdown can be used to trigger an immediate reboot, without stopping TwinCAT or the Windows operating system.

VAR_INPUT

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

NETID: AmsNetID of the controller (type: T_AmsNetID)

START: Rising edge leads to immediate reboot of the control system.

TMOUT: Timeout time

VAR_OUTPUT

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

BUSY: Quick shutdown is executed.

ERR: Becomes TRUE, as soon as an error occurs.

ERRID: Supplies the error number when the ERR output is set.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.0.0

PC or CX (x86),

1-Second UPS

Tc2_SUPS (Version: 3.3.3.0)