Configuration Sample 2

FSa0626 – Project Notes

 

How to test the data

 

1. From the main menu of ruinet select A for Data Arrays

 

2. Look at the config file. Observe where the data is served from.

 

3. Now find that array in the list. In this example Array index=03.

 

You see this screen

———————
Rev 0 – 2010Jul07

 

Please read this document to completion. It has important info. Please read section 8 – Possible Issues
Modbus – Meter
The following notes are intended to
1. help you with your startup
2. allow you to make minor changes if required
3. explain the configuration file
We will make any changes necessary and email you a revised configuration. Simply ask us. You do not need make changes yourself if you do not feel comfortable.

 

1. Prep for Testing

Modbus – Consider taking the manuals with you to site. If you have a USB-485 converter for your laptop then download and install this software – you can use it to test the Modbus data from the meter.

http://www.chipkin.com/technical-resources/cas-modbus-scanner

 

2. FieldServer Tools and Procedures

Please read steps 1 and 2 of the attached support procedure document. Install the tools in prep for site work.

 

3. Settings – Modbus

The FieldServer has been configured to work with these default settings in the Meter. The following notes show you what to change in the configuration file.

 

 

Table 6-1 Factory Settings

 

Parameter Value
Address 126
Baud rate SENTRON PAC3200: 19200 baud
Response Time “0” = Auto
Communication protocol MODBUS RTU
Settings 8N2
Language The communication parameters are displayed in the language set on the SENTRON PAC Power Monitoring Device.Default Setting: English

 

 

 

 

4. Wiring Modbus

 

 

5. Settings N2

 

N2 Device Address is set with the Node_ID below. Use the address allocated or change the address by changing the configuration.

 

6. Wiring N2

7. N2 Map and Data objects

 

Sentron PAC3200 Modbus Address

FieldServer internal
Storage
N2 Object N2 Object Modbus
Address
Description Unit Register
Type
DataArray DataArrayOffset
AI 1 2 Voltage Va?n V Float DA_FLOAT_01 1
AI 2 4 Voltage Vb?n V Float DA_FLOAT_01 2
AI 3 6 Voltage Vc?n V Float DA_FLOAT_01 3
AI 4 8 Voltage Va?b V Float DA_FLOAT_01 4
AI 5 10 Voltage Vb?c V Float DA_FLOAT_01 5
AI 6 12 Voltage Vc?a V Float DA_FLOAT_01 6
AI 7 14 Current a A Float DA_FLOAT_01 7
AI 8 16 Current b A Float DA_FLOAT_01 8
AI 9 18 Current c A Float DA_FLOAT_01 9
AI 10 20 Apparent Power a kVA Float DA_FLOAT_01 10
AI 11 22 Apparent Power b kVA Float DA_FLOAT_01 11
AI 12 24 Apparent Power c kVA Float DA_FLOAT_01 12
AI 13 26 Active Power a kW Float DA_FLOAT_01 13
AI 14 28 Active Power b kW Float DA_FLOAT_01 14
AI 15 30 Active Power c kW Float DA_FLOAT_01 15
AI 16 32 Reactive Power a kVAR Float DA_FLOAT_01 16
AI 17 34 Reactive Power b kVAR Float DA_FLOAT_01 17
AI 18 36 Reactive Power c kVAR Float DA_FLOAT_01 18
AI 19 38 Power Factor a Decimal Float DA_FLOAT_01 19
AI 20 40 Power Factor b Decimal Float DA_FLOAT_01 20
AI 21 42 Power Factor c Decimal Float DA_FLOAT_01 21
AI 22 44 THD?R Voltage a % Float DA_FLOAT_01 22
AI 23 46 THD?R Voltage b % Float DA_FLOAT_01 23
AI 24 48 THD?R Voltage c % Float DA_FLOAT_01 24
AI 25 50 THD?R Current a % Float DA_FLOAT_01 25
AI 26 52 THD?R Current b % Float DA_FLOAT_01 26
AI 27 54 THD?R Current c % Float DA_FLOAT_01 27
AI 28 56 Frequency Hz Float DA_FLOAT_01 28
AI 29 58 Average Voltage Vph?n V Float DA_FLOAT_01 29
AI 30 60 Average Voltage Vph?ph V Float DA_FLOAT_01 30
AI 31 62 Average Current A Float DA_FLOAT_01 31
AI 32 64 Total Apparent Power kVA Float DA_FLOAT_01 32
AI 33 66 Total Active Power kW Float DA_FLOAT_01 33
AI 34 68 Total Reactive Power kVAR Float DA_FLOAT_01 34
AI 35 70 Total Power Factor Decimal Float DA_FLOAT_01 35
AI 36 72 Amplitude Unbalance ? Voltage % Float DA_FLOAT_01 36
AI 37 74 Amplitude Unbalance ?Current % Float DA_FLOAT_01 37
AI 38 214 Working hours counter Unsigned
long
DA_U32_01 1
AI 39 502 Demand Active Power ? Import kW Float DA_FLOAT_01 90
AI 40 504 Demand Reactive Power ?
Import
kVAR Float DA_FLOAT_01 91
AI 41 2802 Active Energy Import Tariff 1 kWH Float DA_FLOAT_01 100
AI 42 2804 Active Energy Import Tariff 2 kWH Float DA_FLOAT_01 101
AI 102
AI 103
AI 43 2810 Reactive Energy Import Tariff 1 kVARH Float DA_FLOAT_01 104
AI 44 2812 Reactive Energy Import Tariff 2 kVARH Float DA_FLOAT_01 105
AI 106
AI 107
AI 45 2818 Apparent Energy Tariff 1 kVAH Float DA_FLOAT_01 108
AI 46 2820 Apparent Energy Tariff 2 kVAH Float DA_FLOAT_01 109

 

8. Possible Issues

 

8.1 Modbus Address Offset – May need to be adjusted by 1. The vendor manual does not provided specific enough information.

When the FieldServer reads 40002 it reads the 2nd holding register . Most vendors describe that as offset 1 (offset by 1 from the 1st). This vendor seems to call that offset 2. If the offset in the configuration is wrong, expect Modbus connection errors.
Bad Values
We have to convert two Modbus registers to form one floating point. The vendor manual is not precise so we don’t know for sure what order to combine the registers.
In this section we move 16 bit info using conversion formulae to a new location.

 

Moves,
Source_Data_Array ,Source_Offset ,Target_Data_Array ,Target_Offset ,Length ,Function
DA_4xxxx_01 ,1 ,DA_Float_01 ,1 ,74 ,2.i16-1.float
DA_4xxxx_01 ,80 ,DA_U32_01 ,1 ,02 ,2.i16-1.i32
DA_4xxxx_01 ,90 ,DA_Float_01 ,90 ,04 ,2.i16-1.float
DA_4xxxx_01 ,100 ,DA_Float_01 ,100 ,20 ,2.i16-1.float

 

It may be necessary to use some other functions which combine the two 16 bit values in the opposite way.

 

Moves,
Source_Data_Array ,Source_Offset ,Target_Data_Array ,Target_Offset ,Length ,Function
DA_4xxxx_01 ,1 ,DA_Float_01 ,1 ,74 ,2.i16-1.float-sw
DA_4xxxx_01 ,80 ,DA_U32_01 ,1 ,02 ,2.i16-1.i32-sw
DA_4xxxx_01 ,90 ,DA_Float_01 ,90 ,04 ,2.i16-1.float-sw
DA_4xxxx_01 ,100 ,DA_Float_01 ,100 ,20 ,2.i16-1.float-sw

 

Configuration File

Download: FSa0626 – Configuration File

//================================================================================,,,,,,,
//,,,,,,,
//,,,,,,,
// 1.00 07 Jul 10 PMC Created ,,,,,,,
// 2.00 20 Aug 10 PMC Added one more unit ,,,,,,,
// 3.00 30 Sep 10 PMC Resets
// 4.00 05 Oct 10 PMC CHange to PDU mode to read 60002

 

//==============================================================================*/,,,,,,,
,,,,,,,
,,,,,,,
//================================================================================,,,,,,,
//,,,,,,,
// Notes : None,,,,,,,
//,,,,,,,
//,,,,,,,
//================================================================================,,,,,,,
,,,,,,,
,,,,,,,
//================================================================================,,,,,,,
//,,,,,,,
// Common Information,,,,,,,
//,,,,,,,
,,,,,,,
Bridge,,,,,,,
Title ,System_Station_Address,,,,,,
Job Ref=FSa0626 Rev 4.00 ,11,,,,,,
,,,,,,,
,,,,,,,
//================================================================================,,,,,,,
//,,,,,,,
// Data Arrays,,,,,,,
//,,,,,,,
,,,,,,,
Data_Arrays,,,,,,,
Data_Array_Name ,Data_Format ,Data_Array_Length ,,,,,
DA_4xxxx_01 ,UINT16 ,1000,,,,,
DA_U32_01 ,UINT32 ,1000,,,,,
DA_FLOAT_01 ,Float ,1000,,,,,
Db_4xxxx_01 ,UINT16 ,1000,,,,,
Db_U32_01 ,UINT32 ,1000,,,,,
Db_FLOAT_01 ,Float ,1000,,,,,
,,,,,,,
//================================================================================,,,,,,,
//,,,,,,,
// Client Side Connections,,,,,,,
//,,,,,,,
// ,,,,,,,
Connections,,,,,,,
Port ,Baud ,Parity ,Data_Bits ,Stop_Bits ,Protocol ,Handshaking ,Poll_Delay
R1 ,9600,None ,8,1,Modbus_RTU ,None ,0.100s
,,,,,,,
,,,,,,,
//================================================================================,,,,,,,
//,,,,,,,
// Client Side Nodes,,,,,,,
//,,,,,,,
// ,,,,,,,
Nodes,,,,,,,
Node_Name ,Node_ID ,Protocol ,Port ,Address_Type,,,
SentronA ,126,Modbus_RTU ,R1 ,PDU,,,
SentronB ,127,Modbus_RTU ,R1 ,PDU,,,
,,,,,,,
//================================= ,1===============================================,,,,,,
//,,,,,,,
// Client Side Map Descriptors,,,,,,,
//,,,,,,,
// ,,,,,,,
Map_Descriptors,,,,,,,
Map_Descriptor_Name ,Data_Array_Name ,Data_Array_Offset ,Function ,Node_Name ,Address ,Length ,Scan_Interval ,Data_Type
ReadRegs_a ,DA_4xxxx_01 ,1 ,RDBC ,SentronA ,00001 ,74 , 0.000s ,FC03
ReadRegs_b ,DA_4xxxx_01 ,80 ,RDBC ,SentronA ,00213 ,2 , 0.000s ,FC03
ReadRegs_c ,DA_4xxxx_01 ,90 ,RDBC ,SentronA ,00501 ,4 , 0.000s ,FC03
ReadRegs_d ,DA_4xxxx_01 ,100,RDBC ,SentronA ,02801 ,20 , 0.000s ,FC03
ReadRegs_e ,DA_4xxxx_01 ,120,RDBC ,SentronA ,20001 ,3 ,10.000s ,FC03

 

,,,,,,,
Map_Descriptors,,,,,,,
Map_Descriptor_Name ,Data_Array_Name ,Data_Array_Offset ,Function ,Node_Name ,Address ,Length ,Scan_Interval ,Data_Type
ReadRegs_a ,Db_4xxxx_01 ,1 ,RDBC ,SentronB ,00001 ,74 , 0.000s ,FC03
ReadRegs_b ,Db_4xxxx_01 ,80 ,RDBC ,SentronB ,00213 ,2 , 0.000s ,FC03
ReadRegs_c ,Db_4xxxx_01 ,90 ,RDBC ,SentronB ,00501 ,4 , 0.000s ,FC03
ReadRegs_d ,Db_4xxxx_01 ,100,RDBC ,SentronB ,02801 ,20 , 0.000s ,FC03
ReadRegs_e ,Db_4xxxx_01 ,120,RDBC ,SentronB ,20001 ,3 ,10.000s ,FC03
,,,,,,,
//================================================================================,,,,,,,
//,,,,,,,
// Moves,,,,,,,
//,,,,,,,
Moves,,,,,,,
Source_Data_Array ,Source_Offset ,Target_Data_Array ,Target_Offset ,Length ,Function,,
DA_4xxxx_01 ,1,DA_Float_01 ,1,74,2.i16-1.float-sw,,
DA_4xxxx_01 ,80,DA_U32_01 ,1,2,2.i16-1.i32-sw,,
DA_4xxxx_01 ,90,DA_Float_01 ,90,4,2.i16-1.float-sw,,
DA_4xxxx_01 ,100,DA_Float_01 ,100,20,2.i16-1.float-sw,,
,,,,,,,
DB_4xxxx_01 ,1,DB_Float_01 ,1,74,2.i16-1.float-sw,,
DB_4xxxx_01 ,80,DB_U32_01 ,1,2,2.i16-1.i32-sw,,
DB_4xxxx_01 ,90,DB_Float_01 ,90,4,2.i16-1.float-sw,,
DB_4xxxx_01 ,100,DB_Float_01 ,100,20,2.i16-1.float-sw,,

 

//================================================================================,,,,,,,
//,,,,,,,
// Server Side Connections,,,,,,,
//,,,,,,,
,,,,,,,
Connections,,,,,,,
Port ,Baud ,Data_Bits ,Parity ,Protocol ,Line_Drive_On ,Line_Drive_Off ,
R2 ,9600,8,None ,Metasys_N2 ,0.001s ,0,
,,,,,,,
,,,,,,,
//================================================================================,,,,,,,
//,,,,,,,
// Server Side Nodes,,,,,,,
//,,,,,,,
,,,,,,,
Nodes,,,,,,,
Node_Name ,Node_ID ,Protocol ,,,,,
VirtualSentronA,10,Metasys_N2,,,,,
VirtualSentronB,11,Metasys_N2,,,,,
,,,,,,,
//================================================================================,,,,,,,
//,,,,,,,
// Server Side Map Descriptors,,,,,,,
//,,,,,,,
Map_Descriptors,,,,,,,
Map_Descriptor_Name ,Data_Array_Name ,Data_Array_Offset ,Function ,Node_Name ,Data_Type ,Address ,
Voltage Va-n ,DA_Float_01 ,1,Server ,VirtualSentronA,AI ,1,
Voltage Vb-n ,DA_Float_01 ,2,Server ,VirtualSentronA,AI ,2,
Voltage Vc-n ,DA_Float_01 ,3,Server ,VirtualSentronA,AI ,3,
Voltage Va-b ,DA_Float_01 ,4,Server ,VirtualSentronA,AI ,4,
Voltage Vb-c ,DA_Float_01 ,5,Server ,VirtualSentronA,AI ,5,
Voltage Vc-a ,DA_Float_01 ,6,Server ,VirtualSentronA,AI ,6,
Current a ,DA_Float_01 ,7,Server ,VirtualSentronA,AI ,7,
Current b ,DA_Float_01 ,8,Server ,VirtualSentronA,AI ,8,
Current c ,DA_Float_01 ,9,Server ,VirtualSentronA,AI ,9,
Apparent Power a ,DA_Float_01 ,10,Server ,VirtualSentronA,AI ,10,
Apparent Power b ,DA_Float_01 ,11,Server ,VirtualSentronA,AI ,11,
Apparent Power c ,DA_Float_01 ,12,Server ,VirtualSentronA,AI ,12,
Active Power a ,DA_Float_01 ,13,Server ,VirtualSentronA,AI ,13,
Active Power b ,DA_Float_01 ,14,Server ,VirtualSentronA,AI ,14,
Active Power c ,DA_Float_01 ,15,Server ,VirtualSentronA,AI ,15,
Reactive Power a ,DA_Float_01 ,16,Server ,VirtualSentronA,AI ,16,
Reactive Power b ,DA_Float_01 ,17,Server ,VirtualSentronA,AI ,17,
Reactive Power c ,DA_Float_01 ,18,Server ,VirtualSentronA,AI ,18,
Power Factor a ,DA_Float_01 ,19,Server ,VirtualSentronA,AI ,19,
Power Factor b ,DA_Float_01 ,20,Server ,VirtualSentronA,AI ,20,
Power Factor c ,DA_Float_01 ,21,Server ,VirtualSentronA,AI ,21,
THD-R Voltage a ,DA_Float_01 ,22,Server ,VirtualSentronA,AI ,22,
THD-R Voltage b ,DA_Float_01 ,23,Server ,VirtualSentronA,AI ,23,
THD-R Voltage c ,DA_Float_01 ,24,Server ,VirtualSentronA,AI ,24,
THD-R Current a ,DA_Float_01 ,25,Server ,VirtualSentronA,AI ,25,
THD-R Current b ,DA_Float_01 ,26,Server ,VirtualSentronA,AI ,26,
THD-R Current c ,DA_Float_01 ,27,Server ,VirtualSentronA,AI ,27,
Frequency ,DA_Float_01 ,28,Server ,VirtualSentronA,AI ,28,
Average Voltage Vph-n ,DA_Float_01 ,29,Server ,VirtualSentronA,AI ,29,
Average Voltage Vph-ph ,DA_Float_01 ,30,Server ,VirtualSentronA,AI ,30,
Average Current ,DA_Float_01 ,31,Server ,VirtualSentronA,AI ,31,
Total Apparent Power ,DA_Float_01 ,32,Server ,VirtualSentronA,AI ,32,
Total Active Power ,DA_Float_01 ,33,Server ,VirtualSentronA,AI ,33,
Total Reactive Power ,DA_Float_01 ,34,Server ,VirtualSentronA,AI ,34,
Total Power Factor ,DA_Float_01 ,35,Server ,VirtualSentronA,AI ,35,
Amplitude Unbalance – Voltage ,DA_Float_01 ,36,Server ,VirtualSentronA,AI ,36,
Amplitude Unbalance -Current ,DA_Float_01 ,37,Server ,VirtualSentronA,AI ,37,
,,,,,,,
Working hours counter ,DA_U32_01 ,1,Server ,VirtualSentronA,AI ,38,
,,,,,,,
Demand Active Power – Import ,DA_Float_01 ,90,Server ,VirtualSentronA,AI ,39,
Demand Reactive Power – Import ,DA_Float_01 ,91,Server ,VirtualSentronA,AI ,40,
Active Energy Import Tariff 1 ,DA_Float_01 ,100,Server ,VirtualSentronA,AI ,41,
Active Energy Import Tariff 2 ,DA_Float_01 ,101,Server ,VirtualSentronA,AI ,42,
Reactive Energy Import Tariff 1 ,DA_Float_01 ,104,Server ,VirtualSentronA,AI ,43,
Reactive Energy Import Tariff 2 ,DA_Float_01 ,105,Server ,VirtualSentronA,AI ,44,
Apparent Energy Tariff 1 ,DA_Float_01 ,108,Server ,VirtualSentronA,AI ,45,
Apparent Energy Tariff 2 ,DA_Float_01 ,109,Server ,VirtualSentronA,AI ,46,
,,,,,,,
,,,,,,,
Reset Max Values ,DA_4xxxx_01 ,120,Server ,VirtualSentronA,BO,1,
Reset Min Values ,DA_4xxxx_01 ,121,Server ,VirtualSentronA,BO,2,
Reset Energy Counter ,DA_4xxxx_01 ,122,Server ,VirtualSentronA,AO,1,
Switching Tariff,DA_U32_01 ,6,Server ,VirtualSentronA,BO,3,
,,,,,,,
Map_Descriptors,,,,,,,
Map_Descriptor_Name ,Data_Array_Name ,Data_Array_Offset ,Function ,Node_Name ,Data_Type ,Address ,
Voltage Va-n ,DB_Float_01 ,1,Server ,VirtualSentronB,AI ,1,
Voltage Vb-n ,DB_Float_01 ,2,Server ,VirtualSentronB,AI ,2,
Voltage Vc-n ,DB_Float_01 ,3,Server ,VirtualSentronB,AI ,3,
Voltage Va-b ,DB_Float_01 ,4,Server ,VirtualSentronB,AI ,4,
Voltage Vb-c ,DB_Float_01 ,5,Server ,VirtualSentronB,AI ,5,
Voltage Vc-a ,DB_Float_01 ,6,Server ,VirtualSentronB,AI ,6,
Current a ,DB_Float_01 ,7,Server ,VirtualSentronB,AI ,7,
Current b ,DB_Float_01 ,8,Server ,VirtualSentronB,AI ,8,
Current c ,DB_Float_01 ,9,Server ,VirtualSentronB,AI ,9,
Apparent Power a ,DB_Float_01 ,10,Server ,VirtualSentronB,AI ,10,
Apparent Power b ,DB_Float_01 ,11,Server ,VirtualSentronB,AI ,11,
Apparent Power c ,DB_Float_01 ,12,Server ,VirtualSentronB,AI ,12,
Active Power a ,DB_Float_01 ,13,Server ,VirtualSentronB,AI ,13,
Active Power b ,DB_Float_01 ,14,Server ,VirtualSentronB,AI ,14,
Active Power c ,DB_Float_01 ,15,Server ,VirtualSentronB,AI ,15,
Reactive Power a ,DB_Float_01 ,16,Server ,VirtualSentronB,AI ,16,
Reactive Power b ,DB_Float_01 ,17,Server ,VirtualSentronB,AI ,17,
Reactive Power c ,DB_Float_01 ,18,Server ,VirtualSentronB,AI ,18,
Power Factor a ,DB_Float_01 ,19,Server ,VirtualSentronB,AI ,19,
Power Factor b ,DB_Float_01 ,20,Server ,VirtualSentronB,AI ,20,
Power Factor c ,DB_Float_01 ,21,Server ,VirtualSentronB,AI ,21,
THD-R Voltage a ,DB_Float_01 ,22,Server ,VirtualSentronB,AI ,22,
THD-R Voltage b ,DB_Float_01 ,23,Server ,VirtualSentronB,AI ,23,
THD-R Voltage c ,DB_Float_01 ,24,Server ,VirtualSentronB,AI ,24,
THD-R Current a ,DB_Float_01 ,25,Server ,VirtualSentronB,AI ,25,
THD-R Current b ,DB_Float_01 ,26,Server ,VirtualSentronB,AI ,26,
THD-R Current c ,DB_Float_01 ,27,Server ,VirtualSentronB,AI ,27,
Frequency ,DB_Float_01 ,28,Server ,VirtualSentronB,AI ,28,
Average Voltage Vph-n ,DB_Float_01 ,29,Server ,VirtualSentronB,AI ,29,
Average Voltage Vph-ph ,DB_Float_01 ,30,Server ,VirtualSentronB,AI ,30,
Average Current ,DB_Float_01 ,31,Server ,VirtualSentronB,AI ,31,
Total Apparent Power ,DB_Float_01 ,32,Server ,VirtualSentronB,AI ,32,
Total Active Power ,DB_Float_01 ,33,Server ,VirtualSentronB,AI ,33,
Total Reactive Power ,DB_Float_01 ,34,Server ,VirtualSentronB,AI ,34,
Total Power Factor ,DB_Float_01 ,35,Server ,VirtualSentronB,AI ,35,
Amplitude Unbalance – Voltage ,DB_Float_01 ,36,Server ,VirtualSentronB,AI ,36,
Amplitude Unbalance -Current ,DB_Float_01 ,37,Server ,VirtualSentronB,AI ,37,
,,,,,,,
Working hours counter ,DB_U32_01 ,1,Server ,VirtualSentronB,AI ,38,
,,,,,,,
Demand Active Power – Import ,DB_Float_01 ,90,Server ,VirtualSentronB,AI ,39,
Demand Reactive Power – Import ,DB_Float_01 ,91,Server ,VirtualSentronB,AI ,40,
Active Energy Import Tariff 1 ,DB_Float_01 ,100,Server ,VirtualSentronB,AI ,41,
Active Energy Import Tariff 2 ,DB_Float_01 ,101,Server ,VirtualSentronB,AI ,42,
Reactive Energy Import Tariff 1 ,DB_Float_01 ,104,Server ,VirtualSentronB,AI ,43,
Reactive Energy Import Tariff 2 ,DB_Float_01 ,105,Server ,VirtualSentronB,AI ,44,
Apparent Energy Tariff 1 ,DB_Float_01 ,108,Server ,VirtualSentronB,AI ,45,
Apparent Energy Tariff 2 ,DB_Float_01 ,109,Server ,VirtualSentronB,AI ,46,
,,,,,,,
Reset Max Values ,DB_4xxxx_01 ,120,Server ,VirtualSentronA,BO,1,
Reset Min Values ,DB_4xxxx_01 ,121,Server ,VirtualSentronA,BO,2,
Reset Energy Counter ,DB_4xxxx_01 ,122,Server ,VirtualSentronA,AO,1,
Switching Tariff,DB_U32_01 ,6,Server ,VirtualSentronB,BO,3,

 

 

If you liked this post;
  • Please consider subscribing to our RSS feed