beautypg.com

Var_output, Var_global – BECKHOFF CX50x0 User Manual

Page 22

background image

Notes on the documentation

20

CX50x0 - Hardware Documentation

The tRecoverTime needs to be a little bit bigger than the maximum holding time of the UPS,
since the UPS will shut off even if the power supply is restored.

VAR_OUTPUT

VAR_OUTPUT

bPowerFailDetect : BOOL; (* TRUE while powerfailure is detected *)

eState

: E_S_UPS_State; (* current ups state *)

END_VAR

bPowerFailDetect

: TRUE if a power failure is detected; FALSE if the power supply is sufficiant.

eState

: internal state of the function block, for the values see E_S_UPS_State.

VAR_GLOBAL

VAR_GLOBAL

eGlobalSUpsState : E_S_UPS_State; (* current ups state *)

END_VAR

eGlobalUpsState

: internal state of the function block as a global copy of eState, for the values see

E_S_UPS_State.