beautypg.com

Return value, Portability, See also – Rockwell Automation 6182 SDK User Manual

Page 83: Hm_setmonitorwarninglevels, Syntax, Remarks

background image

RAC6182-Specific Extensions to the CE API

4–43

Publication 6182-UM002B-EN-P

Parameter

Description

plfLowerWarningLevel

Pointer to an application-allocated double-precision
floating point where the current lower limit value will
be written. The value represents volts or degrees
Celsius, depending on the specified parameter.

MONITOR_WARNING_LEVEL_UNDEFINED, a
macro defined in HardwareMonitorAPI.h, will be
written if the upper level bound has not been defined
and will not be used to determine if the monitor has
entered the warning state.

Return Value
Returns TRUE if the warning levels were successfully queried. Returns
FALSE on failure.

Portability
This function is specific to the RAC6182 hardware.

See Also
hm_SetMonitorWarningLevels

hm_SetMonitorWarningLevels

This function sets warning levels for monitored parameter. It is
prototyped in HardwareMonitorAPI.h.

Syntax

#include

#include

BOOL hm_SetMonitorWarningLevels (DWORD dwMonitorID, double

lfUpperWarningLevel, double lfLowerWarningLevel)

Remarks
This function sets upper and lower "warning levels" the parameter
specified with dwMonitorID. Upper and lower warning levels specify
the upper and lower bounds of the monitored parameter during normal
operation. If the parameter deviates from the specified operating bounds,
it will enter the "warning state".

The power fail monitor is a 12V supply monitor, but separate from the
regular 12V supply monitor. It is special in that it is used not merely to
trigger a warning, but also to initiate a system shutdown in case the 12V
line drops below the warning level. The power fail monitor has only a
lower warning level. If setting levels for power fail, the macro
MONITOR_WARNING_LEVEL_UNDEFINED should be used to
evaluate lfUpperWarningLevel.

This manual is related to the following products: