KILO Power Meter communication driver

 

KILO Power Meter communication driver is the driver to communicate with power meter(Three-phase energy analyzer and controller) of ELECTREX in Italy.

 

1. Read Settings

 

<Figure 1> is read setting example of KILO Power Meter communication driver.

<Figure 1>  Read setting example of KILO Power Meter communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(2) respectively, according to controller.

 

KILO Power Meter communication driver read schedule 

Read schedule setting parameters are as follows:

1) Station – 0 ~ 255 controller station number.

2) Modbus function number – Function number = 2, 3, 4, 7, 17.

3) Read start address –  Reading start address of modbus. ( from 1 ~ )

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – Read size. 1 ~ 8, function 2, 7, 17 = fixed to 1. 

6) Read Byte count – Number of Byte. ( refer to <Table 2> ~ <Table 4> )

 

Note) KILO Power Meter communication basically equal Modbus protocol.

 

Read schedule example)

READ,    1,   2,   1,   1,   1,   1,

READ,    1,   2,   2,   2,   1,   1,

READ,    1,   2,   3,   3,   1,   1,

READ,    1,   2,   4,   4,   1,   1,

READ,    1,   3,   1,   5,   8,   2,

READ,    1,   7,   0,  15,  1,   2,

READ,    1,  17,  0, 16,  1,   2,

FLOAT,   1,   4,   1,   0,  4,   4,

FLOAT,   1,   4,   5,   4,  4,   4,

FLOAT,   1,   4,   9,   8,  4,   4,

FLOAT,   1,   4,  29, 12,  4,   4,

FLOAT,   1,   4,  21, 16,  2,   4,

 

<Table 1> ~ <Table 3> are address and contents for function 2, 3, 4.

Address Contents Number of Read Byte Max read size
1, status value of digital input 1 1, 1,
2, status value of digital input 2 1, 1,
3, status value of alarm 1 1, 0:OFF, 1:ON
4, status value of alarm 2 1, 0:OFF, 1:ON
<Table 1> Address and contents for function 2(input status)

Address Contents Number of Read Byte Max read size
1, current strain (1~9999) 2, 8,
2, voltage strain (1~9999) 2, 8,
3, average integration time(1~99) 2, 8,
4, selection of tariff change 2, 8,
5, current time : second, minute 2, 8,
6, current time : hour, day 2, 8,
7, current time : month, year 2, 8,
8, Watch Dog Timer
(00:Count A,01:B, 02:C, 03:D)
2, 8,
<Table 2> Address and contents for function 3(Holding Register)

 
Address Contents Number of Read Byte Max read size
1,
3,
5,
...
17,
19

V, I, P, Q, S, PF, Pm, Sm, Pmd, Smd

4,

4,

21,

Active Energy Count,

6,

2,

23,

Reactive Energy Count

 

 

29,
31,
...
69,
71

VL1, VL2, VL3, IL1, IL2, IL3, PL1, PL2, PL3, Freq, QtrueL1, QtrueL2, QtrueL3, SL1,SL2, SL3, QL1, QL2, QL3, P.F.L1, P.F.L2, P.F.L3,   

4,

4,

73

celsius or fahrenheit temperature x 10 

4,

4,

75,
78,

Energy Count A, B, C, D  

6,

2,

81,
84

 

 

 

87,
89

auxiliary counter 1, 2 

4,

4,

<Table 3> Address and contents for function 4(Input Register)

 
2. Writing settings

 You can write the setting value  by using 'writing settings'. 

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             0 ~ 255 controller station number.

3)  ADDRESS          Writing modbus address. (0 ~ 13, refer to <Table 4>)

4)  Extra1                  Don't care.

5) Extra2                   Don't care.

Address Contents
1 reset of the average active power
2 reset of the average apparent power
3 reset of the average active power peaks
4 reset of the average apparent power peaks
5 reset of the average active energy meter
6 general reset of the instrument
7 syncronisation signal of the integration of the averages
8 peak data reset
9 power off
10 on/off relay 1
11 on/off relay 2
12 degress Celsius or Farenheit (1 = 1 ¡É)
13 Relay watch dog enable (1 = enable)
<Table 4> Address and contents for Digital write(function 5)

Write example 1)

PORT:0,  station:1, ADDRESS:0010, Extra1:  ,  Extra2 : 0

The setting parameter shown above is setting example for on/off relay 1.

 

Analog Write 

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             0 ~ 255 controller station number.

3)  ADDRESS          Writing modbus address. (0 ~ 8, refer to <Table 5>)

4)  Extra1                  Don't care.

5) Extra2                   Don't care.

Address Contents
1 current transformation ratio (1~9999)
2 voltage transformation ratio (1~9999)
3 average integration time(1~99)
4 selection of tariff change
5 current time : second, minute
6 current time : hour, day
7 current time : month, year
8 Watch Dog Timer
<Table 5> Address and contents for Analog write(function 6)

Write example 1)

PORT:0,  station:1, ADDRESS:0005, Extra1:  ,  Extra2 : 0

The setting parameter shown above is second and minute of current time setting example.