2 function_block fb_nt_quickshutdown – BECKHOFF CX9020 User Manual
Page 35
Commissioning
4.2.1.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_CX9020_U900. 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
PC (i386)
Onesecond UPS
TcSUPS_CX9020_U900.
Lib
CX9020
35
Version 1.1