Beckhoff CX8180 Manual page 46

Embedded pc with rs232/rs485
Hide thumbs Also See for CX8180:
Table of Contents

Advertisement

Programming
In the eSUPS_CheckPowerStatus mode only a check is performed as to whether a power failure has
occurred. If this is the case, the function block only switches back to the PowerOK state after the expiry of
tRecoverTime (10s).
Inputs
VAR_INPUT
    sNetID          : T_AmsNetId:= ''; (* '' = local netid *)
    iPLCPort        : UINT; (* PLC Runtime System for writing persistent data *)
    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_Wr
PersistData_NoShutdown/eSUPS_CheckPowerStatus *)
END_VAR
Name
Type
sNetID
T_AmsNetId
iPLCPort
UINT
tTimeout
TIME
eUpsMode
E_S_UPS_Mode
ePersistentMode E_PersistentMode
tRecoverTime
TIME
Outputs
VAR_OUTPUT
    bPowerFailDetect  : BOOL; (* TRUE while powerfailure is detected *)
    eState            : E_S_UPS_State := eSUPS_PowerOK; (* current ups state *)
END_VAR
Name
Type
bPowerFailDetect
BOOL
 
eState
E_S_UPS_State
Global Variables
VAR_GLOBAL
   eGlobalSUpsState  :  E_S_UPS_State; (*current ups state*)
END_VAR
Name
Type
eGlobalSUpsStat
E_S_UPS_State
e
eState
E_S_UPS_State
46
Description
AmsNetID of the controller (type: T_AmsNetId)
Port number of the PLC runtime system (851 for the first PLC
runtime system, 852 for the second PLC runtime system, ...). If
you do not specify a port number, the function block then
automatically determines the port of the PLC runtime system.
Timeout for writing of the persistent data or the quick shutdown.
Defines whether persistent data are to be written and whether a
quick shutdown is to be executed. The default value is
eSUPS_WrPersistData_Shutdown, i.e. a quick shutdown is
executed automatically once the persistent data have been
saved. (Type: E_S_UPS_Mode)
Mode for the writing of the persistent data. Default value is
SPDM_2PASS.
Time after which the UPS reverts to the PowerOK status in the
case of UPS modes without shutdown. tRecoverTime must be
somewhat longer than the maximum holding time of the UPS in
order to ensure that the capacitors are fully charged.
Description
TRUE during power failure. FALSE if the supply voltage is
present.
Internal state of the function block (type: E_S_UPS_State)
Description
Internal state of the function block as global copy of
VAR_OUTPUT
For values see E_S_UPS_State
Version: 1.5
CX8180

Advertisement

Table of Contents
loading

Table of Contents