beautypg.com

Map descriptor example – FieldServer ControlNet FS-8700-104 User Manual

Page 9

background image

FS-8700-104_ControlNet_X30 Manual

Page 9 of 13

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 email: [email protected]

5.4.3 Map Descriptor Example.

// Server Side Map Descriptors

Map_Descriptorss

Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name , CNT_Data_Type , Address , Length , Scan_Interval
Get_Data

, Input_Data

, 0

, Rdbc

, CN5

, WORD

, 0

, 225

, 1s

Put_Data

, Output_Data

, 0.

, Wrbc

, CN5

, WORD

, 4

, 225

, 1s

Note that each address
refers to an individual local
input and output buffer.
Each buffer can contain up
to 450 bytes.

Read function map
descriptor gets data
from the ControlNet
network and stores it
in the Input_Data data
array.

Write function map
descriptor puts data
from the
Output_Data data
array onto the
ControlNet
network.

Note the start
address for the
output buffer is
4. Addresses 0-3
are not available.