HPR-MD MODBUS communication driver is the driver to communicate with digital protective relay controller of HyoSung in Korea.
<Figure 1> is read setting example of HPR-MD MODBUS communication driver.
<Figure 1> Read setting example of HPR-MD MODBUS communication driver |
Device part of <Figure 1> input Com Port(COM1), Baud Rate(19200), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to setting of controller.
Note) Station number, baud rate, etc of HPR-MD power meter can set by using operation button of front panel.
HPR-MD MODBUS communication driver read schedule
Read schedule setting parameters are as follows:
1) Station – 0 ~ 255 station number of power meter.(you can set by using operation button of fron panel)
2) Device name of function number – Device name or function number of Modbus protocol.
Device name = DATA, EVENT1 ~ 3, FAULT1 ~ 3, RELAY, WAVE, INPUT. ( refetr to <Table 1>)
3) Read Start Address – Reading start address of modbus protocol. Don't care when using Device name.
4) Save start address for Communication Server – Saving start address of Communication Server.
5) Read Size – Read size(Word unit).
Read schedule example)
READ, 1, DATA, 0, 0, 36,
READ, 1, RELAY, 0, 50, 1,
READ, 1, INPUT, 0, 100, 1,
READ, 1, WAVE, 0, 150, 1,
<Table 1> is device type and contents of HPR-MD MODBUS communication driver.
<Table 2>, <Table 3> are data saving address and contetns of basic Data, Event record.
<Table 4>, <Table 5> are data saving address and contetns of Fault record, Relay Setting status.
<Table 6>, <Table 7> are data saving address and contetns of Header information and Fault wave Data, Digital Input status.
Device name |
Contents |
Read size |
DATA |
basic Data |
36 Word |
EVENT1 EVENT2 EVENT3 |
Event record |
7 Word |
FAULT1 FAULT2 FAULT3 |
Fault record |
7 Word |
RELAY |
Relay Setting status |
17 Word |
WAVE |
Header information and Fault wave Data |
15 : Header + 10 x 12 wave info (Word) |
INPUT |
Digital Input status |
10 Bit |
<Table 1> Device type and contents of HPR-MD MODBUS communication driver |
Data Saving Address |
Contents |
Remarks |
Start Addr + 0 |
HPR Type |
0x11 (MD model) |
Start Addr + 1 |
LOCAL/REMOTE |
0 : Local, 1 : Remote |
Start Addr + 2 |
R phase current LSB |
X 100
unit : A |
Start Addr + 3 |
R phase current MSB |
|
Start Addr + 4 |
S phase current LSB |
|
Start Addr + 5 |
S phase current MSB |
|
Start Addr + 6 |
T phase current LSB |
|
Start Addr + 7 |
T phase current MSB |
|
Start Addr + 8 |
N phase current LSB |
|
Start Addr + 9 |
N phase current MSB |
|
Start Addr + 10 |
R phase voltage LSB |
X 10
unit : V |
Start Addr + 11 |
R phase voltage MSB |
|
Start Addr + 12 |
S phase voltage LSB |
|
Start Addr + 13 |
S phase voltage MSB |
|
Start Addr + 14 |
T phase voltage LSB |
|
Start Addr + 15 |
T phase voltage MSB |
|
Start Addr + 16 |
N phase voltage LSB |
|
Start Addr + 17 |
N phase voltage MSB |
|
Start Addr + 18 |
RS phase voltage LSB |
X 10
unit : V |
Start Addr + 19 |
RS phase voltage MSB |
|
Start Addr + 20 |
ST phase voltage LSB |
|
Start Addr + 21 |
ST phase voltage MSB |
|
Start Addr + 22 |
TR phase voltage LSB |
|
Start Addr + 23 |
TR phase voltage MSB |
|
Start Addr + 24 |
ACTIVE power LSB |
X 1000 unit : KW |
Start Addr + 25 |
ACTIVE power MSB |
|
Start Addr + 26 |
REACTIVE power LSB |
X 1000 unit : KVar |
Start Addr + 27 |
REACTIVE power MSB |
|
Start Addr + 28 |
ACTIVE ENERGY LSB |
X 10 unit : KWh |
Start Addr + 29 |
ACTIVE ENERGY MSB |
|
Start Addr + 30 |
REACTIVE ENERGY LSB |
X 1000 unit : KVarh |
Start Addr + 31 |
REACTIVE ENERGY MSB |
|
Start Addr + 32 |
POWER FACTER |
X 1000 |
Start Addr + 33 |
frequency |
X 100 unit : Hz |
Start Addr + 34 |
DI State |
|
Start Addr + 35 |
Event Count, Fault Count |
higher 8 Byte : Fault Count, lower 8 Byte : Event Count |
<Table 2> Data saving address and contetns of basic Data |
Data Saving Address | Contents |
Remarks |
Start Addr + 0 | HPR Type |
0x11 (MD model) |
Start Addr + 1 | higher 8 Byte : ID2, lower 8 Byte : ID1 |
ID1, ID2, ID3 = refer to user manual of HPR |
Start Addr + 2 | higher 8 Byte : Event Position, lower 8 Byte : ID3 |
|
Start Addr + 3 | higher 8 Byte : Month, lower 8 Byte : Year |
|
Start Addr + 4 | higher 8 Byte :Day, lower 8 Byte : Date |
Date = 1 (sunday) ~ 7 (saturday) |
Start Addr + 5 | higher 8 Byte : Min, lower 8 Byte : Hour |
|
Start Addr + 6 | higher 8 Byte : 0x33, lower 8 Byte : Sec |
|
<Table 3> Data saving address and contetns of Event record |
Data Saving Address | Contents |
Remarks |
Start Addr + 0 | HPR Type |
0x11 (MD model) |
Start Addr + 1 | higher 8 Byte : ID2, lower 8 Byte : ID1 |
ID1, ID2 = refer to user manual of HPR |
Start Addr + 2 | higher 8 Byte : Fault Position, lower 8 Byte : 0x00 |
|
Start Addr + 3 | higher 8 Byte : Month, lower 8 Byte : Year |
|
Start Addr + 4 | higher 8 Byte :Day, lower 8 Byte : Date |
Date = 1 (sunday) ~ 7 (saturday) |
Start Addr + 5 | higher 8 Byte : Min, lower 8 Byte : Hour |
|
Start Addr + 6 | higher 8 Byte : 0x44, lower 8 Byte : Sec |
|
<Table 4> Data saving address and contetns of Fault record |
Data Saving Address | Contents |
Remarks |
Start Addr + 0 | HPR Type |
0x11 (MD model) |
Start Addr + 1 | IOCR current |
|
Start Addr + 2 | IOCR Lock |
|
Start Addr + 3 | IOCGR current |
|
Start Addr + 4 | IOCGR Lock |
|
Start Addr + 5 | higher 8 Byte : TOCR Curve, lower 8 Byte : TOCR current |
|
Start Addr + 6 | higher 8 Byte : TOCR Lock, lower 8 Byte : TOCR Time Tab |
|
Start Addr + 7 | higher 8 Byte : TOCGR Curve, lower 8 Byte : TOCGR current |
|
Start Addr + 8 | higher 8 Byte : TOCGR Lock, lower 8 Byte : TOCGR Time Tab |
|
Start Addr + 9 | TOVR voltage |
|
Start Addr + 10 | higher 8 Byte : TOVR Lock, lower 8 Byte : TOVR Time Tab |
|
Start Addr + 11 | higher 8 Byte : TOVGR Time Tab, lower 8 Byte : TOVGR voltage |
|
Start Addr + 12 | higher 8 Byte : 0x00, lower 8 Byte : TOVGR Lock |
|
Start Addr + 13 | higher 8 Byte : TUVR Time Tab, lower 8 Byte : TUVR voltage |
|
Start Addr + 14 | higher 8 Byte : 0x00, lower 8 Byte : TUVR Lock |
|
Start Addr + 15 | SGR |
|
Start Addr + 16 | SGR |
|
<Table 5> Data saving address and contetns of Relay Setting status |
Data Saving Address | Contents |
Remarks |
Start Addr + 0 | higher 8 Byte : FNum, lower 8 Byte : HPR Type |
FNum = Fault Num (0 ~ 31) |
Start Addr + 1 | higher 8 Byte : ZCT Ratio, lower 8 Byte : CNum |
CNum = Segment Num (0 ~ 23) |
Start Addr + 2 | CT Ratio |
|
Start Addr + 3 | GPT Ratio |
|
Start Addr + 4 | PT Ratio LSB |
|
Start Addr + 5 | PT Ratio MSB |
|
Start Addr + 6 | Index |
|
Start Addr + 7 | Ir Scale |
|
Start Addr + 8 | Is Scale |
|
Start Addr + 9 | It Scale |
|
Start Addr + 10 | In Scale |
|
Start Addr + 11 | Vr Scale |
|
Start Addr + 12 | Vs Scale |
|
Start Addr + 13 | Vt Scale |
|
Start Addr + 14 | Vn Scale |
|
Start Addr + 15 | R phase current |
|
Start Addr + 16 ~ 24 | S phase current |
Point 1 wave information |
T phase current |
||
N phase current |
||
R phase voltage |
||
S phase voltage |
||
T phase voltage |
||
N phase voltage |
||
DI status |
||
DO status |
||
Start Addr + 25 ~ 34 | ¡° |
Point 2 wave information |
~ | ¡° |
~ |
Start Addr + 125 ~ 134 | ¡° |
Point 12 wave information |
<Table 6> Data saving address and contetns of Header information and Fault wave Data |
Data Saving Address | Contents |
Remarks |
Start Addr + 0 | digital input status |
0 ~ 9 Bit |
<Table 7> Data saving address and contetns of Digital Input status |
If you click the icon in protocol option part, you can see the dialogue box such as <Figure 2>. you can also set read schedule by using this part.
<Figure 2> Example of HPR-MD MODBUS communication driver¡¯s Option dialogue box |
You can set read schedule by using , , button and listbox of <Figure 2>.
<Figure 3> Example of HPR-MD MODBUS communication driver¡¯s read schedule Add/Edit dialogue box |
When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.
You can set HPR-MD controller by using write settings.
Digital Write
Digital write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION 0 ~ 255 station number of HPR-MD controller.
3) ADDRESS Writing address according to Extra1.
RELAY – 0 ~ 25 address, refer to <Table 8>,
TIME – 0 ~ 23 = hour,
DATE – 0 ~ 99 = year,
Read Command – Data saving address(WORD memory, decimal unit),
other command – don't care.(fixed according to command),
4) Extra1 Write command.
RELAY – Relay setting,
CT – CT Ratio setting (5 ~ 6000),
GPT– GPT Ratio setting (199 ~ 999),
PTT – PT Type setting ( 0 : 2PT, 1 : 3PT),
PT – PT Ratio setting ( 110 ~ 345000 ),
CB – CB ON/OFF control (0 : OFF, 1 : ON, can control only Remote mode),
TIME – time setting,
DATE- data setting,
RESET- Reset of power,
REMOTE- Local/Remote setting (0 : Local, 1 : Remote)
DATA, EVENT1~3, FAULT1~3, RELAY, WAVE, INPUT read command - save to WORD memory from input 'Address' after reading the data.
5) Extra2 Minute or day of the week when TIME, DATE command.
TIME – minute (0 ~ 59),
DATE – day of the week (1(sunday) ~ 7(saturday),
Read command or other command - Don't care.
<Table 8> is Address and contents for Relay setting writie command.
Address |
Contents |
Output range |
Remarks |
0000 |
HPR Type |
0x11 ~ 0x44 |
|
0001 |
IOCR current |
100 ~ 1000 |
X 10 |
0002 |
IOCR Lock |
0 ~ 1 |
|
0003 |
IOCGR current |
25 ~ 400 |
X 10 |
0004 |
IOCGR Lock |
0 ~ 1 |
|
0005 |
TOCR current |
20 ~ 160 |
X 10 |
0006 |
TOCR Curve |
1 ~ 4 |
|
0007 |
TOCR Time Tab |
1 ~ 20 |
|
0008 |
TOCR Lock |
0 ~ 1 |
|
0009 |
TOCGR current |
5 ~ 25 |
X 10 |
0010 |
TOCGR Curve |
1 ~ 4 |
|
0011 |
TOCGR Time Tab |
1 ~ 20 |
|
0012 |
TOCGR Lock |
0 ~ 1 |
|
0013 |
TOVR voltage |
121 ~ 165 |
X 1 |
0014 |
TOVR Time Tab |
1 ~ 19 |
|
0015 |
TOVR Lock |
0 ~ 1 |
|
0016 |
TOVGR voltage |
19 ~ 76 |
X 1 |
0017 |
TOVGR Time Tab |
1 ~ 19 |
|
0018 |
TOVGR Lock |
0 ~ 1 |
|
0019 |
TUVR voltage |
55 ~ 99 |
X 1 |
0020 |
TUVR Time Tab |
1 ~ 19 |
|
0021 |
TUVR Lock |
0 ~ 1 |
|
0022 |
TSGR voltage |
|
don't care |
0023 |
TSGR current |
|
|
0024 |
TSGR Time Tap |
|
|
0025 |
TSGR Lock |
|
|
<Table 8> Address and contents for Relay setting writie command |
Write example 1)
PORT:0, station:1, ADDRESS:0000, Extra1:CB, Extra2 :
The setting parameter shown above is CB control(0 = OFF, 1 = ON) example of 1 station HPR-MD controller.
Write example 2)
PORT:0, station:1, ADDRESS:0000, Extra1:REMOTE, Extra2 :
The setting parameter shown above is Local(OFF)/Remote(ON) control example of 1 station HPR-MD controller.
Write example 2)
PORT:0, station:1, ADDRESS:0100, Extra1:DATA, Extra2 :
The setting parameter shown above is a example for 'DATA' reading command.
After 'write command', save the readed data at 100 ~ 135 WORD memory.
Analog Write
Analog write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION 0 ~ 255 station number of HPR-MD controller.
3) ADDRESS Writing address according to Extra1.
RELAY – 0 ~ 25 address, refer to <Table 8>,
TIME – 0 ~ 23 = hour,
DATE – 0 ~ 99 = year,
Read Command – Data saving address(WORD memory, decimal unit),
other command – don't care.(fixed according to command),
4) Extra1 Write command.
RELAY – Relay setting,
CT – CT Ratio setting (5 ~ 6000),
GPT– GPT Ratio setting (199 ~ 999),
PTT – PT Type setting ( 0 : 2PT, 1 : 3PT),
PT – PT Ratio setting ( 110 ~ 345000 ),
CB – CB ON/OFF control (0 : OFF, 1 : ON, can control only Remote mode),
TIME – time setting,
DATE- data setting,
RESET- Reset of power,
REMOTE- Local/Remote setting (0 : Local, 1 : Remote)
DATA, EVENT1~3, FAULT1~3, RELAY, WAVE, INPUT read command - save to WORD memory from input 'Address' after reading the data.
5) Extra2 Minute or day of the week when TIME, DATE command.
TIME – minute (0 ~ 59),
DATE – day of the week (1(sunday) ~ 7(saturday),
Read command or other command - Don't care.
Note) Output Value = 0 ~ 59, setting of second for TIME write command,
Output Value = Higher 2 digit : 1 ~ 12 month, Lower 2 digit : 1 ~ 31 day for DATE write command.
Write example 1)
PORT:0, station:1, ADDRESS:0000, Extra1:CT, Extra2 :
The setting parameter shown above is a CT ratio setting example of 1 station HPR-MD controller.
Write example 2)
PORT:0, station:1, ADDRESS:0000, Extra1:PTT, Extra2 :
The setting parameter shown above is a PT type(0 : 2PT, 1 : 3PT) setting example of 1 station HPR-MD controller.
Write example 3)
PORT:0, station:1, ADDRESS:0000, Extra1:PT, Extra2 :
The setting parameter shown above is a PT ratio setting example of 1 station HPR-MD controller.
Write example 4)
PORT:0, station:1, ADDRESS:0001, Extra1:DATE, Extra2 : 2, Output Value : 1112
The setting parameter shown above is Date setting example of 1 station HPR-MD controller. Date setting value = 2001-11-12, Monday.
Write example 5)
PORT:0, station:1, ADDRESS:0013, Extra1:TIME, Extra2 : 35, Output Value : 25
The setting parameter shown above is Time setting example of 1 station HPR-MD controller. Time setting value = 13:35:25.
Write example 6)
PORT:0, station:1, ADDRESS:0001, Extra1:RELAY, Extra2 :
The setting parameter shown above is 'IOCR current'( refer to <Table 8> ) setting example of 1 station HPR-MD controller.