Map Descriptor Example - Read On/Off Status - FieldServer Optomux FS-8700-17 Driver Manual

Fieldserver technologies computer driver instruction manual
Table of Contents

Advertisement

FS-8700-17_Opto22.doc Manual
5.3.4 Map Descriptor Example – 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
nd
would indicate that the 2
position is on and all other positions are off.
Map_Descriptor_Name
, Data_Array_Name
DEVICE77_STAT
, DISC_INPUTS
Map Descriptor
The data array in
names are often
which the data will
used in error
be stored.
messages so it is
Ensure that the
usefull to have
Data Format of the
unique names.
array is suitable for
Dashes, spaces,
storing the data
upper and
returned by the
lowercase
device. Appendix
characters may be
B.1 provides details
used.
of the type of data
returned by each
command.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web: www.fieldserver.com
Tel: (408) 262 2299 Fax: (408) 262 2269 Toll Free: (888) 509 1970 email: support@fieldserver.com
, Data_Array_Offset
, Function
, 0
, Rdbc
The device will
The node must
be read
have previously
continuously.
been defined in
the Nodes
section of the
CSV file. Its
The data will be
Node_ID should
be set to 77 to
stored at offset
reference the
zero (First
device
element) of the
addressed as
data array.
77.
Page 9 of 24
, Node_Name
, Length
, Scan_Interval
, DEV77
, 1
, 5.0s
Only one
element of the
data array is
reserved for
this Map
Descriptor.
, Opto22_Function
, READ STATUS
This is the name of the
Optomux command /
query that must be
performed.
It must be spelled and
spaced exactly as in
Appendix B.1

Advertisement

Table of Contents
loading

Table of Contents