EasyManuals Logo

Beckhoff CX5010 Series User Manual

Beckhoff CX5010 Series
82 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #66 background imageLoading...
Page #66 background image
1-second UPS (persistent data)
CX50x066 Version: 1.9
5.3 FB_S_UPS
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 CX50x0 the function block FB_S_UPS is used to control the 1-second UPS from the PLC.
If possible, use the standard values of the FB_S_UPS 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8: 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*)
iUPSPort:UINT:=16#4A8;(*PortforreadingPowerStateofUPS,dafault16#4A8
*)
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_WrPersistData_NoShutdown/eSUPS_CheckPowerStatus*)
END_VAR
sNetID: AmsNetId of the controller. (Type: T_AmsNetId)
iPLCPort: Port number of the PLC runtime system.
iUPSPort: Port number via which the UPS status is read (standard value is 16#4A8).

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Beckhoff CX5010 Series and is the answer not in the manual?

Beckhoff CX5010 Series Specifications

General IconGeneral
BrandBeckhoff
ModelCX5010 Series
CategoryDesktop
LanguageEnglish

Related product manuals