Installation
16
ALR-AMP-8 Alero 8 Zone Power Amplifier
NetLinx Programming Example: On Signal, OC and Thermal
Functions
The following NetLinx code example illustrates configuring the port (on an NI-3100 NetLinx Central Controller) to
properly monitor inputs from the On Signal, OC and Thermal functions:
DEFINE_DEVICE
dvIO = 5001:17:0 // I/O port on an NI-3100
DEFINE_EVENT
DATA_EVENT[dvIO]
{
ONLINE:
{
SEND_COMMAND dvIO,'SET INPUT 1 HIGH' //SENSE ACTIVE HIGH (See Tech Note 777 for
wiring instructions)
SEND_COMMAND dvIO,'SET INPUT 2 LOW' //SENSE ACTIVE LOW (DEFAULT)
SEND_COMMAND dvIO,'SET INPUT 3 LOW' //AKA "OPEN COLLECTOR"
}
}
/// USAGE EXAMPLE:
BUTTON_EVENT[dvIO,1]
{
PUSH:
{
SEND_STRING 0,'ALR-AMP8 IS ON'
}
RELEASE:
{
SEND_STRING 0,'ALR-AMP8 IS OFF'
}
}
BUTTON_EVENT[dvIO,2]
{
PUSH:
{
SEND_STRING 0,'!!!ALR-AMP8 OVERCURRENT!!!'
}
RELEASE:
{
SEND_STRING 0,'ALR-AMP8 OC STATE NORMAL'
}
}
BUTTON_EVENT[dvIO,3]
{
PUSH:
{
SEND_STRING 0,'!!!ALR-AMP8 THERMAL PROTECTION!!!'
}
RELEASE:
{
SEND_STRING 0,'ALR-AMP8 THERMAL STATE NORMAL'
}
}
/// ALTERNATE USAGE EXAMPLE:
DEFINE_PROGRAM
[dvTP,123] = [dvIO,1] // reflect the state of the amplifier on touch panel button 123
[dvTP,124] = [dvIO,2] // turn the button on when AMP8 is in Over Current Protection
[dvTP,125] = [dvIO,3] // turn the button on when AMP8 is in Thermal shutdown