1-second UPS (persistent data)
CX51x0
68
Version: 1.9
tTimeout
: Timeout for the execution of the quick shutdown.
eUpsMode
: The eUpsMode defines whether persistent data are to be written and whether a quick shutdown
is to be performed. Standard value is eSUPS_WrPersistData_Shutdown, i.e. with writing of the persistent
data and then quick shutdown. (Type:
E_S_UPS_Mode [
}
69]
)
ePersistentMode
: Mode for the writing of the persistent data. Standard value is SPDM_2PASS.
tRecoverTime
: Time after which the UPS reverts to the PowerOK status in the case of UPS modes without
shutdown. The tRecoverTime must be somewhat longer than the maximum holding time of the UPS, since
the UPS switches off even when the voltage returns
VAR_OUTPUT
VAR_OUTPUT
bPowerFailDetect : BOOL; (* TRUE while powerfailure is detected *)
eState : E_S_UPS_State; (* 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 [
}
69]
)
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 [
}
69]
.
Development environ-
ment
Target platform
Hardware
PLC libraries to include
TwinCAT v2.11 R3 B2246
TwinCAT v3.1 B4016
CX51x0
1-Second UPS
For TwinCAT 2:
TcSUPS_51x0.lib
For TwinCAT 3: Tc2_SUPS
All manuals and user guides at all-guides.com