1-second UPS (persistent data)
CX9020
50
Version: 2.0
9.1
FB_S_UPS_CX9020_U900
Loss of data
The 1-second UPS switches the mainboard off as soon as the capacitors have discharged.
If other applications or the PLC are keeping other data open or are writing to them, data may be
corrupted or lost.
In the case of the CX9020 the function block FB_S_UPS_CX9020_U900 is used to control the 1-second
UPS from the PLC. If possible, use the standard values of the FB_S_UPS_CX9020_U900 and call the
function block cyclically in the PLC.
The function block has various modes that control the behavior of the Embedded PC when the 1-second
UPS is triggered:
Table 24: Block modes.
Mode
Function
eSUPS_WrPersistData_Shutdown
Writing of the persistent data, followed by
quick shutdown.
eSUPS_WrPersistData_NoShutdown
Only writing of the persistent data (no
quick shutdown)
eSUPS_ImmediateShutdown
Quick shutdown only (no writing of
persistent data)
eSUPS_CheckPowerStatus
Monitoring only (neither writing of the
persistent data nor quick shutdown); data
handling is entirely up to the user.
Regardless of the mode and therefore irrespective of whether data were saved or quick shutdown was
performed, the 1-second UPS switches off the mainboard after discharging of the capacitors, even if the
voltage has returned in the meantime.
No quick shutdown may be executed with Windows CE/WEC7, as otherwise Windows CE/WEC7 will restart
immediately after the persistent data have been saved. This can lead to problems with the persistent data.
Select exclusively the mode eSUPS_WrPersistData_NoShutdown with Windows CE/WEC7 in order to save
persistent data without error.
VAR_INPUT
VAR_INPUT
sNetID : T_AmsNetId:= ''; (* '' = local netid *)
iPLCPort : UINT := 0; (* PLC Runtime System for writing persistent data *)
tTimeout : TIME := DEFAULT_ADS_TIMEOUT; (* ADS Timeout *)
eUpsMode : E_S_UPS_Mode := eSUPS_WrPersistData_Shutdown; (* UPS mode (w/
wo writing persistent data, w/wo shutdown) *)
ePersistentMode : E_PersistentMode := SPDM_2PASS; (* mode for writing persistent data *)
tRecoverTime : TIME := T#10s; (* ON time to recover from short power failure in mode eSUPS_Wr
PersistData_NoShutdown/eSUPS_CheckPowerStatus *)
END_VAR
sNetID
: AmsNetID of the controller. (Type: T_AmsNetId)
iPLCPort
: Port number of the PLC runtime system.
tTimeout
: Timeout for the execution of the quick shutdown.
Summary of Contents for CX9020
Page 1: ...Manual CX9020 Embedded PC 2 0 2019 04 09 Version Date ...
Page 2: ......