| Page 10 of 17 |
4.6.Map Descriptor Example: Read Data and Keep History
This Map Descriptor allows the storage of data history up to HCSR_Data_Stages. Data will be shifted to next Stage only if the data is changed. The driver divides the Data Array into sections corresponding to the number of HCSR_Data_Stages. Current data (stage1) will be stored in the first section and oldest (last stage) data will be stored in the last section in the Data array.
Map_Descriptors |
|
|
|
|
|
|
|
|
Map_Descriptor_Name, | Data_Array_Name, | Data_Array_Offset, | Function, | Node_name | Length | Scan_Interval, | HCSR_Data_Stages |
|
CMD_DI_HCSR_01, | DA_CURRENT, | 0, | RDBC, | Node_A, | 72, | 5, | 3 |
|
Map_Descriptors |
|
|
|
|
|
|
|
|
Map_Descriptor_Name, | Data_Array_Name, | Data_Array_Offset, | Function, | Node_name | Length | HCSR_Onfrom | HCSR_Loop | HCSR_Data_Stages |
CMD_FromLoop_01, | DI_FromLoop01, | 0, | Passive_Client, | Node_A, | 63, | From | 1 | 3 |
CMD_OnLoop_01, | DI_OnLoop01, | 0, | Passive_Client, | Node_A, | 63, | On | 1 | 3 |
CMD_FromLoop_02, | DI_FromLoop02, | 0, | Passive_Client, | Node_A, | 63, | From | 2 | 3 |
CMD_OnLoop_02, | DI_OnLoop02, | 0, | Passive_Client, | Node_A, | 63, | On | 2 | 3 |
CMD_FromLoop_03, | DI_FromLoop03, | 0, | Passive_Client, | Node_A, | 63, | From | 3 | 3 |
CMD_OnLoop_03, | DI_OnLoop03, | 0, | Passive_Client, | Node_A, | 63, | On | 3 | 3 |
CMD_FromLoop_4, | DI_FromLoop04, | 0, | Passive_Client, | Node_A, | 63, | From | 4 | 3 |
CMD_OnLoop_04, | DI_OnLoop04,, | 0, | Passive_Client, | Node_A, | 63, | On | 4 | 3 |
|
|
|
|
|
|
|
|
|
Name one of the Data Array
defined in Data_Array section to store data
Starting offset in Data Array to hold data
RDBC will cause read poll and Passive_Client is used to store data returned by response.
One | of | the | Maximum |
| How often | (in | The number of | ||
| seconds) to | poll | |||||||
Nodes | declared | number | of | data | stages | ||||
target device. | |||||||||
in Client | Node | placeholders for | (data | changes) | |||||
Irrelevant | if | ||||||||
Section. | This | data storage. |
| to be | kept as | ||||
| Function | is | |||||||
Node | will | be |
|
| history. |
| |||
|
| Passive_Client |
| ||||||
polled |
| if |
|
|
|
| |||
|
|
|
|
|
|
| |||
Function | is |
|
|
|
|
|
| ||
RDBC |
|
|
|
|
|
|
|
|
FieldServer Technologies 1991 Tarob Court Milpitas, California 95035 USA Web:www.FieldServer.com Tel: 408