IEC62056-21:2002 Serial communication protocol

Supported device types and versions
Communication line configuration
Communication line protocol parameters
Communication station configuration
Station protocol parameters
I/O tag configuration
I/O tag address
Literature
Changes and modifications
Document revisions

Supported device types and versions


The protocol communicates in series with devices according to international standard IEC62056-21, protocol mode C.

Communication line configuration


Communication line protocol parameters


Configuration dialog box, tab Protocol parameters - select the protocol "IEC62056-21:2002 Serial".

Table 1

Parameter Meaning Unit Default value
Area Code The common call prefix for phone modem connection (only lines of MODEM category).    
Software 7E1 YES option switches SW emulation of transfer parameters of 7 data bits, even parity when the transfer parameters of 8 data bits are set, none parity (i.e. emulation 7E1 when 8N1 is set). YES/NO NO

Communication station configuration


Station protocol parameters


Configuration dialog box - tab Protocol parameters.
These parameters influence some optional protocol parameters. Following station protocol parameters can be set:

Table 2

Parameter Meaning Unit Default value
Modem Telephone Number Phone number for connection via modem with this station (only lines of MODEM category).    
Dial Timeout Maximal waiting time on connection via modem (only lines of MODEM category). sec 60
Dial Retry Count Maximum number of attempt to connect via modem (only lines of MODEM category). 1..20 1
Dial Retry Timeout Delay before attempting to dial after an unsuccessful connection attempt (only lines of MODEM category). sec 30
Wait First Timeout Time delay between sending the request and reading the answer.
Note: a device sends a 3-character manufacturer's identification in the identification message. Standard defines that if the 3-rd character is a lower case letter, (e.g. in identifications ELm or UNi), minimum reaction time for such device is 20 ms instead of 200 ms. If the 3-rd character is an upper case letter, this does not preclude supporting a 20 ms reaction time.
ms 200
Wait Timeout Time delay between reading the answer till it is completed. See the note of parameter Wait First Timeout. ms 200
Max Wait Retry Retry count of reading response till its completion. 1 .. 100 20
Retry Timeout Delay between the request retry if the error communication occurs. ms 1000 ms
Retry Count Retry count of request as far as the error communication. 1 .. 20 3
Disconnect Timeout Timeout for waiting for answer to modem hangup operation (only lines of MODEM category). sec 15
Ack Delay Delay after transmitting acknowledgement of received data (ACK). ms 100
Baudrate Changeover (Z) Value of parameter 'Z' - Baud rate identification (for baud rate changeover) of request Acknowledgement/option select message of protocol C mode.

Option AUTO finds out automatic the value 'Z' from acknowledgement of answer and uses it.

300 Baud
600 Baud
1200 Baud
2400 Baud
4800 Baud
9600 Baud
19200 Baud
38400 Baud
57600 Baud
115200 Baud
AUTO
2400 Baud
Data Readout Permission to read the current values ("data readout"). YES/NO YES
Manuf. Spec. Table Readout Nr.1 (Y) Permission to read the "manufacturer specific table" values, 1-st block.
Choice '-' means the values are not read, choice '6' to '9' means selected "manufacturer specific table" will be read.
-
6
7
8
9
-
Manuf. Spec. Table Readout Nr.2 (Y) Permission to read the "manufacturer specific table" values, 2-nd block.
Choice '-' means the values are not read, choice '6' to '9' means selected "manufacturer specific table" will be read.
-
6
7
8
9
-
Manuf. Spec. Table Readout Nr.3 (Y) Permission to read the "manufacturer specific table" values, 3-rd block.
Choice '-' means the values are not read, choice '6' to '9' means selected "manufacturer specific table" will be read.
-
6
7
8
9
-
Load Profile Permission to load the historical data from profile. YES/NO YES
Profile Profile name - OBIS code of load profile used during loading of historical data from profile.   P.01
Profile Time Mask Date and time mask used to read historical data from profile.
The letter " z" is used to set the time and is replaced by a value of 0, 1 or 2 according to the parameter Session Recognition Flag.
  zyymmddhhmi
Profile History Depth Time depth of historical profile readings. hour 24
Time Round Time round of data from profile. min 15
Profile Read Step Time range of data which is queried from profile in one request. It is entered as a multiple of the parameter "Time Round". x Time Round 2
Profile Read Level Access level used to read historical data from profile. 0-9 5
Password - level 1 Password necessary for changing configuration of device (level 1) used to set the date and time.   "00000000"
Session Recognition Flag Flag that indicates type of date/time used by the device. Electrometers LZQJ manufactured by EMH Elektrizitätszähler indicate type of date/time by this flag (0=Normal Time, 1=Summer Time, 2=UTC Time).
This flag is used by parameters Time Mask and Date Mask to set the time and by parameter Profile Time Mask to read historical data from profile.
Note: Both Normal Time and Summer Time values will cause the flag to be set depending on the time currently set or read.
Normal Time
Summer Time
UTC Time
Normal time
Time Register Register used to set the time.
The parameter is important only if the synchronization is enabled on the tab "Time parameters" in the configuration of station.
  0.9.1
Time Mask Mask used to set the time.
The letter " z" is used for time conversion according to the parameter Session Recognition Flag.
The parameter is important only if the synchronization is enabled on the tab "Time parameters" in the configuration of station.
  zhhmiss
Date Register Register used to set the date.
The parameter is important only if the synchronization is enabled on the tab "Time parameters" in the configuration of station.
  0.9.2
Date Mask Mask used to set the date.
The letter " z" is used for dátumu conversion according to the parameter Session Recognition Flag.
The parameter is important only if the synchronization is enabled on the tab "Time parameters" in the configuration of station.
  zddmmyy
AT Command 1 A special initial string of modem 1 (only for MODEM lines).   AT&FE0V1Q0B0X3L0M0
AT Command 2 A special initial string of modem 2 (only for MODEM lines).

Explanation of recommended settings:

S37=5   1200bps DTE-DTE speed - limits the speed for modems. Many devices use modems with limited transfer speeds and this setting can speed-up the connection establishment process. Higher transfer speeds must be negotiated individualy.

&D2   DTR drop to hangup - for matching with tha parameter of modem line (line configuration, tab "Modem - parameters", check the option "Use DTR for Hangup").

S0=0   Disable auto-answer. Auto-answer will not be used.

S30=2   20 sec inactivity timeout - automatic hangup after idle timeout expired. Necessary for assuring connection termination after the communication with the last device is over.

 

  ATS37=5&D2S0=0S7=60S30=2
Full Debug Full tracing of communication, loaded values of I/O tags and other debug information are shown. YES/NO NO
Unicontrols Devices It activates data processing according to software implementation of protocol from Unicontrols. YES/NO NO
Unicontrols Read Index Activates reading of profile index (map of records stored in memory) within reading of historical data from profile (Unicontrols device only). Retrieved index is not processed further and serves only as debugging information for Unicontrols. YES/NO NO

I/O tag configuration


Possible types of I/O tag values: Ai, Ci, Di, TxtI, TiA, TiR.

I/O tag address


I/O tag address correspond to standard IEC 62056-61:2002 Object Identification system (OBIS) in terms of "Annex A - Code presentation".

Abbreviated format of address is supported: C.D[.E][*F] as well as full format A.B.C.D[.E][*F]

in which:

Example of addresses:

0.0.0            Meter address
0.0.1            Identity number
0.9.1            Time
0.9.2            Date
1.2.1            Cumulative P+ Tariff 1
1.2.2            Cumulative P+ Tariff 2
1.6.1            Maximum P+ Tariff 1
1.8.1            Energy P+ Tariff 1
3.6.1            Maximum Q+ Tariff 1
3.6.1*01       01.Pre-value Maximum Q+ Tariff 1

Literature


Changes and modifications


-

Document revisions


Communication protocols