
McQuay Micro Tech Open Protocol Driver Manual
Page 28 of 43
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
Appendix A.5.
Advanced Map Descriptor Example 3 – Controlling Bytes per Field – Writing
This example writes to a McQuay device starting at address 4096 (= 0x1000) to 4097incl. The value written to each address location is based on a single value
extracted from the FieldServer’s Data Arrays.
The value v0 = (value_extracted_from_DA) AND 0xff
The value v1 = (value_extracted_from_DA shift right by 8) AND 0xff
The driver writes value v0 to address 4096.
The driver writes value v1 to address 4097.
Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Node_Name , Address , Length , Bytes_Per_Field , Scan_Interval , Function
Chiller1_emulation
, DA_CHILLER1
, 0
, Chiller1
, 4096 , 1
, 2
, 1.0s
, Wrbc
Specify the address
in decimal
Length must be set
to 1 when
Bytes_Per_Field is
specified.
A value from 1 to 4 -tells the
driver how many consecutive
addresses to write to The data
value written to each address is
based on the single value
extracted from offset 0 in the
Data Array DA_CHILLER1