![](/images/new-backgrounds/1203053/20305335x1.webp)
| Driver Manual |
4.4.10 Map Descriptor Example 7 – Specifying Module Positions Dynamically
Previous examples addressed module positions statically. This example illustrates how you can use a data array’s value to specify the module position’s to be affected by a command. As data arrays can have their values changed by remote devices, the module position specification may be changed dynamically. The CSV file does not require editing. This method can be used all the time or only if you wish to use one of those commands which would typically require dynamic addressing.
In this example, module positions 1 and 5 are pulsed.
Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, Node_Name, Length, Scan_Interval, DA_Bit_Name , opto22_function
CLRLOW77 | , LOW_ARRAY , 0 | , wrbc , DEV77 , 16 , 10.0s | , POS_ARR , READ AND CLEAR LOWEST VALUES |
In this example, the driver will store 16 lowest values in an array | Any number 1 to 16. |
called LOW_ARR starting at position Data_Array_Offset. |
|
| The driver stops at |
| 16, ignoring larger |
| values. |
This data array will be used by the driver to determine the module positions to be affected by the command.
The driver uses the length (max=16) and the Data_Array_Offset. The first specified element corresponds to module position 1. If its value is
FieldServer Technologies 1991 Tarob Court, Milpitas, California 95035 (408)
Visit our website: www.fieldserver.com
Page 16