Parameterizing the SITOP UPS1600
6.2 Switching off the UPS by a user program when the power fails
SITOP UPS1600 under STEP 7 V5
Getting Started,
29
6.2
Switching off the UPS by a user program when the power fails
To switch off the UPS when the power fails, Siemens provides the FB160 function block in
the Internet under address (
http://support.automation/siemens.com/WW/view/en/78817848
Content of the code block package
Code block
Name
Description
FB160
UPS1600
Function block for program-controlled shutdown of the
UPS1600
DB160
UPS160_iDB
Instance data block of the FB160
DB161
UPS1600_Infos
The data block contains all parameters of the UPS1600,
which are displayed within the HMI screen block.
FB160 function description
The FB160 function block cyclically monitors the operating mode of the UPS1600.
The UPS goes into the buffer mode:
●
Initially, within the FB160 function block, a timer is started with a time duration of 10
seconds. This prevents that a system is brought into the safe state, even for a short
voltage dip / power failure.
●
If the UPS1600 is still in the buffer mode after the timer has expired, FB160 parameter
"UPS_ready_for_reset" parameter is set from "FALSE" to "TRUE".
In the rest of the program execution, this parameter must be used to set all system
sections into a safe state (maintenance setting).
●
As soon as the safe state of the system has been established, parameter
"UPS_execute_reset" must be set from "FALSE" to "TRUE" using a signal from the
program execution.
Function block FB160 then sends a command to the UPS1600, which in turn shuts itself
off.
Notes regarding the function
●
If the UPS1600 switches back into normal operation while the timer is running, parameter
"UPS_ready_for_reset" is not set. The timer is reset again.
●
After parameter "UPS_execute_reset" has been set, the rest of the program sequence
must be executed by function block FB160 until the UPS1600 is shut down.