BECKHOFF CX1100-09xx UPS User Manual

Page 37

Advertising
background image

Commissioning

Embedded PC

35

displayed. The signals are inserted into the "Variable_configuration" file through the "Insert -> All instances" menu
item. It is possible to enter the addresses for the signals here. (E.g. MAIN.UPS.Li24VState AT %IB0 : BYTE for
memory address 0).

VAR

MAIN.UPS.Ii24VState AT %IB0

: BYTE;

MAIN.UPS.IiChargeState AT %IB1

: BYTE;

MAIN.UPS.QiControl AT %QB0

: BYTE;

MAIN.UPS.QiDipControl AT %QB1

: BYTE;

END_VAR

The block supplies a few status signals for evaluating the program environment. These can then be used
for control, e.g. saving the process data in NOVRAM, or for setting defined states or positions for axes. In
detail, the block supplies the following signals:

bPowerFailure : BOOL;

bShutdownActive : BOOL;

bUpsReady : BOOL;

b24VInOK : BOOL;

bHolding : BOOL;

tTimeUntilShutdown : TIME;

eUpsState : E_UPS_STATE

"bPowerFailure" returns "TRUE" when a failure in the power supply voltage is detected . The signal goes back to
"FALSE" when the input voltage returns.

"bShutdownActive" indicates that a stop or shutdown is being executed.

"bUpsReady" indicates that the UPS is providing the output voltage.

"b24VInOK" reports that the UPS is being supplied with 24 V input voltage.

"bHolding" returns "TRUE" when a failure in the supply voltage has been detected, and the retention time has not yet
elapsed.

"tTimeUntilShutdown" indicates the retention time remaining until shutdown.

"eUpsState" displays the status of the UPS [UNDEF | CHARGING | CHARGED | DISCHARGE |
DISCHARGE_RESTART | OUTPUT_OFF | OVERLOAD

Note

The function block bridges short supply voltage drop-outs without generating a shutdown,
while longer supply failures cause TwinCAT to be stopped and the operating system to be
shut down.

The CX10x0 is switched off by the UPS when it has reached it is discharge limit,
even if the current returns during the shutdown.

The CX10x0 is switched on again by the UPS once the UPS is fully charged.

If it is necessary for the UPS to behave in a different way, e.g. with a longer retention time, resetting the bus, or
definitely restarting the PLC even when the power failure was short, then the FB_CX1000UPSHANDLING function
block from TC CX1000System.lib can be used as an alternative. This library must, however, be integrated through
the library administrator. If this has been done, the block is available as a function block. It is instanced as such in the
declarations part of the program.

PROGRAM MAIN_UPS

Advertising