![background image](http://html1.mh-extra.com/html/amx/rms-3-0/rms-3-0_manual_2938987040.webp)
Custom Device Monitoring Programming
32
RMS NetLinx Programmer’s Guide
standard power channels and provide feedback to i!-ConnectLinx for system
power, this information will automatically be read by RMS.
See the RMS engine module definition for details about the module and its
parameters.
Example:
//This registers the dvRelay device under the name “Rack Power”
//- called in the online event for dvRelay
RMSRegisterDevice(dvRELAY,'Rack Power','AMX','NI-3000 Relay')
//This sets the parameters for the registered device - called in
//the online event for dvRelay
RMSRegisterDeviceIndexParam(dvRELAY,'Rack Power',
1,RMS_COMP_LESS_THAN,RMS_STAT_MAINTENANCE,
FALSE,0,
RMS_PARAM_SET,nRMSRackPowerRackPower,
'OFF|ON')
//This function is called from CHANNEL_EVENT [dvRELAY,0] (Relay
//on or off)
DEFINE_FUNCTION RMSSetRackPowerRackPower(INTEGER nValue)
LOCAL_VAR
CHAR bInit
{
IF (nRMSRackPowerRackPower <> nValue || bInit = FALSE)
RMSChangeIndexParam(dvRELAY,'Rack Power',nValue)
nRMSRackPowerRackPower = nValue
bInit = TRUE
}
DATA_EVENT [dvRELAY]
{
ONLINE:
{
RMSRegisterDevice(dvRELAY,'Rack Power','AMX','NI-3000
Relay')
RMSRegisterDeviceIndexParam(dvRELAY,'Rack Power',
1,RMS_COMP_LESS_THAN,RMS_STAT_MAINTENANCE,
FALSE,0,
RMS_PARAM_SET,nRMSRackPowerRackPower,
'OFF|ON')
}
OFFLINE:
RMSNetLinxDeviceOffline(dvRELAY)
}
CHANNEL_EVENT [dvRELAY,0]
{
// Channel On
Summary of Contents for RMS 3.0
Page 1: ...Software NetLinx Programmer s Guide RMS Resource Management Suite 3 0 ...
Page 4: ......
Page 10: ...Overview 2 RMS NetLinx Programmer s Guide ...
Page 12: ...System Requirements 4 RMS NetLinx Programmer s Guide ...
Page 22: ...Concepts 14 RMS NetLinx Programmer s Guide ...
Page 62: ...Custom Device Monitoring Programming 54 RMS NetLinx Programmer s Guide ...