Notes on the documentation
CX50x0 - Hardware Documentation
19
FUNCTION_BLOCK FB_S_UPS
VAR_INPUT
VAR_INPUT
sNetID : T_AmsNetId := ''; (* '' = local netid *)
iPLCPort : UINT := AMSPORT_R0_PLC_RTS1; (* 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 PC.
iPLCPort
: Port number of the PLC runtime system (AMSPORT_R0_PLC_RTS1 = 801,
AMSPORT_R0_PLC_RTS2 = 811, AMSPORT_R0_PLC_RTS3 = 821, AMSPORT_R0_PLC_RTS4 = 831).
iUPSPort
: Port number for reading the UPS-State (default value is 16#4A8).
tTimeout
: Timeout for the execution of the QuickShutdown.
eUpsMode
: eUpsMode defines, if persistent data need to be written and if a QuickShutdown needs to be
executed.
The default value is eSUPS_WrPersistData_Shutdown, means with writing of the persistent
data and then a QuickShutdown. See E_S_UPS_Mode.
ePersistentMode
: Mode for the writing of the persistent data. Default value is SPDM_2PASS.
tRecoverTime
: Time which will be waited after a power failure (in case of UPS modes without shutdown) to
go back to the status PowerOK.
Содержание CX50 0 Series
Страница 1: ...CX50x0 Hardware Documentation Version 1 3 Datum 2011 05 02...
Страница 2: ......
Страница 29: ...Notes on the documentation CX50x0 Hardware Documentation 27 Rear view...