2 function_block fb_nt_quickshutdown – BECKHOFF CX51x0 User Manual
Page 24
Seconds UPS
3.2.2
FUNCTION_BLOCK FB_NT_QuickShutdown
The function block FB_NT_QuickShutdown can be used to trigger an immediate reboot, without stopping
TwinCAT or the Windows operating system.
Attention:
Attention
Loss of data
The function block FB_NT_QuickShutdown is used internally by FB_S_UPS_CX51x0. It
must not be used independently, because this could result in data loss!
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 controller.
START : Rising edge leads to immediate reboot of the control system.
TMOUT : Time out period.
VAR_OUTPUT
VAR_OUTPUT
BUSY :BOOL;
ERR :BOOL;
ERRID :UDINT;
END_VAR
BUSY : QuickShutdown is executed.
ERR : Becomes TRUE, as soon as an error occurs.
ERRID : Supplies the error number when the ERR output is set.
Prerequisites
Development environment
Target plat
form
Hardware
PLC libraries to include
TwinCAT v2.11R3 Build 2047 or higher
TwinCAT 3.1 Build 4018 or higher
PC (i386)
Onesecond UPS
TcSUPS_CX51x0.Lib
CX51x0
24
Version 1.0