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

Page 14
Image 14
FieldServer FS-8700-17 Map Descriptor Example 3 Command Response/Completion Status, Read STATUS, Responsearr