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