HY-DAC Power Meter communication driver is the driver to communicate with power meter controller of Hanyang Electric Co., Ltd. in Korea.
<Figure 1> is read setting example of HTTP Data Read communication driver.
<Figure 1> Read setting example of HY-DAC Power Meter communication driver |
Device part of <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to setting of controller.
HY-DAC Power Meter communication driver read schedule
Read schedule setting parameters are as follows:
1) Station – 0 ~ 255 controller station number.
2) Read data type – DI = digital input, DO = digital output, AI = analog input, AO = analog output, SYS = read of system status.
3) Read Start Address – Reading start address. DI, DO, AI, AO = 0 ~ 15, SYS = 0 ~ 31.
4) Save start address for Communication Server – Saving start address of Communication Server.
5) Read Size – Read size. DI, DO, AI, AO = 1 ~ 16, SYS = 1.
6) Group number – DI, DO, AI = 0 ~ 3 group, AO = 0 group.
7) Single/Block selection – 0 = block, 1 = single(read size = always 1 ).
Read schedule example)
READ, 49, DI, 0, 0, 16, 0, 0,
READ, 49, DO, 0, 1, 16, 0, 0,
READ, 49, AI, 0, 10, 16, 0, 0,
READ, 49, AI, 0, 26, 16, 1, 0,
READ, 49, AO, 0, 42, 16, 0, 0,
READ, 49, SYS, 1, 58, 1, 0, 0,
READ, 49, SYS, 16, 59, 1, 0, 0,
<Table 1> is data type and contents of each Group, address for Analog Input.
Group | Address | Data type | Contents |
0 | 0 | VR | R phase voltage |
1 | VS | S phase voltage | |
2 | VT | T phase voltage | |
3 | V0 | G_PT voltage | |
4 | IR | R phase current | |
5 | IS | S phase current | |
6 | IT | T phase current | |
7 | I0 | Z_CT current | |
8 | EW | active power | |
9 | UEW | reactive power | |
10 | PF | power factor | |
11 | HZ | frequency | |
12 | WH0 | 1st 12 bit, amount of power | |
13 | WH1 | 2nd 12 bit, amount of power | |
14 | WH2 | 3rd 8 bit, amount of power | |
15 | don't use | ||
1 | don't use | ||
2 | don't use | ||
3 | don't use | ||
<Table 1> Data type and contents of each Group, address for Analog Input |
You can set HY-DAC Power Meter 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 controller.
3) ADDRESS Writing address according to Extra1.
DO – 0 ~ 15,
SYS – 0 ~ 31,
RST, ON, OFF – don't care.
4) Extra1 Write command.
RST – reset command,
ON – On command,
OFF– Off command,
DO – digital output command,
SYS – setting of system status.
5) Extra2 Setting of 0 ~ 3 group number when 'DO' write command.
Write example 1)
PORT:0, station:49, ADDRESS:0002, Extra1:DO, Extra2 : 0
The setting parameter shown above is 1st( 0 ) group, 3rd( 2 ) digital output control(On/Off) example of 49 station HY-DAC controller.
Write example 2)
PORT:0, station:49, ADDRESS:0000, Extra1:RST, Extra2 :
The setting parameter shown above is reset command example of 49 station HY-DAC controller.
Analog Write
Analog write setting parameters are as follows:
1) PORT Port no. (0 ~ 255)
2) STATION 0 ~ 255 station number of controller.
3) ADDRESS Writing address according to Extra1.
AO – 0 ~ 15,
SYS – 0 ~ 31,
RST, ON, OFF – don't care.
4) Extra1 Write command.
RST – reset command,
ON – On command,
OFF– Off command,
AO – analog output command,
SYS – setting of system status.
5) Extra2 Setting of 0 ~ 3 group number when 'AO' write command.
Write example 1)
PORT:0, station:49, ADDRESS:0005, Extra1:AO, Extra2 : 1
The setting parameter shown above is 2nd( 1 ) group, 6th( 5 ) analog output setting example of 49 station HY-DAC controller.
Write example 2)
PORT:0, station:49, ADDRESS:0016, Extra1:SYS, Extra2 :
The setting parameter shown above is 17th( 16 ) system status setting example of 49 station HY-DAC controller.