FieldServer FS-8700-17 Computer Drive User Manual


 
FS-8700-17 Optomux Driver Manual
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
4.4.4 Map 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 2
nd
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 ,
This is the name
of the Optomux
command /
query that must
be performed.
It must be
spelled and
spaced exactly
as in table 6.1
Only one
element of the
data array is
reserved for this
map descriptor.
The data will be
stored at offset
zero (First
element) of the
data array.
The device will
be read
continuously.
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.
This is the name
of the node. The
node must have
previously been
defined in the
Nodes section
of the CSV file.
Its Node_ID
should be set to
77 to reference
the device
addressed as 77.