Combining and Uncombining Devices
The NetLinx functions COMBINE_DEVICES and UNCOMBINE_DEVICES are used within events and mainline code to dynamically change the devices combined together. When devices are combined the combine list and DEV set lists are reevaluated and updated during run time.
- COMBINE_DEVICES and UNCOMBINE_DEVICES are used as stand-alone statements in an event, mainline or in assignment statements.
- COMBINE_DEVICES and UNCOMBINE_DEVICES will return
a value of
0or-1, depending on the success or failure of the operation.
The first device in a COMBINE_DEVICES statement should be a virtual device. The devices, listed after the virtual device, are either a list of individual device numbers, DEV sets, or any combination of devices and DEV sets.
The UNCOMBINE_DEVICES statement requires only the first device in the COMBINE_DEVICES list, which should be a virtual device.
The format for COMBINE_DEVICES and UNCOMBINE_DEVICES is:
Devices combined with COMBINE_DEVICES respond like devices combined using the DEFINE_COMBINE section. The central controller recognizes any input from the devices in the combine list as the first device in the list.
The following code illustrates combining and uncombining panels, utilizing the COMBINE_DEVICES and UNCOMBINE_DEVICES keywords.