Map descriptor examples – FieldServer FS-8700-08 User Manual
Page 10
FS-8700-01 Modbus RTU/ASCIIFS-8700-01_Modbus_RTU.doc Driver Manual
Page 10 of 21
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.3.4 Map Descriptor Examples.
// Client Side Map Descriptors
// Note: All three examples below are addressing the same Modbus registers.
// For Nodes where Address_Type is ADU
Map_Descriptors
Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name
, Data_Type
, Address , Length ,Scan_Interval
CMD_AI_01
, DA_AI_01
, 0
, Rdbc
, MODBUS DEVICE1 , Input_Register
, 1
, 20
,1.000s
CMD_AO_01
, DA_AO_01
, 0
, Rdbc
, MODBUS DEVICE1 , Holding_Register , 1
, 20
,1.000s
CMD_DI_01
, DA_DI_01
, 0
, Rdbc
, MODBUS DEVICE1 , Discrete_Input
, 1
, 20
,1.000s
CMD_DO_01
, DA_DO_01
, 0
, Rdbc
, MODBUS DEVICE1 , Coil
, 1
, 20
,1.000s
// For Nodes where Address_Type is PDU
Map_Descriptors
Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name,
, Data_Type
, Address , Length ,Scan_Interval
CMD_AI_02
, DA_AI_02
, 0
, Rdbc
, MODBUS DEVICE2 , FC04
, 0
, 20
,1.000s
CMD_AO_02
, DA_AO_02
, 0
, Rdbc
, MODBUS DEVICE2 , FC03
, 0
, 20
,1.000s
CMD_DI_02
, DA_DI_02
, 0
, Rdbc
, MODBUS DEVICE2 , FC02
, 0
, 20
,1.000s
CMD_DO_02
, DA_DO_02
, 0
, Rdbc
, MODBUS DEVICE2 , FC01
, 0
, 20
,1.000s
// For Nodes where Address_Type is Modicon_5digit.
Map_Descriptors
Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name,
, Address , Length , Scan_Interval
CMD_AI_03
, DA_AI_03
, 0
, Rdbc
, MODBUS DEVICE3
, 30001
, 20
, 1.000s
CMD_AO_03
, DA_AO_03
, 0
, Rdbc
, MODBUS DEVICE3
, 40001
, 20
, 1.000s
CMD_DI_03
, DA_DI_03
, 0
, Rdbc
, MODBUS DEVICE3
, 10001
, 20
, 1.000s
CMD_DO_03
, DA_DO_03
, 0
, Rdbc
, MODBUS DEVICE3
, 00001
, 20
, 1.000s