FieldServer FS-8700-17 Map Descriptor Example 1 Read on/off Status, DEVICE77STAT , Discinputs

Page 12

FS-8700-17 Optomux

Driver Manual

4.4.4Map Descriptor Example 1 – Read on/off Status

In this example the on/off status of all module positions of the Optomux device are read and stored. They are read continuously (rdbc) every 5 seconds

(Scan_Interval). The Read Status command returns one packed 16 bit value. There is one bit per module position, thus, if the returned value was 2 then this would indicate that the 2nd position is on and all other positions are off.

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

DEVICE77_STAT , DISC_INPUTS , 0

, rdbc , DEV77 , 1

, 5.0s

, READ STATUS ,

Map descriptor names are often used in error messages so it may be helpful to have unique names.

Dashes, spaces, upper and lowercase characters may be used.

This is the name of the data array in which the data will be stored.

Ensure that the Data_Format of the array is suitable for storing the data returned by the device.

Chapter 6 provides details of the type of data returned by each command.

The device will be read continuously.

The data will be stored at offset zero (First element) of the data array.

This is the name

Only one

This is the name

of the node. The

element of the

of the Optomux

node must have

data array is

command /

previously been

reserved for this

query that must

defined in the

map descriptor.

be performed.

Nodes section

 

 

of the CSV file.

 

It must be

Its Node_ID

 

spelled and

should be set to

 

spaced exactly

77 to reference

 

as in table 6.1

the device

 

 

addressed as 77.

 

 

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 10

Image 12
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 Command Response Status Driver NotesDataArrayName, DABitName, DAByteName 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