Professional Documents
Culture Documents
2. SERIAL COMMUNICATION CIRCUITS After plugging the cable adapter and powering up
the computer and energy meter, it is possible to test the
Some energy meters are equipped, either optical connection by using DOS emulated command line (on
isolated open collector and emitter transistor, or Windows command prompt). Pressing Start> Run>cmd
infrared output LED. Both solutions are similar, there and typing mode command line with appropriate
are only few differences, as shown in figure 1. parameters, a message is printed on screen.
a) b)
p=1 dtr=on rts=off <ENTER>
Fig. 1. Optoisolated serial port readout circuit
Status for device COM1:
-----------------------
Baud: 1200
Volume 55, Number 3-4, 2013 239
3.8.0*1(000001.005*kvarh)(0 11-06-
After com1 port configuration session, we can 0112:45:53)
read the exported frame, containing energy meter
1.6.1(000.000*kW)(0 11-06-0112:45:53)
parameters. The device automatically transmits
(periodically about 10s time stamp) the user 1.6.2(000.000*kW)(0 11-06-0112:45:53)
configurable, clear readable ASCII text, information
frame, as show below. 1.6.1*1(000.540*kW)(0 11-05-1016:30:00)
2.8.1(000000.000*kWh) 31.6.2(000*A)
2.8.2(000000.000*kWh) 51.6.1(002*A)
2.8(000000.000*kWh) 51.6.2(000*A)
240 ACTA ELECTROTEHNICA
71.6.1(002*A) Table 1.
Data
name STX ! CR LF ETX BCC
71.6.2(000*A) block
variab
code 0x02 0x21 0x0D 0x0A 0x03 0x??
le
31.6(002*A)
51.6(002*A)
Data block contain a variable number of data sets,
71.6(002*A) depending on user configurable device settings. A data
set can be represented in one or more lines, separated
15.7(000.000*kW) by <CR> and <LF> characters, if needed. Each data
line can contain maximum 78 characters (80 with
1.16(002.440*kW) <CR> and <LF>). The data set format is show in table
2.
9.7(000000*VA) Table 2.
OBIS Param.
9.14(000000*VA) ( * Unit ) CR LF
code Value
variable 0x28 variable 0x2A Var. 0x29 0x0D 0x0A
13.7(+1.00)
33.7(+1.00)
To extract interested parameters, provided by
53.7(+1.00)
measure device, the received data message must be split
into data sets and each data set into parameter value and
73.7(+1.00) measurement unit. This paper describes a sample
solution, based on OPC DA environment, which solve
C.2(00005) the desired problem.[1]
C.66(00005)
4. OPC DA IMPLEMENTATION
C.7(043)
OPC (OLE for Process Control) was developed to
C.5(000000)
allow devices with different interfaces, channels and
protocols, to be integrated in a single remote data
! acquisition and monitoring virtual system. There are
many application packages provided by software
developer companies, in this paper Kepwares OPC
Server product is used.[6]
This message contains the short OBIS code (as The main parts are KEPServerEX with U-CON
defined by [3, 5]), of a parameter, value and measure (User Configurable) driver, for connection support and
unit, separated by special characters. Each parameter is data acquisition, and Infilink HMI (Kessler Ellis
printed in separate line, ended by a pair of Products) for user friendly graphic interface.[8]
<CR><LF>characters. To create an application project, several tasks
must be performed. OPC Server configuration involve
channel (interface and appropriate protocol), device and
tags properties configuration, as shown in figure 2-4.
3. IEC 62056-21 PROTOCOL FORMAT User Configurable Driver allows programmers to
create the script according to dedicated protocol to be
IEC 62056-21 international standard provides used. Because energy meter device transmits
electrical, mechanical and data exchange specification periodically data frames, without any external
support. There is a few protocol versions described in command, the unsolicited mode must be selected.[7]
this standard, but this device uses protocol format D.
Data exchange is unidirectional in protocol mode
D and permits readout only. The information flows
from the tariff device to the HHU. Data transmission is
initiated, for example by operating a push button or
other sensor on the tariff device [1]. In this case, the
device transmits data periodically, without any other
action.
The readout data message is a simple line based
parameter sequences string, with start/end delimiter
characters. To avoid data errors during transmission, a Fig. 2. OPC Server configuration, main window
block check sequence is also used. The general message
frame format is show in table 1. Serial port communication parameters must be
configured according to the energy measurement device
Volume 55, Number 3-4, 2013 241
specifications (baud rate, parity, data bits etc.). The After defining all tags and their parameters, the
readout circuit, as shown in figure 1, must be electrical next step is to create the chat script, that mean a
supplied by using unusual DTR flow control. sequence of write, read, conditional and processing
commands. The script allows drawing out each
parameter (tag), as shown in figure 5-6.
5. RESULTS
Infilink environment allows creating many
graphical objects attacked to imported tags from OPC
Server. As an OPC client, this application can
communicate with server running on same computer, or
on another one, using network through OPC and
TCP/IP protocols.
REFERENCES
1. IEC 62056-21, Electricity metering -Data exchange for meter
reading, tariff and load control. Direct local data exchange, First
edition, 2002-05.
2. Drgan, F., Protocoale de comunicaie, UT Press, ISBN978-973-
662-378-3, Cluj-Napoca, 2008.
3. DLMS UA WG Maintenance, Object definition tables, V2.7,
17th July 2013.
4. ***, Actaris, ACE 5000 type 5.1, Three Phase Time Switch
Fig. 8. Infilink software HMI graphic display Static Meter, Technical Document.
5. IEC 62056-53, Electricity metering -Data exchange for meter
reading, tariff and load control. COSEM application layer 2006.
Furthermore displaying de instant value, this 6. ***, Kepware Technologies, KEPServerEX V5 Help, 2014.
application allow display simple trend diagrams of a 7. ***, Kepware Technologies, User-Configurable Driver User
parameter. In a similar manner, it is possible to join Help, 2012.
different OPC based software, such as databases 8. ***, Kessler-Ellis Products, INFILINK HMI Software for
Windows, Users Guide, Revision 4.04, 2012.
historical journals, or alarms and events applications
AKNOWLEDGEMENT