EMS-43 Communication Driver

 

EMS(Electricity Measurement System)-43 communication driver is the driver to communicate with power meter controller of ALGODUE electronica in Italy.

 

1. Read settings

 

<Figure 1> is read setting example of  EMS-43 communication driver. 

<Figure 1>  Read setting example of  EMS-43 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.

EMS-43 controller can set baud rate(300, 600, 1200, 2400,4800, 9600), parity bits(0, 1, 2), stop bits(1, 2) by using setting of communication parameter.

 

EMS-43 communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) Station – Controller station number(Logical Number).

2) Read Command – Command = 00, 06, 18, 28, 30, 61, 63, 78, 7F....

3) Read Start Address Don't care.

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

5) Read Size – read size of word/float unit. ( Refer to <Table 1> ~ <Table 2> )

 

Read schedule example) 

FLOAT,  1,  00,  0,    0,  1,
FLOAT,  1,  06,  0,  10,  1,
FLOAT,  1,  18,  0,  20,  1,
FLOAT,  1,  28,  0,  30,  1,
FLOAT,  1,  30,  0,  40,  1,
FLOAT,  1,  61,  0,  50,  1,

 

<Table 1> is read command and contents of One Phase System.

<Table 2> is read command and contents of Three Phase System

Read Command
Contents
Data Saving Address
Remarks
00 Voltage (rms), Start Add + 0  
06 Current (rms) Start Add + 0  
Power Factor Start Add + 1
18 Apparent Power Start Add + 0  
Active Power Start Add + 1
28 Reactive Power Start Add + 0  
Frequency Start Add + 1
Temperature Start Add + 2
30 Active Energy Start Add + 0  
Apparent Energy Start Add + 1
Reactive Energy Start Add + 2
Reactive Capacitive Energy Start Add + 3
61 Maximum Current Start Add + 0 ~ 6  
Maximum Average Active Power
Maximum Average Apparent Power
Maximum Average Current
Average Active Power
Average Apparent Power
Average Current
63 Serail Number save only STRING memory String data
78 Firmware Version Start Add + 0  
7F Configuration Start Add + 0  
<Table 1> Read command and contents of One Phase System
Read Command
Contents
Data Saving Address
Remarks
00 System Voltage (rms), Start Add + 0 ~ 6  
Phase L1 Voltage (rms),
Phase L2 Voltage (rms),
Phase L3 Voltage (rms),
Phase L1-L2 Voltage (rms),
Phase L2-L3 Voltage (rms),
Phase L3-L1 Voltage (rms),
06 System Current (rms) Start Add + 0 ~ 7  
Line L1 Current (rms)
Line L2 Current (rms)
Line L3 Current (rms)
Power Factor
Line L1 Power Factor
Line L2 Power Factor
Line L3 Power Factor
18 Apparent Power ÀúÀåÀ§Ä¡ + 0 ~ 7  
Phase L1 Apparent Power
Phase L2 Apparent Power
Phase L3 Apparent Power
Active Power
Phase L1 Active Power
Phase L2 Active Power
Phase L3 Active Power
28 Reactive Power Start Add + 0 ~ 5  
Phase L1 Reactive Power
Phase L2 Reactive Power
Phase L3 Reactive Power
Frequency
Temperature
30 Active Energy Start Add + 0 ~ 3  
Apparent Energy
Reactive Energy
Reactive Capacitive Energy
61 Maximum Current I1 Start Add + 0 ~ 8  
Maximum Current I2
Maximum Current I3
Maximum Average Active Power
Maximum Average Apparent Power
Maximum Average Current
Average Active Power
Average Apparent Power
Average Current
63 Serail Number save only STRING memory String data
78 Firmware Version Start Add + 0  
7F Configuration Start Add + 0  
<Table 2> Read command and contents of Three Phase System

<Table 3> is read and write commands and contents of EMS-43 communication driver.

Read/Write Command
Contents
Remarks
80 Communication Baud Rate 300 ~ 9600bps
Parity Type N, O, E
Data Bit 8
Stop Bit 1 ~ 2
84 Controller station(Logical Number) R/W
90 Transform Ratios CTs
92 Transform Ratios VTs
98 Integration Time Value to Calculate the Average Power(min)
9F Initialization Write Only
A0 Digital Output 1 Pulse

R/W enable when using Digital Output

A1 Digital Output 1 Threshold
B0 Digital Output 2 Pulse
B1 Digital Output 2 Threshold
A4 Digital Output 3 Pulse
A5 Digital Output 3 Threshold
CE Maximum Current Value Reset Write Only
DA Wiring Connection(Write Only)

03 : 3 Phase Wiring

01 : 1 Phase Wiring

DB Current Input Full Scale

01 : 1 A f.s

05 : 5 A f.s

<Table 3> Read and write commands and contents of EMS-43 communication driver

 

2. Writing settings

You can write 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           Write variable setting when A0, A1, B0, B1, A4, A5 write command.

A0, B0, A4 write command(Digital Output) : 0 ~ 3 variable number( Refer to <Table 4>),

 A1, B1, A5 write command(Digital Output Threshold) : 0 ~ 3 variable number( Refer to <Table 5>),

other command : don't care.

4)  Extra1                   Write command = 80, 84, 90, 92, 98, 9F, A0, A1, B0, B1, A4, A5, CE, DA, DB.... ( Refer to <Table 3> or <Table 6> )

5)  Extra2                   Extra data setting.

 80 write command : 1 or 2 Stop Bit setting,

A0, A1, B0, B1, A4, A5 write command : output value setting ( Refer to <Table 6> ).

other command : don't care.

 

Write example 1)

Port : 0,  Station : 1,  Address : 0000,  Extra1 : 9F, EXTRA2 :

The setting parameter shown above is Initialization example of 1 EMS-43 controller station number.

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Controller station number.

3)  ADDRESS           Write variable setting when A0, A1, B0, B1, A4, A5 write command.

A0, B0, A4 write command(Digital Output) : 0 ~ 3 variable number( Refer to <Table 4>),

 A1, B1, A5 write command(Digital Output Threshold) : 0 ~ 3 variable number( Refer to <Table 5>),

other command : don't care.

4)  Extra1                   Write command = 80, 84, 90, 92, 98, 9F, A0, A1, B0, B1, A4, A5, CE, DA, DB.... ( Refer to <Table 3> or <Table 6> )

5)  Extra2                   Setting data when 80, A0, A1, B0, B1, A4, A5 write command.

 80 write command : 1 or 2 Stop Bit setting,

A0, A1, B0, B1, A4, A5 write command : output value setting ( Refer to <Table 6> ).

other command : don't care.

Type

Write variable range

Contents

One or three phase controller

00

Active Energy

01

Apparent Energy

02

Inductive Energy

03

Capacitive Energy

<Table 4> Address range of A0, B0, A4(Digital Output Pulse) write command

Type

Write variable range

Contents

One

Phase

00

System Voltage

01

System Current

02

System Power Factor

03

System Active Power

04

System Apparent Power

05

System Reactive Power

Three

Phase

00

System Voltage

01

Line L1 Voltage

02

Line L2 Voltage

03

Line L3 Voltage

04

Line L1-2 Voltage

05

Line L2-3 Voltage

06

Line L3-1 Voltage

07

System Current

08

Line L1 Current

09

Line L2 Current

10

Line L3 Current

11

System Power Factor

12

Phase L1 Power Factor

13

Phase L2 Power Factor

14

Phase L3 Power Factor

15

System Apparent Power

16

Phase L1 Apparent Power

17

Phase L2 Apparent Power

18

Phase L3 Apparent Power

19

System Active Power

20

Phase L1 Active Power

21

Phase L2 Active Power

22

Phase L3 Active Power

23

System Reactive Power

24

Phase L1 Reactive Power

25

Phase L2 Reactive Power

26

Phase L3 Reactive Power

<Table 5> Address range of  A1, B1, A5(Digital Output Threshold) write command
Write command
Contents
Setting data range

80

Communication Baud Rate

300, 600, 1200,

2400, 4800, 9600

Stop Bit 1, 2

84

Controller station setting(Logical Number) 00 ~ FF

98

Integration Time Value to Calculate the Average Power(min)

01, 02, 05, 10,

15, 30, 45, 60

A0

Digital Output 1 Pulse

20, 40, 60, 80, 100,

150, 200, 250

B0

Digital Output 2 Pulse

A4

Digital Output 3 Pulse

A1

Digital Output 1 Threshold

1, 2, 3, 5, 7, 10, 15,

20, 30, 45, 60, 75, 90,

120, 180, 240

B1

Digital Output 2 Threshold

A5

Digital Output 3 Threshold

DA

Wiring Connection(Write Only) 03, 01

DB

Current Input Full Scale 01, 05
<Table 6> Setting data range and contents of write command

Write example 1)

Port : 0,  Station : 1,  Address : 0000,  Extra1 : 80, EXTRA2 : 1,  Output value = 9600

The setting parameter shown above is a setting example of 1 EMS-43 station's baud rate and stop bit, setting value equal 9600 bps and 1 bit.

 

Write example 2)

Port : 0,  Station : 1,  Address : 0000,  Extra1 : 84, EXTRA2 : ,  Output value = 2

The setting parameter shown above is a controller's station change example form 1 to 2.

 

Write example 3)

Port : 0,  Station : 1,  Address : 0000,  Extra1 : 9F, EXTRA2 :

The setting parameter shown above is Initialization example of 1 EMS-43 controller station number.

 

Write example 4)

Port : 0,  Station : 1,  Address : 0003,  Extra1 : A0, EXTRA2 : 250, Output value = 1.0

The setting parameter shown above is Digital Output 1 Pulse writing example that the setting value equal, write variable = System Active Power or Line L3 Voltage, representation format = 0001.00, setting data = 250.

 

Write example 5)

Port : 0,  Station : 1,  Address : 0020,  Extra1 : A1, EXTRA2 : 30, Output value = 50.0

The setting parameter shown above is High Limit of Digital Output 1 Threshold writing example that the setting value equal, write variable = Phase L1 Active Power, Intervention Percentage Value = 0050.00, Delay Time = 30sec.

 

Write example 6)

Port : 0,  Station : 1,  Address : 0020,  Extra1 : DA, EXTRA2 : , Output value = 3

The setting parameter shown above is a change example of Wiring Connection to 3 phase.