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)
Visit our website: www.fieldserver.com
Page 10