BECKHOFF CX1100-09xx UPS User Manual
Page 39
Commissioning
Embedded PC
37
VAR
MAIN.UPS.Ii24VState AT %IB0
: BYTE;
MAIN.US.IiChargeState AT %IB1
: USINT;
MAIN.UPS.QiControl AT %QB0
: BYTE;
MAIN.UPS.QiDipControl AT %QB1
: USINT;
MAIN.UPS.IbPowerFault AT %I
: BOOL;
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;
"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.
Note
The function block gives the PLC program full control over the behaviour of the UPS.
Depending on the operating mode, the developer must see to it that the system is in the
desired state when switched off, and/or that the system behaves correctly when it restarts.
Problems that can occur include, for instance:
The system has halted, the UPS however provides voltage again -> the system
remains inert, even though a power supply is present.
The system starts again, but the UPS is still in the discharge phase, and does not
switch off until fully discharged -> the system starts up, but then is powered down
without warning.