
Commissioning
IntheeSUPS_ImmediateShutdownmodeaQuickShutdownisexecutedimmediatelywithoutsavingdata.
IntheeSUPS_CheckPowerStatusmodeonlyacheckisperformedastowhetherapowerfailurehas
occurred.Ifthisisthecase,themoduleonlyswitchesbacktothePowerOKstateaftertheexpiryof
tRecoverTime(10s).
Independentofthemodeandthusindependentofthesavingortheshuttingdownofthecontroller,theUPS
switchesthemainboardoffafterthecapacitorshavedischarged,evenifthevoltagehasreturnedinthe
meantime.
Attention
Cautionwhenusingfiles:
IfotherapplicationsorthePLCkeepotherfilesopenorwritetothem,thiscanleadtofaulty
filesiftheUPSswitchesoffthecontroller.
IftheEWFisused,theTwinCAT\Bootfoldermustbelocatedonanunprotectedpartition(seeintheregistry:
HKEY_LOCAL_MACHINE\SOFTWARE\Beckhoff\TwinCAT\System\BootPrjPath).
IftheFBWFisused,musttheTwinCAT\Bootfoldermustbeexcludedfromtheprotection(seeBeckhoff
FBWFManager,ExclusionSettings).
FUNCTION_BLOCKFB_S_UPS_CX9020_U900
VAR_INPUT
VAR_INPUT
sNetID:T_AmsNetId:='';(*''=localnetid*)
iPLCPort:UINT:=AMSPORT_R0_PLC_RTS1;(*PLCRuntimeSystemforwritingpersistentdata*)
iUPSPort:UINT:=16#4A8;(*PortforreadingPowerStateofUPS,dafault16#4A8*)
tTimeout:TIME:=DEFAULT_ADS_TIMEOUT;(*ADSTimeout*)
eUpsMode:E_S_UPS_Mode:=eSUPS_WrPersistData_Shutdown;(*UPSmode(w/wowritingpersistent
data,w/woshutdown)*)
ePersistentMode:E_PersistentMode:=SPDM_2PASS;(*modeforwritingpersistentdata*)
tRecoverTime:TIME:=T#10s;(*ONtimetorecoverfromshortpowerfailureinmode
CX9020 33Version1.1
Comentarios a estos manuales