EHWA UPS Communication Driver

 

EHWA UPS communication driver is the driver to communicate with uninterruptible power supply 065 (Single) model controller of Ewha Technologies Information Co,. Ltd. in Korea.

 

1. Read settings

 

<Figure 1> is read setting example of  EHWA UPS communication driver. 

<Figure 1>  Read setting example of  EHWA UPS communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(fixed to 2400), Parity Bit(2), Data Bit(7), Stop Bit(1) respectively, according to setting of controller.

 

EHWA UPS communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) Station – Controller station number.

2) Read Command – Command = G,a,b,c,d,e,f.... ( Refer to <Table 1> ~ <Table 7> )

3) Read Start Address Don't care.

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

5) Read Size – fixed to 1. ( Refer to <Table 1> ~ <Table 7> )

 

Read schedule example) 

READ,     0,     G,     0,    0,   1,

READ,     0,     a,     0,    3,   1,

READ,     0,     b,     0,    10,   1,

READ,     0,     c,     0,    20,   1,

READ,     0,     d,     0,    30,   1,

READ,     0,     e,     0,    40,   1,

READ,     0,     f,     0,    50,   1,

 

<Table 1> ~ <Table 7> are data saving address and contents of each read command.

Data Saving Address Contents Remarks
Start Add + 0 Status of event 1 : don't exist event, 3 : new event

Start Add + 1

Status of current UPS

15 bit : LOAD OFF,           14 bit : Command reset..,

13 bit : Q1 open,            12 bit : Inverter on,

11 bit : Not used,           10 bit : Acoustic alarm,

9 bit  : Detour on,           8 bit : Main rectifier on,

7 bit  : Main bypass ok,      6 bit : Bypass on,

5 bit  : Program stop active, 4 bit : Rectifier on,

3 bit  : Alarm active,        2 bit : Battery discharging,

1 bit  : Battery charging,    0 bit : Not used,

<Table 1> Data saving address and contents of 'G' read command
Data Saving Address Contents Remarks
Start Add + 0 Line voltage 1 Load - measures
Start Add + 1 Line voltage 2
Start Add + 2 Line voltage 3
Start Add + 3 Line current 1
Start Add + 4 Line current 2
Start Add + 5 Line current 3
Start Add + 6 Load percent
<Table 2> Data saving address and contents of 'a'(Load-measures) read command
Data Saving Address Contents Remarks
Start Add + 0 Line voltage 1 Invert- measures
Start Add + 1 Line voltage 2
Start Add + 2 Line voltage 3
Start Add + 3 Phase voltage 12
Start Add + 4 Phase voltage 23
Start Add + 5 Phase voltage 31
Start Add + 6 Frequency(0.1 unit)
<Table 3> Data saving address and contents of 'b'(Invert-measures) read command
Data Saving Address Contents Remarks
Start Add + 0 Bypass line voltage 1 Main - measures
Start Add + 1 Bypass line voltage 2
Start Add + 2 Bypass line voltage 3
Start Add + 3 Rectifier phase voltage 12
Start Add + 4 Rectifier phase voltage 23
Start Add + 5 Rectifier phase voltage 31
<Table 4> Data saving address and contents of 'c'(Main-measures) read command
Data Saving Address Contents Remarks
Start Add + 0 Voltage Battery - measures
Start Add + 1 Current
Start Add + 2 Autonomy :Battery remain time(30 seconds unit)
Start Add + 3 Temperature(0.1 unit)
<Table 5> Data saving address and contents of 'd'(Battery-measures) read command
Data Saving Address Contents Remarks
Start Add + 0 Load percent(0 ~ 100) Mixed - measures
Start Add + 1 Invert frequency (0.1 unit)
Start Add + 2 Autonomy :Battery remain time(30seconds unit)
<Table 6> Data saving address and contents of 'e'(Mixed-measures) read command
Data Saving Address Contents Remarks
Start Add + 0 Rectifier output dc current Rect I dc - measures
<Table 7> Data saving address and contents of  'f ' (Rect I dc-measures) read command

 

2. Writing settings

You can write the setting value by using write settings.

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Controller station number.

3)  ADDRESS           Don't care.

4)  Extra1                   Write command.

0 : alarm reset,

2 : load on mains,

3 : load on invert,

4 : invert off,

5 : invert on,

6 : rectifier off,

 7 : rectifier on,

 8 : ups on,

 9 : ups standby.

5)  Extra2                   Don't care.

 

Write example 1) 

Port : 0,  Station : 0,  Address : 0000,  EXTRA1 : 0,  EXTRA2 : 0

The setting parameter shown above is alarm reset control example at 0 controller station.

  

Analog Write

Analog write and digital write have the same setting parameters except output value.