Controlling the ups from the plc – BECKHOFF CX1100-09xx UPS User Manual
Page 35
Commissioning
Embedded PC
33
Controlling the UPS from the PLC
It is possible to control the UPS module from the PLC. There are two
TwinCAT blocks that permit this control.
This allows the PLC program to deal with a power failure. It is, however, first necessary to make some settings in the
TwinCAT System Manager, so that the UPS can be properly included. The UPS module is integrated in the TwinCAT
System Manager, as described under Commissioning. It is necessary, however, for a few important settings to be
made so that the PLC can obtain control. The controller must be switched off in the System Manager. It is also
necessary for the hardware inputs and outputs of the UPS to be linked to the corresponding variables in the PLC
program. The inputs and outputs must be declared in the program as GLOBAL variables. (Further details are given
below.) First the settings of the System Manager are described.
Necessary System Manager settings:
-
Everything must be set to OFF! In other words, on the CX1190 UPS tab, neither "Enable
Automatic Shutdown" nor "No Abort" may be activated.
-
In addition, both inputs (24V State and Charge State) and both outputs (Control and DIP Control)
of the System Manager must be linked in the PLC to the UPS block in the corresponding
variables.
The illustration shows the UPS being incorporated in the System Manager. The inputs and outputs of the UPS will be
found both in the process image and in the hardware image in the hierarchy browser.
The signals are associated by a double-click. This association is required in order for the function block in the PLC
program to operate properly. The PLC process image will, however, not be available until after the program has been
compiled. This means that it must be linked into a PLC program before being linked with the UPS control block.