1-second UPS (persistent variables)
CX51x0
73
Version: 2.8
eUpsMode
: The eUpsMode defines whether persistent data are to be written and whether a quick shutdown
is to be performed. The default value is eSUPS_WrPersistData_Shutdown, i.e. a quick shutdown is executed
automatically once the persistent data have been saved. (Type: E_S_UPS_Mode)
ePersistentMode
: Mode for the writing of the persistent data. Default value is SPDM_2PASS.
tRecoverTime
: Time after which the UPS returns to PowerOK state in UPS modes without quick shutdown.
The tRecoverTime must be greater than the maximum charging time of the UPS, otherwise the UPS may
discharge too much in the event of short, consecutive power failures, which could result in the charge being
insufficient for storing the persistent data.
VAR_OUTPUT
VAR_OUTPUT
bPowerFailDetect : BOOL; (* TRUE while powerfailure is detected *)
eState : E_S_UPS_State := eSUPS_PowerOK; (* current ups state *)
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)
VAR_GLOBAL
VAR_GLOBAL
eGlobalSUpsState : E_S_UPS_State; (*current ups state*)
END_VAR
eGlobalSUpsState
: Internal state of the function block as global copy of VAR_OUTPUT
eState
: For values see E_S_UPS_State
Requirements
Development environ-
ment
Target platform
Hardware
PLC libraries to include
TwinCAT v3.1 B4016
CX51x0
1-second UPS
Tc2_SUPS
8.4
Data types
E_S_UPS_Mode
With the mode selected in the function block you can specify what should happen in the case of a power
failure.
eSUPS_WrPersistData_Shutdown: Writing of persistent data and then a QuickShutdown
eSUPS_WrPersistData_NoShutdown: Only writing of the persistent data (no QuickShutdown)
eSUPS_ImmediateShutdown: Only QuickShutdown (no writing of persistent data)
eSUPS_CheckPowerStatus: Only check status (neither writing of persistent data nor a QuickShutdown)
E_S_UPS_State
The internal state of the function block can be read with E_S_UPS_State.
eSUPS_PowerOK:
in all modes: Power supply is OK
eSUPS_PowerFailure:
in all modes: Power supply is faulty (only shown for one PLC cycle)
eSUPS_WritePersistentData:
in mode eSUPS_WrPersistData_Shutdown: Writing of persistent data is active
in mode eSUPS_WrPersistData_NoShutdown: Writing of persistent data is active
eSUPS_QuickShutdown:
in mode eSUPS_WrPersistData_Shutdown: QuickShutdown ist active
Содержание CX51x0
Страница 1: ...Manual EN CX51x0 Embedded PC 11 8 2021 Version 2 8...
Страница 2: ......
Страница 5: ...Table of contents CX51x0 5 Version 2 8 List of figures 93...
Страница 6: ...Table of contents CX51x0 6 Version 2 8...
Страница 87: ...Technical data CX51x0 87 Version 2 8 2 Transport and storage 13...
Страница 94: ......