CP9090-S100: Properties

UpsDelay

Sets / returns the time for the delay before the UPS switches off.

HRESULT UpsDelay(
        [out, retval] CP_UPSDELAY* pVal
);

HRESULT UpsDelay(
        [in] CP_UPSDELAY pVal
);

 

Parameters

pVal

Index with the delay time for the UPS to switch off.

 

                                                                                   Index                                                                      Delay in seconds
0 0
1 2
2 5
3 10
4 15
5 25
6 40
7 60
8 90
9 120
10 150
11 180
12 210
13 240
14 270
15 300

 

 

Example in VB syntax

Dim lUpsDelay as CP_UPSDELAY

CP9030W9x1.UpsDelay = CPUpsDelay_10
lUpsDelay = CP9030W9x1.UpsDelay 

 

 

Definition of the CP_UPSDELAY constants:

typedef 
enum CP_UPSDELAY
{
        CPUpsDelay_0 = 0,
        CPUpsDelay_2 = 0x1,
        CPUpsDelay_5 = 0x2,
        CPUpsDelay_10 = 0x3,
        CPUpsDelay_15 = 0x4,
        CPUpsDelay_25 = 0x5,
        CPUpsDelay_40 = 0x6,
        CPUpsDelay_60 = 0x7,
        CPUpsDelay_90 = 0x8,
        CPUpsDelay_120 = 0x9,
        CPUpsDelay_150 = 0xa,
        CPUpsDelay_180 = 0xb,
        CPUpsDelay_210 = 0xc,
        CPUpsDelay_240 = 0xd,
        CPUpsDelay_270 = 0xe,
        CPUpsDelay_300 = 0xf
} CP_UPSDELAY;