1-second UPS (persistent data)
CX50x0 67Version: 1.9
tTimeout: Timeout for the execution of the quick shutdown.
eUpsMode: The eUpsMode defines whether persistent data are to be written and whether a quick shutdown
is to be performed.
Standard value is eSUPS_WrPersistData_Shutdown, i.e. with writing of the persistent data and then quick
shutdown. (Type: E_S_UPS_Mode [}68])
ePersistentMode: Mode for the writing of the persistent data. Standard value is SPDM_2PASS.
tRecoverTime: Time after which the UPS reverts to the PowerOK status in the case of UPS modes without
shutdown.
The tRecoverTime must be somewhat longer than the maximum holding time of the UPS, since the UPS
switches off even when the voltage returns.
VAR_OUTPUT
VAR_OUTPUT
bPowerFailDetect:BOOL;(*TRUEwhilepowerfailureisdetected*)
eState:E_S_UPS_State;(*currentupsstate*)
END_VAR
bPowerFailDetect: TRUE during power failure. FALSE if the supply voltage is present.
eState: Internal state of the function block (type: E_S_UPS_State [}68])
VAR_GLOBAL
VAR_GLOBAL
eGlobalSUpsState:E_S_UPS_State;(*currentupsstate*)
END_VAR
eGlobalSUpsState: Internal state of the function block as global copy of VAR_OUTPUT
eState: For values see E_S_UPS_State [}68].
Development environ-
ment
Target platform Hardware PLC libraries to include
TwinCAT v2.11 R3 B2246
TwinCAT v3.1 B4016
CX50x0 1-Second UPS For TwinCAT 2: TcSUPS.lib
For TwinCAT 3: Tc2_SUPS