FS-8700-17 Optomux

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 non-zero then the position is specified by the driver.

FieldServer Technologies 1991 Tarob Court, Milpitas, California 95035 (408) 262-2299 fax: (408) 262-9042

Visit our website: www.fieldserver.com E-mail: support@fieldserver.com

Page 16

Page 18
Image 18
FieldServer FS-8700-17 instruction manual CLRLOW77 Lowarray, Wrbc , DEV77 , 16 , 10.0s