MK3通信规约
2000-04XX Energy Meter Reference Manual
141
Chapter 14 __________________
The command line interface was originally designed in order to allow automated access to equipment
in an easy to implement format, while providing a reliable communication method. It is structured in
terms of a set of registers, each of which is given a 4 digit hexadecimal code (base 16, represented by 0
to 9, A to F). This allows for up to 65536 registers, although only a fraction of these are defined at
present. These registers can be used both as a reference to information within a device (as used by the
meter’s load survey and displays), and as a means of programming and reading the device remotely. A
set of commands (the command line interface) may be used to access the registers in a format suitable
for use by a computer system.
This listing also contains register definitions for other EDMI products.
The following codes are used to identify the registers used by each product.
PR Pulse Register
EM2 Mk 2 System 2000-01xx Energy Meter
EM3 Mk 3 System 2000-04xx Energy Meter, all Classes.
ALL All of the above
Generic programs for EM2 meters should assume v4.9 of meter software unless otherwise known.
This section of the manual details both the command line access protocol and the registers that may be
accessed via command line mode and the menu system.
To access the command line mode, the caller sends the two characters STX (ASCII 2 or ^B) and ETX
(ASCII 3 or ^C) after the initial connection (before logging on). This puts the master unit in command
line mode, ready to accept a log-on message. If a valid log-on message is received, access is granted,
and in the case of remote access, the unit will hang up and dial back using the phone number that
matches the user. Once final connection is made, the caller is then able to send commands to the unit
(note that no menus will be displayed). An ’ESC’ should be sent before the STX and ETX to ensure
that the meter is at the login prompt.
Command line mode is accessible from both local and remote (modem) operation.
C h a p t e r
14
2000-04XX Energy Meter Reference Manual
142
________ ___ ___
All commands are initiated with the STX character and are terminated with the ETX character, and
conform to the following general format.
<STX><command><CRC><ETX>
Where <command> is the contents of the command message being sent and <CRC> is a 16 bit
CRC-16 polynomial checksum defined by the CCITT standard, calculated over the entire message
including the STX but not the CRC itself or the ETX character. The checksum is omitted if there is no
command as is the case with the <STX><ETX> message.
The meter replies to commands with a response message in the following format.
<STX><response><CRC><ETX>
Where response may be:
<ACK>(hex 6) - the command was successful.
<NAK>(hex 15) - CRC was incorrect, message discarded.
<CAN>(hex 18) - CRC was correct but the command was unsuccessful.
or a response message containing data.
The contents of <command>, <response> and <CRC> are sent in binary format. As a result it is
possible that special control characters like the <STX> may appear in the message data and cause
confusion as to the true start and end of the transfer. To avoid these problems a form of character
stuffing is used. Special control characters are sent as a two-character control sequence consisting of a
DLE(hex 10) character followed by the original character with its bit 6 set. The receiver intercepts and
removes all DLE characters and clears bit 6 of characters following the DLEs. The following
characters are treated in this way:
<STX >(hex 02) sent as <DLE>< B> (hex 10)(hex 42)
<ETX>(hex 03) sent as <DLE><C> (hex 10)(hex 43)
<XON>(hex 11) sent as <DLE><Q> (hex 10)(hex 51)
<XOFF>(hex 13) sent as <DLE><S> (hex 10)(hex 53)
<DLE>(hex 10) sent as <DLE><P> (hex 10)(hex 50)
2000-04XX Energy Meter Reference Manual
143
____________________
The format of each field in the following commands is defined as follows:
“test” denotes a null-terminated string. (The “ “ are not literally sent )
{5} denotes an 8 bit integer.
[10] denotes a 16 bit integer.
(1000) denotes a 32 bit integer.
<1.23> denotes a 32 bit floating point number.
Note that all multi-byte values (integers and floats) are transferred MSB first (Motorola
Format)
1. ENTER CMD LINE MODE : ............................................................................................ All
Response : .......................................................................................
This is the initial message used to start the command line access. As there is no command body the
CRC is omitted. Receipt of the <STX><ETX> message causes the unit to enter command line mode
and will only work from the log-on screen.
2. LOGON : L”id”,”pw”.............................................................................. All
Response :
Used to log-on to the system. "id" is the user ID and "pw" is the password. Note that the ID and
password are case sensitive.
3. GO TO REMOTE UNIT : U{unit_num} ......................................................................... All
Response : .......................................................................................
This command allows remote connection to any slave unit on a ring. It can only be used from a master,
and is used to access the command line mode on the slave. When all required operations have been
performed on the slave, an exit command (X) should be entered, to allow communications to resume
with the master. It is possible for this command to fail and still return an
register should generally be read to confirm connection.
4. EXIT : X........................................................................................... All
Response :.......................................................................................
This command causes a session log-off. In the case of a remote access, the modem will be
disconnected.
Sending a break will also cause immediate log-off, with no acknowledge.
2000-04XX Energy Meter Reference Manual
144
5. INFORMATION : I[reg_num] .......................................................... EM2/PR/EM3
Response : ........................................................................I[reg_num]/data/
This command returns information about register reg_num.
/data/ is a null-terminated string of the form:
“
A null terminated ASCII string
C byte
S special (not a regular type)
I int (short)
D double
T time/date
Q Time
R Date
F float
B bool
L long int
H Hex unsigned short (mainly for debugging)
X Hex unsigned long (mainly for debugging)
N none - not actually set, but reserved for use
U Unknown -> undefined
A Amps
V Volts
W Watts
R VArs
S VA
X Wh
Y VArh
Z VAh
D Angle in degrees
H Hz
N No unit
M Minutes
T Seconds
P Percent
Q Ratio (E.g. pf)
The form of <description> is an up to 16-character null terminated description of the register.
2000-04XX Energy Meter Reference Manual
145
6. READ REGISTER : R[reg_num] .......................................................................... All
Response : R[reg_num]/data/
This command returns the data requested in register reg_num. All registers are listed in the section
‘Register Tables’ at the rear of this document.
Note that when reading the load survey and event log registers, it is necessary to first write the starting
position (date and time) into the corresponding “read pointer” register, and the maximum number of
readings to return into the register indicating the number of readings to return. Once these two registers
have been set, reading a load survey or event log register will return the required information. To allow
for easy access to large blocks of data, following a read of a load survey or event log register, the read
pointer will be updated to point to the next available reading. In this way, it is possible to read all data
from a register by setting the starting position and the number of readings and then performing a series
of reads until all data has been returned.
Note a capital ‘D” can be appended to the read command, causing Time of Use registers to be returned
as double floats instead of single floats. The format of the command is then:
R[reg_num]D
On registers that do not support double floating point the ‘D’ will have no effect.
7. WRITE REGISTER : W[reg_num]/data/ ....................................................................................... All
Response :
This command sends data to be written to register reg_num. The format of /data/ must match the
format of the register. All registers are listed in the section ‘Register Tables’ at the rear of this
document. The unit will respond with
was made to write to a read only register.
8. ZMODEM : Z........................................................................................... All
Response :
The format of the Zmodem command varies from unit to unit. For EM2/PR/EM3 it is:
:Z{19}{4}{95}{23}{4}{95}{1}
Where the first three bytes are the start date, the next three bytes are the finish date, and the last byte is
the load survey number.
This command is not supported in releases v6.4 and later.
2000-04XX Energy Meter Reference Manual
146
9. EXTENDED : E(Destination’s #)(Source’s #)[Sequence]/normal command/All
Response : E(Source’s #)(Destination’s #)[Sequence]/normal response/
v6.4 and later. Earlier versions will return a
The ‘E’ command is designed to extend the command line protocol to allow for multidrop
communications, and to allow re-transmissions and broadcast messages. All other commands can be
executed via the ‘E’ command.
Destination is the serial number of the meter the message is for. The serial number forms an address.
Source is the serial number of the requesting program etc. The serial number gives a unique address of
a unit, so software on a PC will need a serial number for this purpose.
Sequence number is a number from 1 to 32767 that should be different for each request.
For the response the source and destination serial numbers are swapped, so the requesting programs
serial number is now in the destination position (first number).
_______ __________
A serial number of FFFFFFFF is a broadcast message. All units accept, but none send a response.
A serial number of FFFFFFFE is a broadcast message. All units accept, and all send a response.
The returned packet will have the broadcast number replaced with the unit’s address.
_________________
Each transmission is sent with a sequence number that is different at least from the previous sequence
number. The response is sent with the same sequence number, allowing verification that the response
is from the correct request.
Re-transmissions have the same sequence number as the original. In this way if the meter never
received the original request it will now be done, otherwise the response it sent last time will be sent,
but the command will not be re-executed. The last transmission from the meter is kept in a buffer. If a
re-transmission is requested, that is sent again.
The MSB of the sequence number is reserved and should normally be zero. The exception to this rule
is that sequence number 65536 will never give a re-transmission. This can be used where it is
unknown what the last sequence number was.
If a normal command occurs after an extended command, re-transmission of the extended command
response are not possible, and the command will be executed as if it was a new sequence number.
2000-04XX Energy Meter Reference Manual
147
_ ___
Re-transmission on logout command will not send a repeat response as the unit has disconnected if the
first message was received.
Dial-back etc. is handled by the master. Logging into a slave will not cause a dial-back sequence. Via
RS-485, logging onto a slave will never cause a dial-back.
0Doing a link to a slave will always return a normal ACK if successful. On returning from the slave an
ACK from the master with the original sequence number will be sent. After connection, any extended
commands should be addressed to the slave serial number.
Command Line Examples
OUT:
IN:
OUT:
IN:
OUT:
IN:
OUT:
IN:
OUT:
IN:
OUT:
IN:
__ _____________________
The most reliable method for entering command line mode is the following sequence:
- Send <ESC><STX><ETX>
- Wait for the acknowledge. A time-out of two seconds should suffice.
- Retry until successful.
___!_ _
The reading and writing of some registers may take up to ten seconds. These registers include the
global time-of-use registers.
___"_______ __
If connecting to a slave through a master unit, issue the slave connect command ('U'), wait for the
acknowledge, and then read the unit address (register F004) to double-check the correct slave is
accessed. If the master's attempt to connect to the slave times out, it will still return an acknowledge,
even though the connection failed.
2000-04XX Energy Meter Reference Manual
148
Depending on the load on the fibre-ring, the slave may occasionally drop out back to the master on its
own accord. If this happens, it is usually very soon after the connection to the slave is established. To
cater for this, a read of the address register (F004) every so often is suggested.
If the master unit is not communicated with for a period of five minutes, it will consider it a time-out
and drop out of command line mode. To prevent this from happening, periodically logout from slave
back to the master unit and then connect to slave again. The action of connecting to the slave will
prevent the master from timing out. This only applies to versions prior to v4.92.
When logging out of a slave, it is possible under some circumstances to receive back two
acknowledges for the single logout command. If the next command is a read, it should ignore the
second acknowledge if it receives it and wait for the response from the read command. This only
applies to versions prior to v5.4.
___#_
The CRC is a 16 bit CRC-16 polynomial checksum defined by the CCITT standard, calculated over
the entire message including the STX but not the CRC itself or the ETX character. The checksum is
omitted if there is no command as is the case with the
methods of calculating CRC’s.
2000-04XX Energy Meter Reference Manual
149
____________________ _ ____
_$_____________ _____ __
The example used here is to read the serial number of the meter. The register number of this can be
found from the register listing in the manual to be F002.
First start with an STX, hex 02.
Hexadecimal: [02]
Decimal: 2
Next decide on the command. To read a register the command is ‘R’, which is 82 in decimal.
Hexadecimal: [02]R
Decimal: 2,82
The register to be read is appended to the command, most significant byte first:
Hexadecimal: [02]R[F0][02]
Decimal: 2,82,240,2
Now add the 16 bit CRC checksum of these 4 numbers. This is EE45 in hexadecimal, 60997 in
decimal. This is separated into two 8 bit numbers, most significant first. We now have:
Hexadecimal: [02]R[F0][02][EE][45]
Decimal: 2,82,240,2,238,69
Certain characters are reserved as control characters. It any of them exist in the message they must be
substituted. The reserved numbers are 2, 3, 16, 17, 19. If any of these numbers occur, a number 16 is
inserted in front of it, and 64 is added to the number. For example, the number 2 occurs in the third
position of the example. This must be replaced with a 16, followed by a 66. The first STX (2) is
skipped as this is a control character. The result is:
Decimal: 2,82,240,16,66,238,69
Now framing characters are added to the end. The number 3 is added to the end.
We now have:
Decimal: 2,82,240,16,66,238,69,3
This is the data that is transmitted to the meter. The meter will then respond in the following manner:
The returned data is:
Hexadecimal: [02][52][F0][10][42][39][33][30][30][30][30][30][00][1B][10][42][03]
Decimal: 2,82,240,16,66,57,51,48,48,48,48,48,0,27,16,66,3
Note that the start and end of the message is marked by the numbers 2 and 3.
Now the reserved control characters can be recovered. Anywhere that the number 16 occurs, it is
removed and the number following it has 64 subtracted. There are 2 places this occurs in the example:
2000-04XX Energy Meter Reference Manual
150
Hexadecimal: [02][52][F0][02][39][33][30][30][30][30][30][00][1B][02][03]
Decimal: 2,82,240,2,57,51,48,48,48,48,48,0,27,2,3
The 2nd and 3rd last numbers form the 16 bit CRC checksum of the data (MSB first). The checksum is
checked by calculating the 16 bit CRC over all the numbers up to and excluding the CRC numbers
(e.g. 2 to 0). If the checksum is wrong, the message is discarded because it is corrupted.
The checksum and STX/ETX framing can now be removed.
Hexadecimal: [52][F0][02][39][33][30][30][30][30][30][00]
Decimal: 82,240,2,57,51,48,48,48,48,48,0
The first number represents the type of response that this is. In this case the first number is 82, which
is the ASCII code of the letter ‘R’, indicating this is the response to a read request. The following two
numbers make up the register that was requested, F002. This information can be useful in processing
the response.
Without the response type, the data is:
Hexadecimal: [39][33][30][30][30][30][30][00]
Decimal: 57,51,48,48,48,48,48,0
Looking up the tables in the manual indicates that register F002 is of string type. This consists of a
sequence of letters, followed by a number 0, indicating the end of the string.
If we show the data as ASCII letters, it becomes:
Text: 9300000
followed by a zero, indicating the end.
This is the serial number read from the meter!
_$_______________ _____ __
To access the meter, we have to get its attention, log onto it, read/write any amount of data, then log off
the meter. The following sequence illustrates this:
Send an Escape character, followed by a short message with only start and stop codes.
Hexadecimal: [1B][02][03]
Decimal: 27,2,3
This should return an acknowledge
Hexadecimal: [02][06][06][A4][03]
Decimal: 2,6,6,164,3
Which is the response command ACK (the number 6). There is no data associated with this response.
Now to log on to the meter use the log on command ‘L’, using user name ‘EDMI’ and a password of
‘IMDEIMDE’.
Hexadecimal: [02][4C][45][44][4D][49][2C][49][4D][44][45][49][4D][44][45][00][D9][69][03]
2000-04XX Energy Meter Reference Manual
151
Text: [02]LEDMI,IMDEIMDE[00][D9][69][03]
If this is successful an acknowledge will be sent.
Hexadecimal: [02][06][06][A4][03]
Decimal: 2,6,6,164,3
If it is not successful, a CAN (the number 24) will be sent
Hexadecimal: [02][18][F5][5B][03]
Decimal: 2,24,245,91,3
If the log on was successful, registers can now be read and written. E.g. read the serial number.
Hexadecimal: [02][52][F0][10][02][EE][45][03]
Decimal: 2,82,240,10,66,238,69,3
and the response is:
Hexadecimal: [02][52][F0][10][42][39][33][30][30][30][30][30][00][1B][10][42][03]
Decimal: 2,82,240,10,66,57,51,48,48,48,48,48,0,27,16,66,3
When access is complete, logging off the meter is done using the ‘X’ command.
Hexadecimal: [02][58][BD][9F][03]
Decimal: 2,88,189,159,3
This should return an acknowledge
Hexadecimal: [02][06][06][A4][03]
Decimal: 2,6,6,164,3
Notes:
The utility program ‘REGTEST.EXE’ (available from our web site at www.edmi.com.au) can be used
to test access to the meter, and with the ‘-H’ option it will display all transmitted and received
characters. This is useful if precalculated requests are used.
Note though that if a byte is DLE’d (as in the second case above), Regtest with the -H option will
display the byte following the DLE without the 6th bit set.
For example REGTEST would display [02][52][10][02][69][46][2B][03]
which should be transmitted as [02][52][10][42][69][46][2B][03]
In order to simplify implementation on simple systems, the requests can be precalculated (including
the checksum) and transmitted. On a reliable medium the check of the received CRC could be skipped
to avoid doing any CRC calculations at all, although this does risk erroneous data being accepted.
2000-04XX Energy Meter Reference Manual
152
%____&__ ____'__
Floating point numbers are sent/received in the IEEE standard formats for single precision floating
point numbers, or optionally double precision.
The format of single precision floating point numbers is as follows:
-----------------
* sign * 1 bit
-----------------
* exponent * 8 bits
-----------------
* mantissa * 23 bits + 1 implied bit = 24 bits
-----------------
Double floating point is as follows:
-----------------
* sign * 1 bit
-----------------
* exponent * 11 bits
-----------------
* mantissa * 52 bits + 1 implied bit = 53 bits
-----------------
The implied bit is always 1 except for a zero value where it is zero. A zero value is indicated by a zero
exponent. The exponent for a float is stored as excess 127 (i.e. an exponent of 0 is represented by 127)
and for a double as excess 102. The mantissa is in positive magnitude form.
The most significant byte (i.e. that containing the sign) comes first.
So say for example reading register E002 (phase C voltage) returns
43 71 73 88
As a 32 bit binary number this is
0100 0011 0111 0001 0111 0011 1000 1000
We now split this up into its components.
Sign bit: 0
Exponent: 10000110
Mantissa without implied bit: 111 0001 0111 0011 1000 1000
We now add the implied bit and show the point: 1.111 0001 0111 0011 1000 1000
The exponent is 134 in decimal. The exponent is thus 134 - 127 = 7. This means we must multiply
the mantissa by 27. This can be achieved by shifting the point right by 7 bits. The mantissa we then
get is:
1111 0001 . 0111 0011 1000 1000
To convert this to decimal we use two stages. First of all the whole part:
2000-04XX Energy Meter Reference Manual
153
1111 0001 binary = 241 decimal
Now the fractional part:
0111 0011 1000 1000 binary = 29576 decimal
then divide by 2 to the power of the number of binary digits:
29576 / 216 decimal = 0.45129 decimal
Combining whole and fractional parts:
241.45129
The sign bit was a zero, indicating that the number is positive, giving us a final answer of
+241.45129 volts
2000-04XX Energy Meter Reference Manual
154
This page left intentionally blank
2000-04XX Energy Meter Reference Manual
155
Chapter 15 _____ ___ _____
_ _____ ________ ___ _____
Data contained in these registers conforms to the following data types:
“test” denotes a null-terminated string.
{5} denotes an integer in the range of 0 to 255 (8 bit).
also used for Boolean (00=FALSE, FF=TRUE)
[10] denotes an integer ranging from -32767 to 32767 (16 bit)
(1000) denotes an integer ranging from -2 147 483 648 to +2147483648. (32 bit)
<1.23> denotes a floating point number ranging from -3.40282347e38 to 3.40282347e38.
(32 bit).
A “w” after the register number indicates that the register is writable.
All registers with a blank version entry indicates that the register was implemented in v4.8. The
version is the point at which the register worked correctly, not its first occurrence.
All of the registers are available on the EM3/EM2/PR unless otherwise specified.
Any registers that would require the Config Jumper to be in position in the menu system also requires
the config jumper to be accessed via the register interface.
In general, PHA refers to Phase A voltage, PHB refers to Phase B voltage, and PHC refers to Phase C
voltage.
Also, CT1 refers to Phase A current, CT2 refers to Phase B current, and CT3 refers to Phase C current.
C h a p t e r
15
2000-04XX Energy Meter Reference Manual
156
_ _ ________
A lower case letter indicates that the EFA is active but masked.
Code Description Availability (L = load survey, E = EFA)
E Analog Reference Error L/E
S Asymmetrical Power L/E
V Voltage Tolerance Error L/E
F VT Failure L/E
R Incorrect Phase Rotation L/E
A Absent reading L
C Clock Failure L/E
M Temperature Sensor Failure L/E
L Calibration Data Lost L/E
H Modem Failure E
X RAM Failure E
Y EPROM Failure E
Z EEROM Failure E
N Pulsing Output Overflow E
D Duplicate Address E
U Inter-unit coms failed E
P Power lost L
T Test mode L
D Daylight Saving L
I Incomplete Time Interval L
B Bad data block L
2000-04XX Energy Meter Reference Manual
157
(____________ ___
Register (Hex) Ver Register Function Example
F000 Equipment Model ID No. “2000-0101”
F001 Equipment Type “Energy Meter”
F002 Serial No. “9501000”
F003 Software Version “3.00”
F004 Unit Address {7}
F005 Unit Position {2}
F006 DIP switch settings bit field (bit0=switch1) {1}
F007 w Site Name (20 chars max + NULL) “Australian Widgets”
F008 w Site ID (4 chars max + NULL) “AUSW”
F009 w Feeder Name (20 chars max + NULL) “Primary”
F00A w ____ Measurement method (No. of elements)
Read as a string, written as a byte before v5.8
Read and written as a byte post v5.8
“3 Element” or {3} read {3}
written
F00B Current User ID (10 chars max + NULL) “BASIL”
F00C w Current User Password (10 chars max + NULL) “BRUSH”
F00D w 5.6 Customer Plant Number (20 chars max + NULL) “12234GH3”
F00E w 5.6 Customer Name (20 chars max + NULL) “BASIL Electric”
F00F w 5.6 Miscellaneous String (49 chars max + NULL) “Hello Folks”
F010 w Current Date (Write with standard time, reads as
daylight saving)
{01}{01}{95}
F011 w Current Time (Write with standard time, reads as
daylight saving)
{15}{00}{00}
F012 Day of Week (1-7, 1=Sunday) {3}
F013 w Daylight savings start date (year is ignored) {26}{7}{95}
F014 w Daylight savings end date (year is ignored) {17}{10}{95}
F015 Daylight savings active TRUE/FALSE
F016 Current Status flags “ESVFRACMLHXYZNDU”
F017 w Latched Status flags (writing clears inactive alarms) “ESVFRACMLHXYZNDU”
F018 System wide Current Status flags (master only) “ESVFRACMLHXYZNDU”
F019 System wide Latched Status flags (master only)
(writing as for F017)
“ESVFRACMLHXYZNDU”
F01A w 5.6 Status flags permitted to cause an EFA alarm “ESVFRACMLHXYZNDU”
F01B w 5.7 Current LCD screen. Numbered from 0 being the
default time/date screen. Beyond the defaults it
follows the order in the LCD setup, automatically
changing to that display’s set.
[3]
F01C w 5.7 Reset meter command. (cannot read). No response
is sent if successful.
“ResetNow”
F01D 5.6 Current Tariff number {3}
F01E 5.6 Current Tariff Name (10 chars max + NULL) “OFF PEAK”
F01F w 5.6 Testing mode TRUE/FALSE
F020 Fibre ring operational TRUE/FALSE
F021 Number of units in ring {14}
F022 Number of good messages (23487679)
F023 Number of CRC errors (174)
F024 Number of master retries (358)
F025 Number of unknown messages (12)
F026 Date/Time of last comms event {20}{1}{95}{22}{30}{0}
2000-04XX Energy Meter Reference Manual
158
(____________ ______ _____
Register
(Hex)
Ver Register Function Example
F030 Number of automatic billing resets (360)
F031 Date/Time of last automatic billing reset {20}{1}{95}{22}{30}{0}
F032 w Number of manual billing resets (write to do a billing reset) (34)
F033 Date/Time of last manual billing reset {20}{1}{95}{22}{30}{0}
F034 Daylight savings start date this year {30}{7}{95}
F035 Daylight savings finish date this year {22}{10}{95}
F036 5.2 Last command line error message ”Access Violation”
F037 6.0 Debug - Stack Pointer (1207612)
F038 6.1 Seconds meter has been running ever (V6.75 writable) (34244)
F039 6.1 Seconds meter has been turned off since first activation (2343)
F03A w 6.1 Write any data to do a sitewide billing reset (no read allowed)
F03B 6.6 True if have write access to registers. TRUE/FALSE
F03C 6.7 Clear TOU – global and local (write only, config jumper
protected)
F03D 6.74 Total number of billing resets (F030 + F032)
F090 Software revision number (1243658)
F091 Date/Time of compilation “15-5-95 12:54:34”
F092 Number of power ups (45)
F093 Date/Time of last power up {20}{1}{95}{22}{30}{0}
F094 Number of watchdog resets (10)
F095 Date/Time of last watchdog reset {20}{1}{95}{22}{30}{0}
F096 Number of bus errors (15)
F097 Date/Time of last bus error {20}{1}{95}{22}{30}{0}
F098 No. of FlashRAM erase cycles - sector 0 (database) (Approx. 1 per database
change)
F099 No. of FlashRAM erase cycles - sector 1 (TOU) (1 per 4 hours)
F09A No. of FlashRAM erase cycles - sector 2 (TOU) (1 per 4 hours)
F09B No. of FlashRAM erase cycles - sector 3 (TOU) (1 per 4 hours)
F09C No. of FlashRAM erase cycles - sector 4 (TOU) (1 per 4 hours)
F09D No. of FlashRAM erase cycles - sector 5 (database) (2)
F09E No. of FlashRAM erase cycles - sector 6 (Transients) (1 per 2000 triggers)
F09F No. of FlashRAM erase cycles - sector 7 (Transients) (1 per 2000 triggers)
F0A0 5.3 Constant 0 (0)
F0A1 5.3 Constant 1 (1)
F0A2 5.3 Constant 2 (2)
F0A3 5.3 Constant 3 (3)
F0B0 w 5.6 Set Gate mode. 0 for normal, 1 for pulse mode, 2 for pulse with
reset mode. (mode 2 added v6.1).
{0}
F0B1 w 5.6 Pulses to count for gate. Set to required count+1. (50)
FOB2 6.74 Ticks in gate interval (206)
2000-04XX Energy Meter Reference Manual
159
________ ________ _____)_____"__&*$$_______+
Register
(Hex)
Ver Register Function Example
F100 w Correction Curve - External CT1 200 bytes
F101 w Correction Curve - External CT2 200 bytes
F102 w Correction Curve - External CT3 200 bytes
F103 w Correction Curve - External VT1 200 bytes
F104 w Correction Curve - External VT2 200 bytes
F105 w Correction Curve - External VT3 200 bytes
F106 w Correction Curve - Internal CT1, 3 Element 200 bytes
F107 w Correction Curve - Internal CT2, 3 Element 200 bytes
F108 w Correction Curve - Internal CT3, 3 Element 200 bytes
F109 w Correction Curve - Internal CT1, 2 Element 200 bytes
F10A w Correction Curve - Internal CT2, 2 Element 200 bytes
F10B w Correction Curve - Internal CT3, 2 Element 200 bytes
F10C w Correction Curve - Internal VT1 200 bytes
F10Dw Correction Curve - Internal VT2 200 bytes
F10Ew Correction Curve - Internal VT3 200 bytes
F110 w General Setup 80 bytes
F111 w Pulsing Outputs 105 bytes
F112w User/Customer Information 1340 bytes
F114 w Tolerance Setup 10 bytes
F115w Tariff Setup 1566 bytes
F125 w Tariff Setup , Update slaves. (Do not read) 1566 bytes
F116 w Loss Parameters 48 bytes
F117 w LCD Information 204 bytes
F127 w LCD Information, Update slaves. (Do not read) 204 bytes
F118 w 5.2 User Register Description 1004 bytes
F128 w 5.2 User Register Description, Update slaves. (Do not read) 1004 bytes
F119 5.2 Pulsing Input Setup 48 bytes
F11A 5.6 Modem Control Setup 18 bytes
F11B 5.6 Hardware Setup – internal use only 40 bytes
F11C w 5.6 VA integrating period (seconds) [60]
F11D w 5.9 Feature code string “ASBHJKSFKHJSGSMH
”
F11E w 6.5 Standard Pulsing Input setup 128 bytes
F11F w 6.6 Billing Reset lockout period (minutes) {30}
F120 w 6.6 Minimum VAh for minimum p.f. calculations <100.0>
F121 w 6.6 Minimum VAh for global minimum p.f. calculations <100.0>
F122 w 6.6 Minute to do billing reset (0 to 1439) [60]
F123 w 6.8 Day to do billing reset. 1st 12 bytes are Jan to Dec, 13th byte
is a leap year February.
13 bytes
F130 w 5.2 Write factory default database (Write only) don’t care
F131 w 5.2 Write database to flash now (Write only) don’t care
F132 w 6.5 Restore Factory defaults (Write only). Will cause meter
restart, and as such will not return a response.
don’t care
2000-04XX Energy Meter Reference Manual
160
_______ ________ ___
Register
Address
(Hex)
Ver Register Function Example
F140 w 5.6 Nominal Voltage - specified as line to line at meter inputs. <415.0>
F141 w 5.6 Nominal Current - specified at meter inputs. <5.0>
F142 w 5.6 Instantaneous average time in 10ths of seconds. [10]
F143 w 5.6 Original Ref. Equal to -1 if never set. (10077920)
F144 w 5.6 Original Ref validity. Writing TRUE will set the ref to the
current measured value.
Returns TRUE if the ref is not -1.
TRUE/FALSE
F145 w 5.6 CT range - 1 or 5. Sets up transformer ratios as well. {5}
F146 w 5.6 voltage mode:
0 = 63.5/110V
1 = 240V
2 = wide voltage range
{2}
F147 w 5.6 Delay update of calibration curves.
When set true, writes to registers that would normally be
delayed by the write to the calibration curves are delayed
until this register is cleared (anything but TRUE).
Also clears the curve checksum so if the meter is turned off,
the curves will be regenerated on startup.
TRUE/FALSE
F148 w 5.6 Phase A current gain ratio (times 1000000). (23400000)
F149 w 5.6 Phase B current gain ratio (times 1000000). (23400000)
F14A w 5.6 Phase C current gain ratio (times 1000000). (23400000)
___,___-____________ ___
Register
(Hex)
Ver Register Function Example
F150 w 5.6 Backlight on time in seconds - 0 is forever {60}
F151 w 6.2 LCD revert time (minutes) {30}
2000-04XX Energy Meter Reference Manual
161
%___ ./_ __ ___ ________ ___
Register
(Hex)
Ver Register Function Example
F20x w 5.3 Set output state of output x = 0 to 7 relays, 8 to A LED’s TRUE/FALSE
F21x w 5.3 Set time-out seconds for pulsing outputs with type Time-out.
x = 0 to 7 relays, 8 to 10 LED’s
(50)
F22x 5.6 Read the state of input x (x=0 to 7 for inputs 1 to 8). TRUE/FALSE
F23x 6.5 Read the filtered state of input x (x=0 to 7 for inputs 1 to 8). TRUE/FALSE
F24x 6.6 Read pulsing constant of output x = 0 to 7 relays, 8 to A
LED’s
<10.0>
F25x 6.6 Read the output type setting string for output x = 0 to 7
relays, 8 to A LED’s
“Tariff 1”
_______ ___'_ _______ ___
Register
(Hex)
Ver Register Function Example
F300 6.1 Does redirected port exist? TRUE/FALSE
F301 w 6.1 Redirected port baud rate. (Changes immediately) (9600)
F302 6.1 Is receive buffer empty? TRUE/FALSE
F303 6.1 Is transmit buffer empty? TRUE/FALSE
F304 6.1 Free space in receive buffer. [2000]
F305 6.1 Free space in transmit buffer. [50]
F306 w 6.1 Block size for read characters [10]
F307 w 6.1 Transfer characters to/from port. “SKYGTHSERHUTSMB”
___-____ ________ ___
Register
(Hex)
Ver Register Function Example
F310 6.4 Does SCADA port exist? TRUE/FALSE
F311 w 6.4 SCADA port baud rate. (Changes immediately) (9600)
2000-04XX Energy Meter Reference Manual
162
0_"________ _________ ___
Register
(Hex)
Ver Register Function Example
F400 w 5.6 Read: Is waveform capture available/enabled on this meter?
Write: Capture a 5 cycle sample waveform (written data
doesn’t matter))
TRUE/FALSE
F401 5.6 Waveform data as array of 8 * 101 integer points, plus floating
point scaling factors. The scaling factors should be multiplied by
the corresponding channel data points to recover the real world
magnitudes.
{Digital Inputs} is a byte representing the 8 digital inputs at that
time.
{Status Info} is a byte containing diagnostic information.
Datablock entry:
[PHA][CT1][PHB][CT2][PHC][
CT3][Ref]{Digital Inputs}
{Status Info}
There are 101 entries (16 bytes
each), followed by one dummy
entry, followed by scaling factors:
Followed by more diagnostic
information.
2000-04XX Energy Meter Reference Manual
163
__-___1__ _ ________ ___
Register
(Hex)
Ver Register Function Example
F500 6.4 Displays 3 currents and 3 voltages. No value
F501 6.4 Displays Phase A power information. (EM2/PR only). No value
F502 6.4 Displays Phase B power information. (EM2/PR only). No value
F503 6.4 Displays Phase C power information. (EM2/PR only). No value
F504 6.4 Displays Total power information. (EM2/PR only). No value
F505 6.4 Displays Demand information. (EM2/PR only). No value
F506 6.6 Displays 3 currents and 3 line-to-line voltages (in sequence
AB,BC,CA, calculated for 3 elements using the form
(A+B)*root(3)/2 )
No value
F510 6.6 Transformer Ratio - External CT1 No value
F511 6.6 Transformer Ratio - External CT2 No value
F512 6.6 Transformer Ratio - External CT3 No value
F513 6.6 Transformer Ratio - External VT1 No value
F514 6.6 Transformer Ratio - External VT2 No value
F515 6.6 Transformer Ratio - External VT3 No value
F516 6.6 Transformer Ratio - Internal CT1, 3 Element No value
F517 6.6 Transformer Ratio - Internal CT2, 3 Element No value
F518 6.6 Transformer Ratio - Internal CT3, 3 Element No value
F519 6.6 Transformer Ratio - Internal CT1, 2 Element No value
F51A 6.6 Transformer Ratio - Internal CT2, 2 Element No value
F51B 6.6 Transformer Ratio - Internal CT3, 2 Element No value
F51C 6.6 Transformer Ratio - Internal VT1 No value
F51D 6.6 Transformer Ratio - Internal VT2 No value
F51E 6.6 Transformer Ratio - Internal VT3 No value
__ _"__ ___________ ___
Register
(Hex)
Ver Register Function Example
F732 V6.74 Active W tariff (1 to 10)
F733 V6.74 Active VAr tariff (1 to 10)
F734 V6.74 Active VA tariff (1 to 10)
F735 V6.74 Active EX1 tariff (1 to 10)
F736 V6.74 Active EX2 tariff (1 to 10)
2000-04XX Energy Meter Reference Manual
164
_____$__ _ ________ ___
Register
(Hex)
Ver Register Function Example
F520 6.4 Instantaneous status info with uncompensated power
readings.
F521 6.4 Instantaneous status info with compensated power
readings.
As for register F520
F522 6.4 All gated registers. Returns the values of registers E090
to E09F.
16 by <23.2>
F528 6.4 Harmonics CT1. Returns the values of registers 9080,
90BE,9082 to 90B3, 90BD,90BF, calculated at once.
53 by <23.5>
F529 6.4 Harmonics CT2. Returns the values of harmonic registers
similar to F528, but Phase B current series.
53 by <23.5>
F52A 6.4 Harmonics CT3. Returns the values of harmonic registers
similar to F528, but Phase C current series
53 by <23.5>
F52B 6.4 Harmonics PHA. Returns the values of harmonic registers
similar to F528, but Phase A voltage series
53 by <23.5>
F52C 6.4 Harmonics PHB. Returns the values of harmonic registers
similar to F528, but Phase B voltage series
53 by <23.5>
F52D 6.4 Harmonics PHC. Returns the values of harmonic registers
similar to F528, but Phase C voltage series
53 by <23.5>
_ __________ __
Register
(Hex)
Ver Register Function Example
FFFF Nothing - used to indicate no load survey entry.
Will display as all dots set on the LCD display.
nothing
2000-04XX Energy Meter Reference Manual
165
This page left intentionally blank
2000-04XX Energy Meter Reference Manual
166
_%__ __ _______________ _______ ___
Register (Hex)* Ver Register Function Example
Ex00 Phase A voltage <63.5>
Ex01 Phase B voltage <63.5>
Ex02 Phase C voltage <63.5>
Ex03 Combined Voltage (Mean RMS of Phase A,B,C voltage) <63.5>
Ex04 6.6 Line to line AB voltage. Calculated as for F506 <110.0>
Ex05 6.6 Line to line BC voltage. Calculated as for F506 <110.0>
Ex06 6.6 Line to line CA voltage. Calculated as for F506 <110.0>
Ex07 6.6 Line to line average voltage. Calculated as for F506 <110.0>
Ex10 Phase A current <0.80>
Ex11 Phase B current <0.80>
Ex12 Phase C current <0.80>
Ex13 Combined Current (Mean RMS of Phase A,B,C current) <0.80>
Ex20 Phase angle of A Phase (in degrees, +=lead, -=lag) <-30.00>
Ex21 Phase angle of B Phase (in degrees, +=lead, -=lag) <-30.00>
Ex22 Phase angle of C Phase (in degrees, +=lead, -=lag) <-30.00>
Ex23 Combined Phase angle (Mean of above 3 phase angles), 3
element only.
<-30.00>
Ex24 Angle between VTA and VTB <120.00>
Ex25 Angle between VTA and VTC <-120.00>
Ex26 Power factor <0.95>
Ex30 A phase active power (watts) <264.00>
Ex31 B phase active power (watts) <264.00>
Ex32 C phase active power (watts) <264.00>
Ex33 Total active power (watts) <264.00>
Ex39 A phase compensated active power (watts) <264.00>
Ex3A B phase compensated active power (watts) <264.00>
Ex3B C phase compensated active power (watts) <264.00>
Ex3C Total compensated active power (watts) <264.00>
Ex40 A phase reactive power (VArs) <264.00>
Ex41 B phase reactive power (VArs) <264.00>
Ex42 C phase reactive power (VArs) <264.00>
Ex43 Total reactive power (VArs) <264.00>
Ex49 A phase compensated reactive power (VArs) <264.00>
Ex4A B phase compensated reactive power (VArs) <264.00>
Ex4B C phase compensated reactive power (VArs) <264.00>
Ex4C Total compensated reactive power (VArs) <264.00>
Ex50 A phase apparent power (VA) <264.00>
Ex51 B phase apparent power (VA) <264.00>
Ex52 C phase apparent power (VA) <264.00>
Ex53 Total apparent power (VA) <264.00>
Ex59 A phase compensated apparent power (VA) <264.00>
Ex5A B phase compensated apparent power (VA) <264.00>
Ex5B C phase compensated apparent power (VA) <264.00>
Ex5C Total compensated apparent power (VA) <264.00>
Ex60 Frequency <50.01>
* x determines the type of reading. Valid values for x are as follows:
0: Instantaneous readings.
2000-04XX Energy Meter Reference Manual
167
1: Maximum reading over the recording interval of the load survey.
2: Minimum reading over the recording interval of the load survey.
3. Average(Mean) reading over the recording interval of the load survey.
Maximums, Minimums and Averages are calculated from a reading taken every second, after the
instantaneous average is applied. Types 1,2 and 3 are only available via load survey recording. Angles
& frequency not available on PR.
2000-04XX Energy Meter Reference Manual
168
_____1__________ _______ ___
Register (Hex) Ver Register Function Example
E070 Rising demand, export Watts <264.00>
E071 Rising demand, import Watts <264.00>
E072 Rising demand, export VArs <264.00>
E073 Rising demand, import VArs <264.00>
E074 Rising demand, export VA <264.00>
E075 Rising demand, import VA <264.00>
E080 Rising demand, compensated export Watts <264.00>
E081 Rising demand, compensated import Watts <264.00>
E082 Rising demand, compensated export VArs <264.00>
E083 Rising demand, compensated import VArs <264.00>
E084 Rising demand, compensated export VA <264.00>
E085 Rising demand, compensated import VA <264.00>
E0A0 Export Wh for this recording interval <264.00>
E0A1 Import Wh for this recording interval <264.00>
E0A2 Export VArh for this recording interval <264.00>
E0A3 Import VArh for this recording interval <264.00>
E0A4 6.4 Export VAh for this recording interval <264.00>
E0A5 6.4 Import VAh for this recording interval <264.00>
E0A6 Compensated export Wh for this recording interval <264.00>
E0A7 Compensated import Wh for this recording interval <264.00>
E0A8 Compensated export VArh for this recording interval <264.00>
E0A9 Compensated import VArh for this recording interval <264.00>
E0AA 6.4 Compensated export VAh for this recording interval <264.00>
E0AB 6.4 Compensated import VAh for this recording interval <264.00>
E0AC Export - Import Wh for this recording interval <264.00>
E0AD Export - Import VArh for this recording interval <264.00>
E0AE Compensated export-import Wh for this recording interval <264.00>
E0AF Compensated export-import VArh for this recording interval <264.00>
E0B0 Global rising demand, export Watts <264.00>
E0B1 Global rising demand, import Watts <264.00>
E0B2 Global rising demand, export VArs <264.00>
E0B3 Global rising demand, import VArs <264.00>
E0B4 Global rising demand, export VA <264.00>
E0B5 Global rising demand, import VA <264.00>
E0C0 Global rising demand, compensated export Watts <264.00>
E0C1 Global rising demand, compensated import Watts <264.00>
E0C2 Global rising demand, compensated export VArs <264.00>
E0C3 Global rising demand, compensated import VArs <264.00>
E0C4 Global rising demand, compensated export VA <264.00>
E0C5 Global rising demand, compensated import VA <264.00>
Registers in the series E0Ax are only available via load survey recording.
2000-04XX Energy Meter Reference Manual
169
Register (Hex) Ver Register Function Example
E0D0 Active tariff global maximum demand, export Watts <264.00>
E0D1 Active tariff global maximum demand, import Watts <264.00>
E0D2 Active tariff global maximum demand, export VArs <264.00>
E0D3 Active tariff global maximum demand, import VArs <264.00>
E0D4 Active tariff global maximum demand, export VA <264.00>
E0D5 Active tariff global maximum demand, import VA <264.00>
(_ ________1______ ___
Register
(Hex)
Ver Register Function Example
E090 A phase gated import Wh <264.00>
E091 B phase gated import Wh <264.00>
E092 C phase gated import Wh <264.00>
E093 Total gated import Wh <264.00>
E094 A phase gated export Wh <264.00>
E095 B phase gated export Wh <264.00>
E096 C phase gated export Wh <264.00>
E097 Total gated export Wh <264.00>
E098 A phase gated import VArh <264.00>
E099 B phase gated import VArh <264.00>
E09A C phase gated import VArh <264.00>
E09B Total gated import VArh <264.00>
E09C A phase gated export VArh <264.00>
E09D B phase gated export VArh <264.00>
E09E C phase gated export VArh <264.00>
E09F Total gated export VArh <264.00>
E0E0 6.4 A phase gated import VAh <264.00>
E0E1 6.4 B phase gated import VAh <264.00>
E0E2 6.4 C phase gated import VAh <264.00>
E0E3 6.4 Total gated import VAh <264.00>
E0E4 6.4 A phase gated export VAh <264.00>
E0E5 6.4 B phase gated export VAh <264.00>
E0E6 6.4 C phase gated export VAh <264.00>
E0E7 6.4 Total gated export VAh <264.00>
None of the gate registers are available on a pulse register.
2000-04XX Energy Meter Reference Manual
170
'_______%___ ______ ____)'_________"_1___1+
Register
(Hex)
Ver Register Function Example
E18y Wh for input channel y over interval ( y = 0 to 5 for
channels 1 to 6)
<264.00>
E19y VArh for input channel y over interval
Can be calculated from a Qh channel if there is a
matching Wh channel.
<264.00>
E1Ay Qh for input channel y over interval <264.00>
'_______%___ ______ ____)_2________"_1___1+
Register (Hex) Ver Register Function Example
E18y 6.5 Scaled reading for input channel y over interval ( y = 0 to
7 for channels 1 to 8)
<264.00>
2000-04XX Energy Meter Reference Manual
171
-_____ ________ ___
Register (Hex) Ver Register Function Example
Ex00 Analogue diagnostics phase A voltage, zero offset <1>
Ex01 Analogue diagnostics phase B voltage, zero offset <1>
Ex02 Analogue diagnostics phase C voltage, zero offset <1>
Ex04 Analogue diagnostics phase A current low, zero offset <1>
Ex05 Analogue diagnostics phase B current low, zero offset <1>
Ex06 Analogue diagnostics phase C current low, zero offset <1>
Ex07 Analogue diagnostics phase A current high, zero offset <1>
Ex08 Analogue diagnostics phase B current high, zero offset <1>
Ex09 Analogue diagnostics phase C current high, zero offset <1>
Ex10 Analogue diagnostics phase A voltage, gain <11000>
Ex11 Analogue diagnostics phase B voltage, gain <11000>
Ex12 Analogue diagnostics phase C voltage, gain <11000>
Ex14 Analogue diagnostics phase A current low, gain <11000>
Ex15 Analogue diagnostics phase B current low, gain <11000>
Ex16 Analogue diagnostics phase C current low, gain <11000>
Ex17 Analogue diagnostics phase A current high, gain <11000>
Ex18 Analogue diagnostics phase B current high, gain <11000>
Ex19 Analogue diagnostics phase C current high, gain <11000>
Ex20 Internal temperature <35.4>
Ex30 Analogue diagnostics Current dc input. Phase A. <0.0004>
Ex31 Analogue diagnostics Current dc input. Phase B. <0.0004>
Ex32 Analogue diagnostics Current dc input. Phase C. <0.0004>
Ex33 Analogue diagnostics Voltage dc input. Phase A. <0.0004>
Ex34 Analogue diagnostics Voltage dc input. Phase B. <0.0004>
Ex35 Analogue diagnostics Voltage dc input. Phase C. <0.0004>
Ex4y
5.6
6.5
State of input y. returns 1.0 for on, 0.0 for off.
y=0 to 7 for inputs 1 to 8.
Y=8 to F for filtered inputs 1 to 8.
<1.0>
Ex50 5.6 State of inputs 0 to 7 as a binary weighted number. <145.0>
Exd0 Diagnostic <42.0>
Exey Integer internal diagnostic registers <17.0>
Exfy Floating point internal diagnostic registers <14.234>
x determines the type of reading. Valid values for x are as follows:
4: Instantaneous readings.
5: Maximum reading over the recording interval of the load survey.
6: Minimum reading over the recording interval of the load survey.
7. Average(Mean) reading over the recording interval of the load survey.
Maximums, Minimums and Averages are calculated from a reading taken every second.
Types 5,6 and 7 are only available via load survey recording.
2000-04XX Energy Meter Reference Manual
172
_______"_1______ ___
The load survey has been divided into two sections, each of which is independently configurable. The
first section is intended for use as a secure area for the storage of load survey data when this is to be
used for generating billing information. The second section is intended for use as a method of
recording data for information or diagnostic purposes.
The second digit of the register address determines which section is to be read.
∙0 = section 1
∙1 = section 2
To read the load survey, it is necessary to first set the start date/time to read from and then to read the
load survey register. The meter will return the number of entries as defined in the maximum number of
entries to read register. After a register read, the read pointer will be modified automatically to return
the next available data when the next read is performed. If an attempt is made to set the read pointer
earlier than any recorded data, it will be set to point to the first record, an attempt to set it beyond the
last record will cause it to point at the last entry and a read request will return only the last record.
By reading from various registers, it is possible to read individual channels, the status data or all
channels and status data simultaneously.
Only the Exxx and 9xxx series of registers can be stored in the load survey - all others record zero.
This may change as more registers are added.
When the load survey is full (DxF2 = DxF6), the start date (DxF1) is the date/time of the reading one
before the first available reading in the load survey. This is caused by the entry actually being present,
but not available for download as it will be overwritten when the next load survey reading is taken. If
the load survey is not full, it’s date/time will be that of the first available reading.
The status data is returned as a 16 bit bitfield. The flag allocations are as follows, with the MSB being
the left most flag: “ESCFRACML.PTDIB.”. Note that there are two unused flag positions (indicated
by dots).
The value of DxF3 and DxF4 are reset to defaults after power up.
Note that when a load survey is started a dummy reading is taken so that the first reading contains a
complete interval. During the dummy reading DxF1, DxFF, Dx00 and Dxnn will return the date of the
dummy reading. When the dummy reading has been taken, the start date will change to the date of the
first reading.
2000-04XX Energy Meter Reference Manual
173
Register (Hex) Ver Register Function Example
DxF0 w Recording Interval (minutes) [15]
DxF1 w Start Date/Time of Load Survey(if written restarts the load
survey at the next interval- set time is ignored)
{20}{1}{95}{22}{30}{0}
DxF2 Number of readings in Load Survey. [2503]
DxF3 w Load survey read pointer {20}{1}{95}{22}{30}{0}
DxF4 w Max number of entries to read [100]
DxF5 w Load Survey channel configuration. Format is
{no. of channels}[register 1] ... [register n] {2}[E000][ E100]
DxF6 Max Number of readings in the load survey [1234]
D0F7 w % of memory allocated for Load Survey 1 {70}
DxF8 w When written to, the load survey setup is transferred to
the slaves (only valid on master unit)
Register
(Hex)
Ver Register Function Example
DxFF Load survey data for all channels, format as follows
{date}{month}{year}{hour}{minute}{second}
[number of readings to be sent]{num of channels}
.....
{20}{1}{95}{22}{30}{0}
[15]{3}
<63.5><63.4><63.4>[1111]
<63.5><63.4><63.4>[1111]
........
<63.5><63.4><63.4>[1111]
Dx00 Load survey status data
Format is {date}{month}{year}{hour}{minute}{second}
[number of readings]
[status data 1] ... [status data n]
Status data is represented as 16 bits with each bit
corresponding to a status flag as per register F016
{20}{1}{95}{22}{30}{0}
[4]
[1100][1001] ....... [111A][1111]
Dxnn Load survey data for channel nn (nn = 01 - EF)
Format is {date}{month}{year}{hour}{minute}{second}
[number of readings]
{20}{1}{95}{22}{30}{0}
[5]
<63.5><63.4>...<63.4><63.3>
2000-04XX Energy Meter Reference Manual
174
_"__ _________ ___
Register
(Hex)*
Ver Register Function Example
Cx00 Date/Time of first entry {20}{1}{95}{22}{30}{0}
Cx01 Date/Time of last entry {20}{1}{95}{22}{30}{0}
Cx02 Number of entries in log [100]
Cx03 w Event log read pointer {20}{1}{95}{22}{30}{0}
Cx04 w Max number of events to read [100]
Cx10 Event Log Data.
Format is a list of events as follows:
[number of events]
{date}{month}{year}{hour}{min}{sec}
“ event string 1”{0}
...............
{date}{month}{year}{hour}{min}{sec}
“ event string n“{0}
[2]
{1}{1}{95}{14}{35}{0}
“Power Off “{0}
{1}{1}{95}{15}{45}{0}
“Power On “{0}
x specifies the event log number. versions prior to v5.4 had only event log zero. The read pointers are
independent for each event log.
Cx03 and Cx04 are reset to defaults on power up.
When reading Cx10 versions prior to v6.4 would always return the last reading when the read pointer
had reached the end of available events. Version v6.4 and later return zero events.
2000-04XX Energy Meter Reference Manual
175
____________ ___
Only on voltage trigger enabled EM2/EM3
Register
(Hex)*
Ver Register Function Example
B000 Date/Time of first entry {20}{1}{95}{22}{30}{0}
B001 Date/Time of last entry {20}{1}{95}{22}{30}{0}
B002 Number of entries in log (100)
B003 w Trigger read pointer {20}{1}{95}{22}{30}{0}
B004 w Max number of triggers to read [100]
B005 w 6.4 Write a ‘Y’ to clear the trigger log. Requires config
jumper/switch. (Write only)
{89}
B010 Trigger Data.
Format is a list of events as follows:
[number of triggers]
{date}{month}{year}{hour}{min}{sec}{hunds}
“ trigger string 1”{0}
{date}{month}{year}{hour}{min}{sec}{hunds}
“ trigger string n“{0}
[2]
{1}{1}{95}{14}{35}{22}{02}
“A 115% 13.26s“{0}
{1}{1}{95}{14}{35}{22}{05}
“B 116% 13.25s“{0}
B003 and B004 are reset to defaults on power up.
When reading B010 versions prior to v6.4 would always return the last reading when the read pointer
had reached the end of available triggers. Version v6.4 and later return zero triggers.
2000-04XX Energy Meter Reference Manual
176
3____________ ___
Only on harmonic enabled EM3.
All harmonic readings are in Percent of Fundamental. All other readings except fundamental voltage
and current are expressed as percentages.
These registers may be stored in a load survey. Min/Max/Average readings have no meaning outside a
load survey.
Register (Hex)* Ver Register Function Example
9x00 6.4 Distortion factor of voltage (Harmonics / Fundamental) <10.4>
9x01 6.4 Fundamental voltage <240.3>
9x0z 6.4 Harmonics from 2 to 15 (z = 2 to F) on voltage <10.4>
9x1z 6.4 Harmonics from 16 to 31 (z = 0 to F) on voltage <10.4>
9x2z 6.4 Harmonics from 32 to 47 (z = 0 to F) on voltage <10.4>
9x3z 6.4 Harmonics from 48 to 50 (z = 0 to 2) on voltage <10.4>
9x3D 6.4 Voltage K factor <130.4>
9x3E 6.4 Total Harmonic Distortion + Noise on voltage
(Harmonics/RMS)
<10.4>
9x3F 6.4 Voltage Crest Factor <140.4>
9x80 6.4 Distortion factor of current (Harmonics / Fundamental) <10.4>
9x81 6.4 Fundamental current <5.3>
9x8z 6.4 Harmonics from 2 to 15 (z = 2 to F) on current <10.4>
9x9z 6.4 Harmonics from 16 to 31 (z = 0 to F) on current <10.4>
9xAz 6.4 Harmonics from 32 to 47 (z = 0 to F) on current <10.4>
9xBz 6.4 Harmonics from 48 to 50 (z = 0 to 2) on current <10.4>
9xBD 6.4 Current K factor <130.4>
9xBE 6.4 Total Harmonic Distortion + Noise on current
(Harmonics/RMS)
<10.4>
9xBF 6.4 Current Crest Factor <140.4>
Where x determines the channel and type of reading as follows:
Value of x Meaning
0 Phase A instantaneous
1 Phase A maximum
2 Phase A minimum
3 Phase A average
4 Phase B instantaneous
5 Phase B maximum
6 Phase B minimum
7 Phase B average
8 Phase C instantaneous
9 Phase C maximum
A Phase C minimum
B Phase C average
2000-04XX Energy Meter Reference Manual
177
____/__4________ ___
These consist of over 9000 registers that contain quantities divided into tariffs and billing periods.
They are accessed using the following registers. All of the registers are available in float or double
format (except for the time registers which are in the standard 6 byte time format, with the seconds
always zero).
'_______%___ _ /4_!_2555
These registers are only available on v6.5 and later of the EM3. They are scaled from raw counts by the
scaling multiplier and offset configured in the input setup.
_ _ _ _
(Register Type) (Input Number) (Billing Period) (Tariff Period)
0 - 7 = Periods 1 to 8
8 = Default rate
9 = Unified rate
A =Test rate
0 = Current
2 = Previous
4 = Billing
6 = Total
0 = Input 1
1 = Input 2
2 = Input 3
3 = Input 4
4 = Input 5
5 = Input 6
3 = Pulsing input 6 = Input 7
7 = Input 8
2000-04XX Energy Meter Reference Manual
178
______4________ ___
The time of use registers consist of a set of registers, with the corresponding register numbers able to
be determined as follows :
_ _ _ _
(Register Type) (Units and Direction) (Global status, Period, (Tariff Period)
(Compensation))
0 - 7 = Periods 1 to 8
8 = Default rate
9 = Unified rate
A = Test rate
0(8) = UnComp Current (Global)
1(9) = Comp Current (Global)
2(A) = UnComp Previous 1 (Global)
3(B) = Comp Previous 1(Global)
4(C) = UnComp Billing Total (Global)
5(D) = Comp Billing Total (Global)
6(E) = UnComp Total (Global)
7(F) = Comp Total (Global)
0 = Import W (or Wh)
1 = Export W (or Wh)
2 = Import VAr (or VArh)
3 = Export VAr (or VArh)
4 = Import VA (or VAh - v6.4)
5 = Export VA (or VAh - v6.4)
8 = Import W Minimum p.f. (v6.6)
9 = Export W Minimum p.f. (v6.6)
A = Import VAr Minimum p.f. (v6.6)
B = Export VAr Minimum p.f. (v6.6)
C = Minimum p.f. (v6.6)
0 = Energy
1 = Max. Demand
2 = p.f. at Max./Min. Demand
8= Max./Min. Demand Time (v6.6)
Exclusions - the following are not calculated :
Test Rate value for demand quantities (Type 1,2,8) as test mode suspends demand calculations.
The Minimum p.f. series of Units (8 to C) for Energy or Max. Demand register types (0 or 1).
Total and Billing Total values of p.f. at Max./Min. demand and Max./Min. Demand Time for Units 0 to 5.
Compensated Minimum p.f.
2000-04XX Energy Meter Reference Manual
179
'__"____'_______%___ _ /4_!_6555
These registers are only available on v6.6 and later of the EM3 with extended TOU. They are scaled
from raw counts by the scaling multiplier and offset configured in the input setup. They give an
extended historical record.
_ _ _ _
(Register Type) (Input Number) (Billing Period) (Rate Period)
0 - 7 = Periods 1 to 8
8 = Default rate
9 = Total rate
A = Test rate
0 = Previous 2
1 = Previous 3
2 = Previous 4
3 = Previous 5
4 = Previous 6
5 = Previous 7
6 = Previous 8
7 = Previous 9
0 = Input 1
1 = Input 2
2 = Input 3
3 = Input 4
4 = Input 5
5 = Input 6
6 = Input 7
7 = Input 8
7 = Pulsing input
2000-04XX Energy Meter Reference Manual
180
'__"____ ______4________ ___
The previous time of use registers consist of a historical record of billing resets (available with v6.6
firmware and Extended TOU) of uncompensated values, with the corresponding register numbers able
to be determined as follows :
_ _ _ _
(Register Type) (Units and Direction) (Global status, Period, (Rate Period)
Compensation)
0 - 7 = Periods 1 to 8
8 = Default rate
9 = Total rate
A = Test rate
0(8) = Previous 2 (Global)
1(9) = Previous 3 (Global)
2(A)= Previous 4 (Global)
3(B) = Previous 5 (Global)
4(C) = Previous 6 (Global)
5(D) = Previous 7 (Global)
6(E) = Previous 8 (Global)
7(F) = Previous 9 (Global)
0 = Import W (or Wh)
1 = Export W (or Wh)
2 = Import VAr (or VArh)
3 = Export VAr (or VArh)
4 = Import VA (or VAh)
5 = Export VA (or VAh)
8 = Import W Minimum p.f.
9 = Export W Minimum p.f.
A = Import VAr Minimum p.f.
B = Export VAr Minimum p.f.
C = Minimum p.f.
4 = Energy
5 = Max. Demand
6 = p.f. at Max./Min. Demand
A= Max./Min. Demand Time
Exclusions - the following are not calculated :
Test Rate value for demand quantities (Type 4,5,A) as test mode suspends demand calculations.
The Minimum p.f. series of Units (8 to C) for Energy or Max. Demand register types (4 or 5).
2000-04XX Energy Meter Reference Manual
181
______4_________ ________ ___
The default time of use register descriptions can be quite cryptic due to the number of registers
available. For example, the description “lEXPuncGVAR P2T1” (for register 6B80) means the
Minimum Power Factor of the Export Uncompensated Global VArs in Previous Period 2 in Tariff 1.
The following is a guide to the default descriptions. Note that in some cases a “None” option is not
padded with a space.
Letter # Purpose Options Description
0 Type of reading None Energy Value
l Minimum (lowest) p.f.
M Maximum Demand (Power Value)
p Maximum p.f.
1-3 Direction IMP Import Direction
EXP Export Direction
None No specific direction
4-6 Compensation cmp Transformer/line-loss Compensated Value
unc Transformer/line-loss Uncompensated Value
7 Scope None Local
G Global
8-10 Units W Unit is W or Wh
VAr Unit is VAr or VArh
VA Unit is VA or VAh
11 Value or Time None Value of reading
t Time of reading
12-13 Period C Current billing period
T Total (cumulative) billing period
P# Previous billing period (1 to 9)
14-15 Tariff T# Tariff number (0 to 7)
DT Default Tariff
TT Total Tariff
TE Test Tariff
These default descriptions can be defined by the user to be of a more convenient form.
2000-04XX Energy Meter Reference Manual
182
This page left intentionally blank
2000-04XX Energy Meter Reference Manual
183
Chapter 16 ________ ________ ___
Any value called unused should be written as a zero, or left unchanged. A type with square brackets
after it containing a number indicates an array with the indicated number of elements.
_____ ______"__)&*77_!_&*7_+
200 bytes. Each phase is in a separate register.
Offset Type Description
0 float Overall Phase offset
4 float Overall Scale factor
8 float Transformer ratio multiplier
12 float Transformer ratio divisor
16 float Full Scale. Leave the same as it was. May differ from meter
type to meter type.
20 float[15] The percentage of the fifteen calibration points to nominal.
Nominal for voltage ranges is the line to line voltage. First
value should be the lowest. Generally best to leave these as
the defaults.
80 float[15] The phase offset of each of the 15 calibration points.
140 float[15] The magnitude multiplier of the 15 calibration points.
C h a p t e r
16
2000-04XX Energy Meter Reference Manual
184
(_________ ___)&**7+
80 bytes.
Offset Type Description
0 char[21] Null terminated feeder name.
21 byte Measurement config. 0 = 3 element, 1 = 2 element.
22 long Modem port baud rate.
26 bool True if tone dialling to be used, false for pulse dialling.
27 bool True if energy polarity is to be reversed.
28 short Test time-out period in minutes.
30 byte LCD cycle rate in seconds. 0 stops automatic cycling.
31 char[5] Null terminated Site ID string.
36 char[21] Null terminated Site Name string.
57 byte Timing Source: 0 = 50Hz Auto, 1 = Internal, 2 = 60Hz Auto.
58 char[21] Null terminated Modem setup string.
79 byte Global read interval in seconds
'_______/_ __ __)&***+
105 bytes.
The setup is formed of 13 structures of the following form, plus a byte indicating the time pulse time in
seconds.
Offset Type Description
0 float Setting for relay
4 byte Reading type - this number corresponds with the list of
available pulse output types in the manual, starting at zero.
5 byte Relay off time in ms.
6 byte Relay on time in ms.
7 byte Bit 0 indicates the output is inverted.
4___.___ ____%_____ ___)&**8+
1340 bytes.
The setup is formed of 35 structures of the following form, one for each customer.
Offset Type Description
0 char[11] Null terminated customer name string. Unused entries should
have a null string here.
This is followed by 35 structures of the following form, one for each meter. Starts at offset 420.
Offset Type Description
0 byte Indicates which customer the meter belongs to. This is an index
into the above table of customer names.
This is followed by the user setup starting at offset 456. The user setup is made up of 20 structures of
the following form, one for each user. They should be arranged with unused users at the end
2000-04XX Energy Meter Reference Manual
185
Offset Type Description
0 char[11] Null terminated user name string. Unused entries should have a
null string here.
11 char[11] Null terminated password string.
22 byte User level.
23 byte The user’s customer. Index to the customer array below.
24 byte unused.
25 char[21] Null terminated phone number string.
__________ ___)&**9+
10 bytes.
Each byte represents a percent.
Offset Type Description
0 byte Reference tolerance.
1 byte Power symmetry tolerance.
2 byte Minimum current level.
3 byte Maximum voltage tolerance.
4 byte Minimum voltage tolerance.
5 byte Maximum trigger voltage level.
6 byte Minimum trigger voltage level.
7 byte Minimum VT level.
8 byte Unused.
9 byte Unused.
________ ___)&**:+
1566 bytes.
The tariff setup consists of 40 of the following time entry structures.
Offset Type Description
0 byte Tariff period type. 0 = no tariff, 1 = daily, 2 = weekly, 3 = yearly, 4
= special.
1 byte Tariff number this entry is for. 0 to 7.
2 char[21] Null Terminated comment string.
23 byte Unused.
24 byte[12]
Daily:
Weekly:
Yearly:
Special:
Tariff timing info. All values are bytes, start time first.
Day has 0 = Sunday, 6 = Saturday.
{hour, minute, hour, minute}
{day, hour, minute, unused, day, hour, minute}
{hour, minute, date, month, hour, minute, date, month}
{hour, minute, date, month, year, unused,
hour, minute, date, month, year}
These are followed by the following data.
2000-04XX Energy Meter Reference Manual
186
Offset Type Description
1440 char[11][11] 11 consecutive null terminated tariff name strings, each 11
characters long.
1561 byte Unused.
1562 byte Average type - 0 for block, 1 for rolling.
1563 byte Average sub period (minutes)
1564 byte Rising demand interval (minutes)
1565 byte Reset date of the month
____'_____ ____)&**;+
48 bytes.
Offset Type Description
0 float Vr
4 float Ir
8 float Wfe
12 float Vfe
16 float Wcu
20 float Vcu
24 float x1
28 float x2
32 float x3
36 float x4
40 float R
44 float X
__-_%_____ ___)&**6+
204 bytes.
The LCD information consists of 50 screen formats, followed by a long integer number of screens.
Each screen format is a long integer and forms a bitfield as listed below. Bit 0 is the LSB.
Bit Type Description
0-15 Unsigned short Register to display.
16 Boolean 0 if belongs to set A, 1 if belongs to set B
17 Boolean If TRUE then display units.
18 Boolean If TRUE then display leading zeros
19-22 unsigned 4 bit int Digits before decimal point, 0 to 15.
23-24 unsigned 2 bit int 0 for Scientific mode, 1 for Standard mode, 2 for
Scientific/Standard mode.
25-27 unsigned 3 bit int Multiplier: 0 for none, 1 for k, 2 for M, 3 for G, 4 for m, 5 for u.
28-31 unsigned 4 bit int Decimal places.
2000-04XX Energy Meter Reference Manual
187
4_________ ___-______ ____)&**<+
1004 bytes.
The LCD information consists of 50 register descriptions records, followed by a long integer number
of descriptions.
Offset Type Description
0 unsigned short Register number that this description applies to.
2 char[17] Null terminated description string.
19 byte Attribute. Currently unused and should be set to zero.
'_______%___ __)&**=+
48 bytes.
The setup is formed of 8 structures of the following form.
Offset Type Description
0 float Energy value for input
4 byte Input type: 0 for Wh, 1 for VArh, 2 for Qh.
5 byte Unused, set to zero.
______ _____ ___)&**_+
18 bytes.
Offset Type Description
0 long Local port baud rate.
4 byte Modem port priority.
5 byte Local port priority.
6 byte Remote port priority.
7 byte Unused.
8 byte Unused.
9 Boolean True if a modem is to be used.
10 byte Handshaking: 0 for none, 1 for DTR/DCD.
11 byte Local port handshaking, unused at present, set to zero.
12 long Baud rate of redirected port.
16 word Unused.
2000-04XX Energy Meter Reference Manual
188
3___>______ ___)&**_+
40 bytes.
Port allocations from 10 to 17 indicate what hardware is allocated to software ports. The hardware
ports for mk2 hardware are 0=Nowhere, 1 = Fibre, 2 = Local port. The hardware ports for mk3
hardware are 0 = Nowhere, 1 = Modem port, 2 = Opticom, 3 = Fibre (DUART), 4 = Expansion
SCADA port (DUART).
Offset Type Description
0 byte Number of inputs.
1 byte Number of outputs.
2 Boolean TRUE if backlight fitted.
3 byte Unused.
4 unsigned short Unused.
6 unsigned short Unused.
8 Boolean TRUE if a duart is fitted.
9 Boolean TRUE if a quart is fitted.
10 byte Remote port allocation.
11 byte Local port allocation.
12 byte Fibre comms port allocation.
13 byte Redirected port allocation.
14 byte SCADA port allocation.
15 - 17 byte Unused.
18 byte Bank 1 memory use. 0 for load survey, 1 for Zmodem download, to
for internal debug.
19-26 byte Serial port setup; serial ports are as for offsets 10 to 17.
27 byte[13] Unused.
2000-04XX Energy Meter Reference Manual
189
(_______%___ ___ ___)&**_+
136 bytes.
The tariff setup consists of 8 of the following 16 byte input channel structures.
Offset Type Description
0 byte Polarity- bitfield
Bit 0 - Invert input
Bit 1 - Generate an Event
Bit 2 - Cause a tariff change
Bit 3 - Control the gate
Bit 4-7 - Unused, set to 0.
1 byte Tariff
2 word Unused
4 word On time (not zero)
6 word Off time (not zero)
8 float Multiplier factor
12 float Constant additive factor
These are followed by the following data.
Offset Type Description
128 byte Time sync channel (0 for none)
129 byte Billing reset channel (0 for none)
130 word Time sync interval (1 to 60 minutes)
132 long Unused
2000-04XX Energy Meter Reference Manual
190
This page left intentionally blank
2000-04XX Energy Meter Reference Manual
191
Chapter 17 ______ ____
There are many ways to calculate the CCITT 16 bit CRC of a data stream. The following
implementation (in ‘C’) is one method.
short gencrc_16(short i)
{
short j;
short k;
short crc;
k = i << 8;
crc = 0;
for ( j = 0 ; j < 8 ; j++ ) {
if ( ( crc ^ k ) & 0x8000 )
crc = ( crc << 1 ) ^ 0x1021;
else
crc <<= 1;
k <<= 1;
}
return(crc);
}
unsigned short CalculateCharacterCRC16( unsigned short crc, unsigned char c )
{
return( ( crc << 8 ) ^ gencrc_16( (crc >> 8 ) ^ c ) );
}
The function gencrc_16 could be replaced by a table. The range of its argument is from 0 to 255 (a
single character).
CalculateCharacterCRC16 is called for every character, with the current CRC count, and the character
to add to the CRC. It returns a new CRC including that character. The initial CRC should be set to
zero.
C h a p t e r
17
2000-04XX Energy Meter Reference Manual
192
'________ ______________ _______
The following is a Pascal routine for calculating the CRC from the table listed later.
function CalculateCharacterCRC16(CRC:Word;B:Byte):Word;
begin
{$R-}
CalculateCharacterCRC16:=((CRC shl 8) XOR Ccitt16[Hi(CRC) XOR B]);
{$R+}
end
________*;___ _
/*
* These are the tables used by the table lookup method of
* generating CRC values.
*/
const unsigned short ccitt_16[ 256 ] =
{
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50A5, 0x60C6, 0x70E7,
0x8108, 0x9129, 0xA14A, 0xB16B, 0xC18C, 0xD1AD, 0xE1CE, 0xF1EF,
0x1231, 0x0210, 0x3273, 0x2252, 0x52B5, 0x4294, 0x72F7, 0x62D6,
0x9339, 0x8318, 0xB37B, 0xA35A, 0xD3BD, 0xC39C, 0xF3FF, 0xE3DE,
0x2462, 0x3443, 0x0420, 0x1401, 0x64E6, 0x74C7, 0x44A4, 0x5485,
0xA56A, 0xB54B, 0x8528, 0x9509, 0xE5EE, 0xF5CF, 0xC5AC, 0xD58D,
0x3653, 0x2672, 0x1611, 0x0630, 0x76D7, 0x66F6, 0x5695, 0x46B4,
0xB75B, 0xA77A, 0x9719, 0x8738, 0xF7DF, 0xE7FE, 0xD79D, 0xC7BC,
0x48C4, 0x58E5, 0x6886, 0x78A7, 0x0840, 0x1861, 0x2802, 0x3823,
0xC9CC, 0xD9ED, 0xE98E, 0xF9AF, 0x8948, 0x9969, 0xA90A, 0xB92B,
0x5AF5, 0x4AD4, 0x7AB7, 0x6A96, 0x1A71, 0x0A50, 0x3A33, 0x2A12,
0xDBFD, 0xCBDC, 0xFBBF, 0xEB9E, 0x9B79, 0x8B58, 0xBB3B, 0xAB1A,
0x6CA6, 0x7C87, 0x4CE4, 0x5CC5, 0x2C22, 0x3C03, 0x0C60, 0x1C41,
0xEDAE, 0xFD8F, 0xCDEC, 0xDDCD, 0xAD2A, 0xBD0B, 0x8D68, 0x9D49,
0x7E97, 0x6EB6, 0x5ED5, 0x4EF4, 0x3E13, 0x2E32, 0x1E51, 0x0E70,
0xFF9F, 0xEFBE, 0xDFDD, 0xCFFC, 0xBF1B, 0xAF3A, 0x9F59, 0x8F78,
0x9188, 0x81A9, 0xB1CA, 0xA1EB, 0xD10C, 0xC12D, 0xF14E, 0xE16F,
0x1080, 0x00A1, 0x30C2, 0x20E3, 0x5004, 0x4025, 0x7046, 0x6067,
0x83B9, 0x9398, 0xA3FB, 0xB3DA, 0xC33D, 0xD31C, 0xE37F, 0xF35E,
0x02B1, 0x1290, 0x22F3, 0x32D2, 0x4235, 0x5214, 0x6277, 0x7256,
0xB5EA, 0xA5CB, 0x95A8, 0x8589, 0xF56E, 0xE54F, 0xD52C, 0xC50D,
0x34E2, 0x24C3, 0x14A0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405,
0xA7DB, 0xB7FA, 0x8799, 0x97B8, 0xE75F, 0xF77E, 0xC71D, 0xD73C,
0x26D3, 0x36F2, 0x0691, 0x16B0, 0x6657, 0x7676, 0x4615, 0x5634,
0xD94C, 0xC96D, 0xF90E, 0xE92F, 0x99C8, 0x89E9, 0xB98A, 0xA9AB,
0x5844, 0x4865, 0x7806, 0x6827, 0x18C0, 0x08E1, 0x3882, 0x28A3,
0xCB7D, 0xDB5C, 0xEB3F, 0xFB1E, 0x8BF9, 0x9BD8, 0xABBB, 0xBB9A,
0x4A75, 0x5A54, 0x6A37, 0x7A16, 0x0AF1, 0x1AD0, 0x2AB3, 0x3A92,
0xFD2E, 0xED0F, 0xDD6C, 0xCD4D, 0xBDAA, 0xAD8B, 0x9DE8, 0x8DC9,
0x7C26, 0x6C07, 0x5C64, 0x4C45, 0x3CA2, 0x2C83, 0x1CE0, 0x0CC1,
0xEF1F, 0xFF3E, 0xCF5D, 0xDF7C, 0xAF9B, 0xBFBA, 0x8FD9, 0x9FF8,
0x6E17, 0x7E36, 0x4E55, 0x5E74, 0x2E93, 0x3EB2, 0x0ED1, 0x1EF0
};
2000-04XX Energy Meter Reference Manual
193
__ ________ ___________ __
This routine generates the above table.
void build_table_16( unsigned short table[] )
{
short i;
short j;
short k;
short crc;
for ( i = 0 ; i < 256 ; i++ ) {
k = i << 8;
crc = 0;
for ( j = 0 ; j < 8 ; j++ ) {
if ( ( crc ^ k ) & 0x8000 )
crc = ( crc << 1 ) ^ 0x1021;
else
crc <<= 1;
k <<= 1;
}
table[ i ] = crc;
}
}
2000-04XX Energy Meter Reference Manual
194
This page left intentionally blank
2000-04XX Energy Meter Reference Manual
195
Chapter 18 (_____1
Active rate The active rate of a channel is where new data is recorded.
Automatic Billing
Reset
A billing reset is generated automatically by the scheduler’s calender.
In this way it can be set to occur monthly for example.
Billing period This is generally the period over which the customer is billed. A billing period reset causes
the meter to start a new billing period. The meter can automatically generate billing period
resets every month, on a specified time and date of the month. Alternatively a manual billing
reset can be generated by one of several means. This can be from a command via the
menu or command line interface (either locally or remotely), via an input (where fitted), or via
a sealable button on the meter cover (where fitted).
New energy consumption information is accumulated in the current billing period registers.
When a billing reset occurs the current billing period registers are cleared and begin to
accumulate information about the new billing period. The information that was in the current
billing period registers is copied to the previous billing period registers. In addition this
information is added to the cumulative billing period registers. Where multiple previous
billing period registers are available (Extended T.O.U. option), the registers "shuffle along"
when the new previous billing period is entered, causing the oldest previous billing period
information to be lost.
Billing Period A billing period is a period of time begun and ended by billing resets.
Billing Reset: This occurs at the end of a billing period to enter the next billing period.
Configuration
Jumper
There are several screens that can not be changed unless the meter is in ‘Config’ mode.
Shorting JP1, located on the CPU card near the terminal side edge enters this. Shorting
means to plug the supplied jumper over the two pins so that they are connected together.
When not in use, the jumper can be left plugged onto one pin only.
CT See current transformer.
Current Billing
Period
The billing period that has started but has not yet completed.
Current Period See Current Billing Period.
Current Transformer Used to step down the current to be measured to within the measurement range of the meter
Demand Demand is calculated based on a demand interval. Demand intervals may be set from 1
minute up to 60 minutes. Demand intervals either occur one after the other (block demand),
or overlapping (rolling demand). For each demand interval the demand during that interval
is equal to the energy during the interval multiplied by duration of the interval to give a
measure of average power over the interval. This quantity can be calculated during the
interval to give rising demand, useful in load control. The average power factor for a
demand interval is calculated from the VA and W demand for the interval.
LCD Liquid Crystal Display. The meter has an LCD on the front panel. Note that the term LCD
Display is redundant but it is commonly used and its meaning is more obvious.
LED Light Emitting Diode. A solid state light.
Load survey Also known as a load profile, this is a historical record of supply statistics over
C h a p t e r
18
2000-04XX Energy Meter Reference Manual
196
Manual Billing
Reset:
A billing reset may be triggered manually by a push button on the front panel (sealable) or by
a serial communications command. Security requirements need to be met for a serial
communications command to be accepted.
PC An IBM compatible Personal Computer.
Period See Billing Period.
Previous Billing
Period
The last completed billing period. The billing reset that ended this period started the current
period.
Previous Period See Previous Billing Period.
PT Potential Transformer. See Voltage Transformer.
Rate Each billing period is divided up into eight Rates. At any one moment only one Rate is
active, and it is into this Rate that the energy information being measured is stored. In
addition to this, there is a total Rate which always accumulates energy information,
regardless of the active Rate. If no Rate is currently active, energy information is stored into
a default Rate (separate from the other Rates). The exception to this operation is that if the
meter is in test mode all energy information is stored in a test Rate and is not recorded by
any of the other Rates.
The current active Rate is selected by an internal "calendar" of time periods that each Rate
is to be active for. There are four different types of time period. The Daily type allows for a
start and end time during the day to be set, which is repeated every day. The Weekly type
allows for a start and end time and day during the week to be set, repeated every week. The
Yearly type allows a start and end time and date during the year to be set, repeated yearly.
Finally, the Special type allows a specific start and end time, date and year to be entered.
Multiple time periods can be set for each Rate. If two Rates are programmed to be active at
the same time the type will determine the active type. A special type has precedence over a
yearly type, which has precedence over a weekly type, which has precedence over a daily
type. On meters so equipped, an input can be used to activate Rate when active. Inputs
have precedence over all internally generated types.
Rate Group There are 5 independent rate groups, and at any one time one rate is active in each of these
groups. The rate groups are called ‘W’, ‘VAr’, ‘VA’, ‘EX1’, ‘EX2’.
Rate Information Each Rate holds information about the energy consumption that occurred while it was
recording. This information consists of three sections - energy, maximum demand, and
minimum power factor. The energy section stores the energy consumed and generated
(import and export) for Wh, VArh and VAh. The maximum demand section stores the
maximum demand for import and export directions for W, VAR and VA. The time the
maximum demand occurred and the average power factor at that time is also stored. The
minimum power factor section stores the minimum average power factor that occurred and
the time that it occurred, restricted by the setting of minimum demand required for minimum
power factor recording. This is record for import and export, Watts and VArs.
Register A stored value that may be read and written to. Registers may be of several types.
Survey A generic recording device for recording a number of channels of information at a series of
times.
Test Mode A special mode in which the meter can be placed. While in this mode, energy is not recorded
in the normal tariff registers. Instead the energy is recorded in the TEST MODE registers.
Time of Use(TOU) System for recording usage patterns based on the time the usage occurred.
TOU See Time of Use.
Transformer Ratios These settings allow the meter to display readings in primary quantities.
Voltage
Transformer.
Used to step down the voltage to be measured to within the measurement range of the
meter.
VT See voltage transformer.
2000-04XX Energy Meter Reference Manual
197
Chapter 19 %___$
Access levels, 20, 56, 62
Address, 33, 34, 69, 91, 136, 156, 157, 160
Administrator, 52, 53, 54, 57, 59, 62
Alarms, 12, 40, 76, 90, 133, 138
Analogue Diagnostics, 138
Analogue Parameters, 62, 63, 138
Auxiliary supply, 8
Battery, 16
Baud rate, 31, 32, 71
Billing Reset Lockout, 103
Clock, 80, 91, 135, 156
command line, 19, 20, 40, 51, 62, 63, 75, 82, 89, 141, 143, 146,
147, 148, 158, 195
Command Line, 34, 62, 63, 141, 147, 149
Command Line Access, 62, 141
Communications, 24, 71, 91
compensated, 93, 140, 164, 166, 168
Configuration mode, 14
Configure Modem, 71, 72, 138
Copying, 67
Correction Curves, 96, 138
CRC, 34, 142, 143, 147, 149, 150, 151, 157, 191, 192
CRC Tables and Routines, 191
Current, 5, 82, 95
Customer Allocation, 138
Customer ID, 56, 138
Daily rate period, 102
data loss, 16, 46, 99, 134
Date, 12, 38, 46, 80, 118
Daylight saving, 81, 98
DB25 Modem Connections, 21
Default Meter, 66
demand, 1, 24, 25, 43, 44, 62, 69, 75, 76, 82, 93, 99, 102, 104,
105, 133, 134, 140, 168, 169, 178, 180, 186, 195, 196
Demand Averaging, 104
Description of Access Levels, 62
element, 82, 134, 135, 140, 166, 184
Energy, i, 14, 15, 19, 23, 24, 33, 49, 68, 76, 79, 105, 141, 168,
169, 178, 180, 181, 187
Energy pulsing outputs, 76
Event Log, 39, 40, 138, 174
EziView, 19, 24
Install, 26
Setting up, 32
Features, 83, 138
Fibre optic, 1, 62
Fibre port, 7, 89
C h a p t e r
19
2000-04XX Energy Meter Reference Manual
198
Fibre ring, 12, 33, 34
Files, 105, 109, 120
Fuse, 17
Gated energy, 49, 79, 82, 130, 169
global, 76, 138, 147, 158, 159, 169
Hardware, 13, 41, 88, 91, 188
Harmonic, 48, 176
Inactivity Time-out, 20, 40
IO port, 7
Language, 111, 112
LCD Screens, 63, 84, 138
LEDs, 75
Load Survey, 38, 62, 63, 98, 99, 134, 138, 172, 173
local, 12, 40, 76, 141, 158
Local Access, 40, 71, 88
Local connection, 20
Loss Parameters, 92, 138, 159, 186
Maintenance, 17
Mapping, 35
Master, 12, 33
Maximum demand, 43, 104
Measurement configuration, 4, 82, 134
Measurement Method, 82, 139
Menu Hierarchy, 137
Meter Connections, 4
modem, 12, 20, 136, 141, 143, 187
Modem, 24, 71, 72, 91
Password, 52, 54
Pasting, 67
Permissions, 51, 55, 60, 63, 108
Phone Number, 51
Power polarity, 15, 82, 140
Pulsing Inputs, 9, 78, 138, 170, 177, 187
Pulsing Output, 9, 74, 91, 136, 156
Pulsing Outputs, 138, 159, 184
Rate Names, 102, 103, 138
Rate Times, 102, 138
Reading Files, 113, 120, 121
Recording interval, 76, 98, 99
Register Descriptions, 86, 138, 159, 187
Register Display, 13, 24, 84, 186
Register tables, 84, 98, 155
Remote Access, 40, 88
Remote connection, 20
Restore Factory Defaults, 138
Rising Demand Interval, 104
Rising demand outputs, 76
Rolling Demand Interval, 104
RS 485 Connections, 6, 22
RS232, 6, 19, 24, 71, 89
RS485, 24, 31, 71, 89
RS485 to RS232 Connections, 21, 22
Sag, 46
SCADA, 6, 20, 22, 71, 89
Security, 51
Serial Number, 32, 34, 35, 37, 83, 119
Setup, 25, 63, 65, 68, 98, 99, 120, 134, 138, 159, 161, 184, 185,
187, 188, 189
Site, 29, 68
Slave Access, 1, 33, 138
Software Version, 157
Special periods, 102
Specifications, 139
Status, 12, 37, 63, 103, 125, 131, 138, 156, 157, 162, 163, 164,
173
2000-04XX Energy Meter Reference Manual
199
Summation, 105
Swell, 46
System Parameters, 40, 62, 63, 68, 138
System Requirements, 26
Testing, 33, 34, 40, 69, 125, 130, 157
Time, 12, 79, 80
Time of Use, 43, 62, 102, 138, 145, 178, 180, 181
Time synchronising, 76, 79
Tolerances, 42, 138
Total, 103, 158, 163, 166, 169, 176, 177, 178, 179, 180, 181
Transformer Ratios, 42, 85, 94, 96, 138
uncompensated, 13, 43, 93, 140, 164, 180
User/Customer Information, 63, 138, 159, 184
Version Number, 12, 31
View Disturbance Triggers, 138
View Harmonic Content, 138
Voltage, 5, 82, 91, 95
VT EFA, 77
VT100, 19, 33, 51, 52, 89, 137
Warm up, 125
Warning, 4, 5, 6, 7, 39, 65, 81, 88, 116
Waveform, 45
Weekly period, 102
Year 2000, 80
Yearly periods, 102
2000-04XX Energy Meter Reference Manual
201
2000-04XX Energy Meter Reference Manual
202
本文来源:https://www.2haoxitong.net/k/doc/95ff62e8e009581b6bd9ebbf.html
文档为doc格式