FieldServer FS-8700-17 Map Descriptor Example 3 Command Response/Completion Status

Page 14

FS-8700-17 Optomux

Driver Manual

4.4.6Map Descriptor Example 3 – Command Response/Completion Status

We use example 1 to show how it can be modified to get the driver to expose the response / status generated when the command was executed. The response / status values indicate the success / failure of the command based either on the driver’s ability to complete the command OR on the ack/nack returned by the device.

Map_Descriptor_Name, Data_Array_Name, Data_Array_Offset, Function, node_name, Length, Scan_Interval, opto22_function , DA_Byte_Name

DEVICE77_STAT , DISC_INPUTS , 0

, rdbc , DEV77 , 1 , 5.0s

, READ STATUS, RESPONSE_ARR

By virtue of defining the DA_Byte_Name parameter the driver will now store a response status each time the poll is executed.

The response / status code will be stored in the data array called REPONSE_ARR. One element of the array located at Data_Array_Offset will be used. The data array’s data format should at least be able to store a byte of data as response/status codes range from 0-255.

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 12

Image 14
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 ParametersRead Status Map Descriptor Example 1 Read on/off StatusDEVICE77STAT , Discinputs 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