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

Page 18

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

Image 18
Contents FS-8700-17 Optomux Table of Contents Optomux Driver Description Driver Scope of Supply Optomux SystemHardware Connections FS-X40Configuring the FieldServer as a Optomux Driver Client Data ArraysClient Side Connections Client Side NodesClient Side Map Descriptors FieldServer Related Map Descriptor ParametersDriver Related Map Descriptor Parameters Bit, Packed SET Time Delay Generate N Pulses Read and Average Inputs Timing ParametersMap Descriptor Example 1 Read on/off Status DEVICE77STAT , DiscinputsRead Status FS-8700-17 Optomux Driver Manual Map Descriptor Example 3 Command Response/Completion Status Read STATUS, ResponsearrMap Descriptor Example 4 Triggered Action DEVICE77STAT , CntrposnsDEVICE77STAT , Anadata This example, module positions 1 and 5 are pulsed PULSE77 TimedataCLRLOW77 Lowarray Wrbc , DEV77 , 16 , 10.0sConfiguring the FieldServer as a Optomux Server DataArrayName, DABitName, DAByteName Command Response StatusDriver Notes Module PositionsOptomux Commands FS-8700-17 Optomux Driver Manual Read Specified module positions get set Affected. The data period of pulses Only one module position may be Calculated and read. Data read gets Array Element Contents Driver StatsRevision History