Map descriptor examples, Slave_id, 3 map descriptor examples – FieldServer FS-8700-08 User Manual
Page 14: 4 slave_id
FS-8700-01 Modbus RTU/ASCIIFS-8700-01_Modbus_RTU.doc Driver Manual
Page 14 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]
6.3.3 Map Descriptor Examples
// Server Side Map Descriptors where Node Address_Type is ADU
// 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 , Data_Array_Low_Scale , Data_Array_High_Scale , Node_Low_Scale , Node_High_Scale
SMD_AI_01
, DA_AI_01
, 0
, Passive , MB_Srv_11 , Input_Register , 1
, 200 , 0
, 100
, 0
, 10000
SMD_AO_01
, DA_AO_01
, 0
, Passive , MB_srv_11 , Holding_Register , 1
, 200 , 0
, 100
, 0
, 10000
// Server Side Map Descriptors where Node Address_Type is PDU
Map_Descriptors
Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name , Data_Type , Address , Length , Data_Array_Low_Scale , Data_Array_High_Scale , Node_Low_Scale , Node_High_Scale
SMD_AI_02
, DA_AI_02
, 0
, Passive , MB_Srv_12 , FC04
, 0
, 200 , 0
, 100
, 0
, 10000
SMD_AO_02
, DA_AO_02
, 0
, Passive , MB_srv_12 , FC03
, 0
, 200 , 0
, 100
, 0
, 10000
// For Nodes where Address_Type is Modicon_5digit.
Map_Descriptors
Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name , Address , Length , Data_Array_Low_Scale , Data_Array_High_Scale , Node_Low_Scale , Node_High_Scale
SMD_AI_01
, DA_AI_01
, 0
, Passive , MBP_Srv_13 , 30001 , 200
, 0
, 100
, 0
, 10000
SMD_AO_01
, DA_AO_01
, 0
, Passive , MBP_Srv_13 , 40001 , 200
, 0
, 100
, 0
, 10000
6.3.4 Slave_Id
The following Map Descriptor is used to respond to the Report Slave_Id request. The FieldServer's Slave_Id is 11 and the run status depends upon the data
validity at the specified offset in the specified Data Array - if the data is valid, the status will be 255 (running) otherwise the status will be 0 (off).
Map_Descriptors
Map_Descriptor_Name , Data_Array_Name , Data_Array_Offset , Function , Node_Name , Address , Length , Data_Type
SMD_DO1
, DA_DO_01
, 0
, Passive
, RTU_Srv_21 , 00001
, 1
, Slave_ID
Length is not
used, revert to
default of 1