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.

FB_NT_QuickShutdown 2: Inputs

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

Name

Type

Description

NETID

T_AmsNetId

AmsNetID of the controller

START

BOOL

Rising edge leads to immediate reboot of the controller.

TMOUT

TIME

Timeout time

FB_NT_QuickShutdown 3: Outputs

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

Name

Type

Description

BUSY

BOOL

Quick shutdown is executed.

ERR

BOOL

Becomes TRUE, as soon as an error occurs.

ERRID

UDINT

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)