
SecondsUPS
3.2 Overview
ThelibraryTcSUPS_CX51x0.libincludesfunctionsandfunctionblocksrequiredforcontrollingtheone
secondUPS.Seeprojectexample.
Functionblocks
Name Description
FB_S_UPS_CX51x0 BlockforcontrollingtheonesecondUPS
FB_NT_QuickShutdown InternalblockforQuickShutdown,usedbythe
FB_S_UPS.
Functions
Name Description
F_GetVersionTcSUPS_CX51x0 ThisfunctioncanbeusedtoreadPLClibraryversion
information.
Component Version
TwinCATonthedevelopmentPCandonthecontrol
system
TwinCAT2.11R3Build2047orhigher
TwinCAT3.1Build4018orhigher
3.2.1 FUNCTION_BLOCKFB_S_UPS_CX51x0
ThefunctionblockFB_S_UPS_CX51x0canbeusedonCXdeviceswithonesecondUPStocontrolthe
onesecondUPSfromthePLC.Thisallowsthepersistentdatatobesavedandaquickshutdowntobe
performedintheeventofapowerfailure.IfpossiblethedefaultvaluesoftheINPUTsofthe
FB_S_UPS_CX51x0shouldberetained.
Attention
Lossofdata
ThesecondsUPScanbeusedonlyforafewsecondsintheeventofapowerfailureinor
der,tosavepersistentdata.Thedatamustbesavedinthefast“persistentmode”
“SPDM_2PASS”,eventhoughthiscanleadtorealtimeviolations.Sufficientroutermemory
mustbeconfiguredforthestorageofthepersistentdata!
ThesecondUPSdoesnothavesufficientcapacityforbridgingpowerfailures.OnlytheCFastcardcanbe
usedfordatastorage,inviewofthefactthattheUPScapacityisinadequateforoperatingaharddisk.
AQuickShutdownisperformedautomaticallyintheeSUPS_WrPersistData_Shutdownmode(standard
setting)afterthestorageofthepersistentdata.
IneSUPS_WrPersistData_NoShutdownmodeonlythepersistentdataarestored.NoQuickShutdownis
executed.
IntheeSUPS_ImmediateShutdownmodeaQuickShutdownisexecutedimmediatelywithoutsavingdata.
CX51x0 21Version1.0
Commenti su questo manuale