Power Handling PDF
Power Handling PDF
Power Handling PDF
iSeries
ERserver
iSeries
Copyright International Business Machines Corporation 1998, 2002. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
Contents
Part 1. Control server shutdown using a power-handling program . . . . . . . . 1
Chapter 1. Code disclaimer information . . . . . . . . . . . . . . . . . . . . . . . . 3 Chapter 2. Enabling a power-handling program to control system activity during a power interruption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Chapter 3. Implementing a power-handling program . . . . . . . . . . . . . . . . . . . 7 Chapter 4. Writing a power-handling program . . . . . . . . . . . . . . . . . . . . . 9 Chapter 5. Example: Power-handling programs . . . . . . . . . . . . . . . . . . . . 11 Example: Power-handling CL program . . . . . . . . . . . . . . . . . . . . . . . . . 11 Example: Testing a power-handling CL program . . . . . . . . . . . . . . . . . . . . . 14 Chapter 6. Controlled shutdown concepts . . . . . . . . . . . . . . Battery backup unit . . . . . . . . . . . . . . . . . . . . . . . . Handling uninterruptible power supply conditions when no power-handling program IPL considerations for uninterruptible power supply . . . . . . . . . . . . Power loss controlled shutdown . . . . . . . . . . . . . . . . . . . Power restore IPL system value (QPWRRSTIPL) . . . . . . . . . . . . . Uninterruptible power supply . . . . . . . . . . . . . . . . . . . . Uninterruptible power supply delay time system value (QUPSDLYTIM) . . . . . Explanation for QUPSDLYTIM values and actions flow chart . . . . . . . Uninterruptible Power Supply Message queue system value (QUPSMSGQ) . . . Uninterruptible power supply messages . . . . . . . . . . . . . . . . Weak battery condition signal from uninterruptible power supply . . . . . . . Explanation of illustration for time line of QUPSDLYTIM function . . . . . . . . . . . . exists. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 17 17 17 18 18 18 19 21 22 22 23 24
iii
iv
Chapter 2. Enabling a power-handling program to control system activity during a power interruption
System software support is essentially the same for both the battery feature and the uninterruptible power supply attachment. In some environments you may want to perform different actions when the uninterruptible power supply begins supplying power to the system or when power is fluctuating. A power-handling program can use any of the following methods to handle these situations: v Sending specific messages to interactive users v Ending batch jobs and subsystems in preparation for powering down v Dynamically changing the system values that control uninterruptible power supply processing v Issuing the PWRDWNSYS command to power down the system To specify that you have power handling programs, change the QUPSMSGQ system value to the name of a queue you have created. The system will send the same messages to both QSYSOPR and the queue you specified. Change the QUPSDLYTIM system value to *NOMAX. The program you use to handle the message queue must be active and must allocate the queue. If a program has not allocated the queue that is specified in QUPSMSGQ, the system will assume that no power handling program exists.
2. A power-handling program requires exclusive use of a message queue. For this reason, you should create a unique message queue and exclude its use from all other users and general system use, as follows:
CRTMSGQ MSGQ(UPSLIB/UPSMSGQ) AUT(*EXCLUDE)
3. Create the CL power-handling program and exclude its use from all other users, as follows:
CRTCLPGM PGM(UPSLIB/UPSPGM) AUT(*EXCLUDE)
4. Create the job description for the power-handling program you want started automatically whenever the controlling subsystem is started.
CRTJOBD JOBD(UPSLIB/UPSJOBD) JOBQ(QSYS/QCTL2) JOBPTY(1) RQSDTA(CALL UPSLIB/UPSPGM) AUT(*EXCLUDE) USER(xxxxx)
Note: You must provide a user profile to use the job description as an auto-start job. 5. Create an alternative controlling subsystem description by making a copy of the current controlling subsystem description, as follows:
CRTDUPOBJ OBJ(QCTL) FROMLIB(QSYS) OBJTYPE(*SBSD) TOLIB(QSYS) NEWOBJ(QCTL2)
6. Modify your startup program to start all subsystems. You will need to include a check to see if system value QCTLSBSD is equal to QCTL2. See system value QSTRUPPGM for the name and library. If you do not modify the startup program it will not check for QCTL2 in QSYS or QGPL and the startup program will end without starting the rest of your subsystems. 7. Add the autostart job entry to the alternative controlling subsystem description, as follows:
ADDAJE SBSD(QSYS/QCTL2) JOB(QSYS/QCTL2) JOBD(UPSLIB/UPSJOBD)
8. Change the controlling subsystem system value to use the alternative controlling subsystem description, as follows:
CHGSYSVAL SYSVAL(QCTLSBSD) VALUE(QCTL2)
9. Change the system values to allow the program to handle a power outage, as follows:
CHGSYSVAL SYSVAL(QUPSMSGQ) VALUE(UPSMSGQ UPSLIB) CHGSYSVAL SYSVAL(QUPSDLYTIM) VALUE(*NOMAX)
10. Perform an IPL of the system to have the new controlling subsystem description take effect, as follows:
PWRDWNSYS OPTION(*IMMED) RESTART(*YES)
When a message arrives, the critical messages to process are: v CPF1816: System utility power failed at &1; (this message applies to the battery feature and full power supply) v CPF1817: System power restored at &1; (this message applies to the battery feature and full power supply) v CPI0994: System power is restored (this message applies to the limited uninterruptible power supply) v CPI0963: System on auxiliary power (this message applies if system power fails during the IPL) You can choose to ignore the other messages. Your program can handle a brief power interruption without doing any unique processing. For example, when the CPF1816 message arrives, you can set a switch in your program that indicates that the message occurred. The program could then perform a RCVMSG with WAIT(10) to cause a time-out in 10 seconds. If the CPF1817 message is received before the time-out occurs, you can reset the switch and perform no other action. Your program can prepare for a normal power down if power is not restored after a brief time period. For example, if you have remote work stations that are still active, you may want to send them a message requesting they sign off quickly. You may want to issue ENDSBS OPTION(*CNTRLD) to prevent new work stations from signing on or new batch work from beginning. If you have batch jobs running, you may want to end them with the following command:
ENDJOB OPTION(*CNTRLD)
This sets an indicator to end the job. Some higher level languages and the control language allow you to test within a program to see if a controlled ENDJOB was specified. If the program does not end itself, the default on ENDJOB (30 seconds) is used. You can set a second timer in your program, such as RCVMSG WAIT(120). If utility power has not been restored, you can issue the PWRDWNSYS OPTION(*IMMED) command. The wait time should be specified based on your battery time and the time that is required for a power-down. If you name a message queue for the QUPSMSGQ system value and *NOMAX for QUPSDLYTIM, the following conditions apply: v The message queue you specify must be allocated by a program when the CPF1816 message occurs. v If the message queue you specify is a work station message queue, it must be in a break or notify mode. If not, the system assumes that no power handling program exists, and the system will be powered down. Note: When the system has been placed in a restricted state (for example, ENDSBS *ALL), your uninterruptible power supply handling program will no longer be active. For this reason, it is necessary to prepare an alternate method of dealing with your uninterruptible power supply and any possible power interruptions that may occur while your system is in a restricted state.
For example, when performing a SAVSYS (Save System) or RCLSTG (Reclaim Storage), your uninterruptible power supply program will no longer be active once all subsystems have been terminated. Only a single workstation job will be active. You can perform one of the following actions as an alternative: 1. After all subsystems have been ended, from the command line change the mode for the message queue specified in system value QUPSMSGQ to *BREAK. This will cause all uninterruptible power supply messages to be sent as break messages to the user signed on to that work station. With this method the user will manually decide what to do should a power failure occur. 2. Change the system value QUPSDLYTIM to some value other than *NOMAX (for example, the number of minutes you wish the uninterruptible power supply to ride out the power failure). This method will prevent the system from performing an immediate quick power down. However, if a power failure occurs, a quick power down will be performed if the power failure lasts longer than the value specified for the system value QUPSDLYTIM. 3. Modify your existing uninterruptible power supply handling program for use as a BREAK HANDLING program which may be used while the system is in a restricted state. This can be done by creating a second version of your uninterruptible power supply program that does not allocate the message queue specified in system value QUPSMSGQ. (In other words, do not use the ALCOBJ command.) To utilize this program while in a restricted state, prior to starting a dedicated function such as SAVSYS, enter the command:
CHGMSGQ MSGQ(LIB/MSGQ) DLVRY(*BREAK) PGM(LIB/PGM)
where (LIB/MSGQ) is the name the message queue specified in system value QUPSMSGQ, and (PGM/LIB) is the name of your modified uninterruptible power supply handling program. Now, should a power failure occur, the power failure message will be handled by the break handling program, even while a function such as SAVSYS is running. To deactivate the break handling program either have the user sign off or enter:
CHGMSGQ MSGQ(LIB/MSGQ) DLVRY(*HOLD) PGM(*DSPMSG)
Once you have deactivated the break handling program, you should immediately start your subsystems and your normal uninterruptible power supply handling program. Examples Example: Power-handling CL program on page 11 Example: Testing a power-handling CL program on page 14
10
11
4. If the message that is received by the RCVMSG command is CPF1816 (system utility power failed), the program checks to see if this is simply a short power failure. The program runs a second RCVMSG command with a value of ten seconds for the WAIT parameter (you must decide how many seconds is adequate for your site). If the message that is received by the RCVMSG command within the specified ten seconds is CPF1817 (system utility power restored), then power was restored. The program returns to label A and starts the cycle again. If the ten second limit is reached and no message is received, then the power failure is longer than ten seconds and additional steps are necessary. At this point, you can call a user-written program that performs the following actions: v The program uses the HLDJOBQ command to hold certain long running batch jobs v The program notifies unaffected remote users v The program begins ending jobs and subsystems in an orderly manner 5. At label B, in the example power-handling program, the program attempts to wait-out the power failure. The program retrieves the present time and places this information into a CL variable that is named &START. The present time is used to determine how much uninterruptible power supply time is left. A third RCVMSG command runs, and a CL variable that is named &WAIT (that was changed earlier in the program) determines the value for the WAIT parameter. The CL variable &WAIT is the amount of reserve power the uninterruptible power supply can provide. The value for the &WAIT variable at label A should be adjusted to the amount of reserve power that the uninterruptible power supply can provide. (The amount of reserve power is measured in seconds.) In the example program, the value of the &WAIT variable is set to 1200 seconds (20 minutes). If message CPF1817 (System utility power restored) is received during that time, then power has been restored, and another program can be called to restart normal system operations. The program then returns to label A and starts the cycle again. If message CPF1817 is not sent after 1200 seconds, then RCVMSG returns a blank message ID (not equal to CPF1817). This indicates that power has not been restored and an immediate system power down is started. If a message other than CPF1817 is received during this 1200 second wait, the following actions occur: a. The program retrieves the present time, and calculates how much of the 1200 second wait period has elapsed. b. The program subtracts the difference, and changes the CL variable &WAIT to reflect that amount. c. The program returns to label B to use the remaining power that is provided by the uninterruptible power supply. This part of the program checks to see if a date change occurs, which is necessary should the power outage occur on a different date.
12
SEQNBR*...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ... 1.00 PGM 2.00 DCL VAR(&UPSMSGQ) TYPE(*CHAR) LEN(20) 3.00 DCL VAR(&LIB) TYPE(*CHAR) LEN(20) 4.00 DCL VAR(&MSGQ) TYPE(*CHAR) LEN(20) 5.00 DCL VAR(&MSGID) TYPE(*CHAR) LEN(7) 6.00 DCL VAR(&ENDSTS) TYPE(*CHAR) LEN(1) 7.00 DCL VAR(&WAIT) TYPE(*DEC) LEN(6) 8.00 DCL VAR(&HOUR) TYPE(*DEC) LEN(6) 9.00 DCL VAR(&MIN) TYPE(*DEC) LEN(6) 10.00 DCL VAR(&SEC) TYPE(*DEC) LEN(6) 11.00 DCL VAR(&TIME) TYPE(*CHAR) LEN(6) 12.00 DCL VAR(&START) TYPE(*DEC) LEN(6) 13.00 DCL VAR(&END) TYPE(*DEC) LEN(6) 14.00 DCL VAR(&RESULT) TYPE(*DEC) LEN(6) 15.00 16.00 RTVSYSVAL SYSVAL(QUPSMSGQ) RTNVAR(&UPSMSGQ) 17.00 CHGVAR VAR(&MSGQ) VALUE(%SST(&UPSMSGQ 1 10)) 18.00 CHGVAR VAR(&LIB) VALUE(%SST(&UPSMSGQ 11 10)) 19.00 DLTMSGQ MSGQ(&LIB/&MSGQ) 20.00 MONMSG MSGID(CPF2105) /* Message queue not found. */ 21.00 CRTMSGQ MSGQ(&LIB/&MSGQ) TEXT(UPS Power handling + 22.00 program message queue) AUT(*EXCLUDE) 23.00 ALCOBJ OBJ((&LIB/&MSGQ *MSGQ *EXCL)) 24.00 25.00 A: RCVMSG MSGQ(&LIB/&MSGQ) WAIT(600) RMV(*YES) + 26.00 MSGID(&MSGID) 27.00 IF COND(&MSGID *NE CPF1816) THEN(DO) 28.00 RTVJOBA ENDSTS(&ENDSTS) 29.00 IF COND(&ENDSTS *EQ 1) THEN(GOTO CMDLBL(ENDPGM)) 30.00 GOTO CMDLBL(A) 31.00 ENDDO 32.00 33.00 /* Check to see if this is a short power outage. */ 34.00 IF COND(&MSGID *EQ CPF1816) THEN(DO) 35.00 RCVMSG MSGQ(&LIB/&MSGQ); WAIT(10) RMV(*YES) + 36.00 MSGID(&MSGID); /* Wait ten seconds) 37.00 IF COND(&MSGID *EQ CPF1817) THEN(GOTO CMDLBL(A)) 38.00 ENDDO 39.00 40.00 /* Power outage was longer than 10 seconds. */ 41.00 CALL PGM(LIB/PGM) /* User program that prepares + 42.00 system for possible shutdown. */ 43.00
13
44.00 45.00 46.00 47.00 48.00 49.00 50.00 51.00 52.00 53.00 54.00 55.00 56.00 57.00 58.00 59.00 60.00 61.00 62.00 63.00 64.00 65.00 66.00 67.00 68.00 69.00 70.00 71.00 72.00 74.00 75.00 76.00 77.00 78.00 79.00 80.00 81.00
/* Check to CHGVAR B: RTVSYSVAL CHGVAR CHGVAR CHGVAR CHGVAR RCVMSG IF CALL GOTO ENDDO IF RTVSYSVAL CHGVAR CHGVAR CHGVAR CHGVAR CHGVAR IF IF CHGVAR GOTO ENDDO ENDPGM:
see if this is a long power outage. */ VAR(&WAIT); VALUE(01200) /* 20 minutes. */ SYSVAL(QTIME) RTNVAR(&TIME); VAR(&HOUR); VALUE(%SST(&TIME 1 2)) VAR(&MIN); VALUE(%SST(&TIME 3 2)) VAR(&SEC); VALUE(%SST(&TIME 5 2)) VAR(&START); VALUE((&SEC); + (&MIN * 60) + + (&HOUR * 3600)) MSGQ(&LIB/&MSGQ); WAIT(&WAIT); RMV(*YES) + MSGID(&MSGID); COND(&MSGID *EQ CPF1817) THEN(DO) PGM(LIB/PGM) /* User program that restarts + system operations. */ CMDLBL(A) COND(&MSGID *NE CPF1817) THEN(DO) SYSVAL(QTIME) RTNVAR(&TIME) VAR(&HOUR) VALUE(%SST(&TIME 1 2)) VAR(&MIN) VALUE(%SST(&TIME 3 2)) VAR(&SEC) VALUE(%SST(&TIME 5 2)) VAR(&END) VALUE((&SEC) + (&MIN * 60) + + (&HOUR * 3600)) VAR(&RESULT); VALUE(&END - &START) COND(&RESULT < 0) THEN(CHGVAR VAR(&RESULT) + VALUE(86400 + &RESULT)) /* Check for + change of day. 86400 = 24 hours. */ COND(&RESULT *GE &WAIT) THEN(PWRDWNSYS + OPTION(*IMMED) /* UPS battery reserve has + expired. */ VAR(&WAIT) VALUE(&WAIT - &RESULT) /* UPS + battery reserve has not expired. */ CMDLBL(B) OBJ((&LIB/&MSGQ *MSGQ *EXCL))
DLCOBJ ENDPGM
14
SEQNBR*...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7.... 1.00 PGM 2.00 DLYJOB DLY(120) /* Wait for 2 minutes. */ 3.00 SNDPGMMSG MSGID(CPF1816) MSGF(QCPFMSG) + 4.00 TOMSGQ(UPSLIB/UPSMSGQ) /* Power failure 5.00 message. */ 6.00 DLYJOB DLY(5) /* Wait for 5 seconds. */ 7.00 SNDPGMMSG MSGID(CPF1817) MSGF(QCPFMSG) + 8.00 TOMSGQ(UPSLIB/UPSMSGQ) /* Power restored 9.00 message. */ 10.00 ENDPGM
15
16
17
When an abnormal IPL occurs, the OS/400 program performs additional recovery functions. In an attended IPL, you can control some of these functions. In an unattended IPL that is caused by the Power restore IPL system value (QPWRRSTIPL) or a timed IPL, the system can only use the values that are currently set. If the Power Down System (PWRDWNSYS) command is run while power is supplied by the Battery Backup Unit (BBU) or uninterruptible power supply, the system delays writing any job logs until the next IPL. The system handles this type of PWRDWNSYS so that the amount of processing is minimized. The system does not perform an IPL while operating on the BBU. You can perform an IPL on the system if utility power is off and the system is operating on an uninterruptible power supply. This does not apply for a timed or remote IPL. Only a manually initiated IPL is allowed when utility power is interrupted. For information about uninterruptible power supply messages, see Uninterruptible power supply messages on page 22.
18
An uninterruptible power supply supplies power to the iSeries server and all associated DASD controllers and devices during a utility power failure. The runtime of the uninterruptible power supply should be sized appropriately for a power loss controlled shutdown. Three system values affect an uninterruptible power supply. These system values define the action the system takes in response to a change in the power supply signal when an uninterruptible power supply is attached: QUPSMSGO QUPSDLYTIM QPSRRSTIPL
19
The default value for QUPSDLYTIM is *CALC. Leaving QUPSDLYTIM set to *CALC may defeat the purpose of having an uninterruptible power supply. *BASIC and *CALC provide the same function in systems that are running V3R6 or later releases of OS/400. If QUPSDLYTIM is set to *BASIC or *CALC, the system will perform a controlled shutdown after a fixed interval delay of 200 seconds. If you have an uninterruptible power supply, you can specify a numeric value. See Determining the Value of QUPSDLYTIM. Determining the Value of QUPSDLYTIM To determine the value of QUPSDLYTIM you need to know the following: v The hold-up time of your uninterruptible power supply at the given load (the battery-rated time). v The amount of time it takes your system to save main storage and power down. Available Battery Runtime The available battery runtime is a dynamic variable. Evaluate your systems available battery with these questions: v Has the power been fluctuating?
20
v Has the battery been previously discharged? v Is the battery fully charged? The actual battery runtime is a function of capacity. Even if the battery is fully charged, it may not have 100% capacity. A typical battery will lose 20% to 50% of its rated capacity in 4 to 5 years, depending on ambient room temperatures. Elevated operating temperatures tend to increase the loss of capacity. The actual battery runtime is also a function of the discharge load. The more loads the UPS serves the less time it can sustain them. When the battery on the system falls below a specific level of charge, the UPS will issue a weak battery condition signal. The Weak battery condition signal from uninterruptible power supply on page 23 affects the shutdown mechanisms. The time it takes to save main storage and power-down is not an exact number. Save time depends on the number of changes in main store that have not been written to disk. The number of disk arms available is also a factor; the more disk arms, the faster the system can write main storage to disk. The system power-down will also depend on the number of jobs and the average amount of time it takes to end them. Usually a job will be close to an instruction boundary; however, some instructions are long running. The following formula shows a worst case scenario in estimating the number of minutes it will take to shut down a system:
((0.0554*(MS size in MB))/(# of disk arms)) + 1.6 = # of minutes
Refer to the following table for an estimate of time required to write main storage to disk on your particular system. The typical amount of time required to shut down a system will usually be a small percentage of this value.
Table 1. Time needed in minutes to write main storage to disk Arms 2 4 8 16 32 64 128 256 512 1024 32MB 2.5 2.0 1.8 1.7 1.6 64MB 3.4 2.5 2.0 1.8 1.7 1.6 128MB 256MB 512MB 1GB 5.1 3.4 2.5 2.0 1.8 1.7 1.6 8.7 5.1 3.4 2.5 2.0 1.8 1.7 1.6 15.8 8.7 5.1 3.4 2.5 2.0 1.8 1.7 1.6 30.0 15.8 8.7 5.1 3.4 2.5 2.0 1.8 1.7 1.6 2GB 58.4 30.0 15.8 8.7 5.1 3.4 2.5 2.0 1.8 1.7 4GB 115.1 58.4 30.0 15.8 8.7 5.1 3.4 2.5 2.0 1.8 8GB 228.7 115.1 58.4 30.0 15.8 8.7 5.1 3.4 2.5 2.0 228.7 115.1 58.4 30.0 15.8 8.7 5.1 3.4 2.5 228.7 115.1 58.4 30.0 15.8 8.7 5.1 3.4 228.7 115.1 58.4 30.0 15.8 8.7 5.1 228.7 115.1 58.4 30.0 15.8 8.7 16GB 32GB 64GB 128GB
Assumes all pages in main storage have been modified and changes have not yet been written to disk. Proportionately less time is required if fewer pages need to be written to disk.
21
The second box on the top is labeled Utility failure and UPS operating correctly. An arrow from this box points to another box that is labeled QUPSDLYTIM SETTING. This box shows the three settings for the QUPSDLYTIM setting, which are *NOMAX, numeric value, and *CALC or *BASIC, respectively. If *NOMAX is selected, an arrow points to another box that is labeled Return. If numeric value is selected, an arrow from the QUPSDLYTIM SETTING box points to another box that is labeled User defined delay. Another arrow from the User defined delay box points to a box that is labeled Shutdown. If *CALC or *BASIC is selected, an arrow from the QUPSDLYTIM SETTING box points to another box that is labeled 200 second delay. The 200 second delay box points to the box that is labeled Shutdown. The third box is labeled Utility failure and UPS battery low. This box points to the box that is labeled Shutdown.
22
Message ID CPI0964
Additional Information The external uninterruptible power supply (UPS) or the internal battery indicates a weak-battery condition. If utility power fails during this condition, the system may begin an immediate power down. See your uninterruptible power supply manual for more information. There may be a failure of the battery or the battery charger for the battery backup feature in the system unit. Contact your service representative. There may be a failure of the battery or the battery charger for the battery backup feature in the expansion unit. Contact your service representative.
CPI0965
CPI0966
CPI0973
Weak battery condition no longer exists. The weak-battery condition for the external uninterruptible power supply or the internal battery no longer exists. See your UPS manual. UPS has been bypassed. If a utility power failure occurs, the uninterruptible power supply cannot supply system power. The system will end abnormally. The uninterruptible power supply (UPS) is no longer bypassed. Unable to send &1; message to message queue &2; in library &3; specified in QUPSMSGQ system value. Automatic IPL after utility power restored, specified by system value QPWRRSTIPL, was disabled for one of the following reasons: v Utility power failed and the battery weak condition was detected during the IPL. v Utility power failed during the IPL and the uninterruptible power supply delay time specified in system value QUPSDLYTIM was exceeded before the IPL complete.
CPI0974
CPI0975 CPI0976
CPI0981
CPI0994
The system power switched to the utility source at &1; The utility power failed for &2; seconds. During this time the system was not doing any application processing. If the utility power continues to fail, power down the system (PWRDWNSYS command).
23
v The utility fail signal is active. The controlled shutdown occurs immediately. If the system is running on utility power and the uninterruptible power supply sends a weak battery signal, the system remains up and posts a CPIO964 message. For more information about this message, see Uninterruptible power supply messages on page 22. However, the system initiates a shutdown mechanism immediately under this condition if utility power is lost. A typical factory-preset time for an UPS to send a weak battery signal is with approximately two minutes of runtime remaining. Some UPS models have an adjustable setting for this time. Ideally, you would want to set it for the amount of time it would take for your system to perform a power loss controlled shutdown. Do not assume that the factory preset time on the UPS is sufficient for a normal shutdown of your system. Calculate the amount of time necessary to perform a power loss controlled shutdown and use an appropriate value for QUPSDLYTIM and adjust the time for weak battery signal on the UPS (if adjustable). The figure shows the time progression of the QUPSDLYTIM function, from left to right.
24
Printed in U.S.A.