Combining Devices, Levels, and Channels
84
NetLinx Programming Language Reference Guide
TP4 = 131
DEFINE_PROGRAM
(*Activate dynamic level combine*)
RELEASE[TP4,1]
{
COMBINE_LEVELS(VIRTUAL1,1,TP1,1,TP2,1,TP3,1)
}
(*Remove dynamic level combine*)
RELEASE[TP4,1]
{
UNCOMBINE_LEVELS(VIRTUAL1,1)
}
Combining and Un-combining Channels
Combining channels
COMBINE_CHANNELS connects a single virtual device-channel to one or more channels on another
device (or devices).
Stated another way,
COMBINE_CHANNELS combines a single virtual DEVCHAN or [DEV,CHAN] pair to
one or more
DEVCHANs or [DEV,CHAN] pairs.
Any element in a
DEVCHAN[ ] set combined appears to come from the virtual device-channel
representing the group, and output to the virtual device-channel is directed to all elements in the
DEVCHAN[] set.
COMBINE_CHANNELS (DEVCHAN VDC, DEVCHAN[ ] DCSets)
Parameters:
Un-combining channels
UNCOMBINE_CHANNELS reverses the effect of COMBINE_CHANNELS. All combines related to the
specified virtual device-channel are disabled.
UNCOMBINE_CHANNELS (DEVCHAN VDC)
Parameters:
.
UNCOMBINE_CHANNELS (VDC)
When using COMBINE_XXXX and UNCOMBINE_XXXX functions dynamically
based upon a button event, the combining and combining must be done on the
release of the button (the active event must be complete before a COMBINE_XXXX
or UNCOMBINE_XXXX function is invoked).
VDC Virtual device-channel that represents one device-channel combine group.
DCSets Device-channel array containing the device-channel pairs to combine. The VDC is
combined with each element in the device-channel array.
VDC The virtual device-channel passed to COMBINE_CHANNELS.