| Page 13 of 26 |
4.9.Map Descriptor Example 5 – Change Mode
In this example the driver sends a command to change the mode of the field device. The command sent is determined by the value found in the specified Data Array location. In this example the function is set to wrbx. This means the command message will be sent each time the value found at the specified offset in the specified Data Array is updated even if it is not changed
//Client Side Map Descriptors
Map_Descriptors |
|
|
|
|
|
|
Map_Descriptor_Name, | Data_Array_Name, | Data_Array_Offset, | Function, | Node_Name | Met1_Function, | Length, |
Write_Mode, | DA_MODE_CTRL, | 0, | wrbx, | MET1, | Mode , | 1, |
Driver extracts one single value from this DA:Offset and uses |
| Set length to 1 for |
| |||
the value to send a command to change the mode. |
| this Met1_Function |
|
Auto Sample Mode: Value=1
Manual Sample Mode: Value=2
Active Mode : Value = 3
Standby Mode: Value = 4
If the value found is not valid then no command is sent.
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.fieldServer.com Tel: 408