Upload
rindarayna
View
266
Download
59
Embed Size (px)
Citation preview
Service ManualM220
Measurement Centre
Service ManualM220
Measurement Centre
HANDLING OF ELECTRONIC EQUIPMENT
A person's normal movements can easily generate electrostatic potentials of several thousand volts.Discharge of these voltages into semiconductor devices when handling electronic circuits can causeserious damage, which often may not be immediately apparent but the reliability of the circuit will havebeen reduced.
The electronic circuits of ALSTOM T&D Protection & Control Ltd products are immune to the relevant levelsof electrostatic discharge when housed in their cases. Do not expose them to the risk of damage bywithdrawing modules unnecessarily.
Each module incorporates the highest practicable protection for its semiconductor devices. However, if itbecomes necessary to withdraw a module, the following precautions should be taken to preserve the highreliability and long life for which the equipment has been designed and manufactured.
1. Before removing a module, ensure that you are at the same electrostatic potential as the equipmentby touching the case.
2. Handle the module by its front-plate, frame, or edges of the printed circuit board.Avoid touching the electronic components, printed circuit track or connectors.
3. Do not pass the module to any person without first ensuring that you are both at the sameelectrostatic potential. Shaking hands achieves equipotential.
4. Place the module on an antistatic surface, or on a conducting surface which is at the samepotential as yourself.
5. Store or transport the module in a conductive bag.
More information on safe working procedures for all electronic equipment can be found in BS5783 andIEC 60147-0F.
If you are making measurements on the internal electronic circuitry of an equipment in service, it ispreferable that you are earthed to the case with a conductive wrist strap.Wrist straps should have a resistance to ground between 500k – 10M ohms. If a wrist strap is notavailable, you should maintain regular contact with the case to prevent the build up of static.Instrumentation which may be used for making measurements should be earthed to the case wheneverpossible.
ALSTOM T&D Protection & Control Ltd strongly recommends that detailed investigations on the electroniccircuitry, or modification work, should be carried out in a Special Handling Area such as described inBS5783 or IEC 60147-0F.
SAFETY SECTION
This Safety Section should be read before commencing any work on theequipment.
Health and safety
The information in the Safety Section of the product documentation is intended toensure that products are properly installed and handled in order to maintain themin a safe condition. It is assumed that everyone who will be associated with theequipment will be familiar with the contents of the Safety Section.
Explanation of symbols and labels
The meaning of symbols and labels which may be used on the equipment or in theproduct documentation, is given below.
Caution: refer to product documentation Caution: risk of electric shock
Protective/safety *earth terminal
Functional *earth terminal.Note: this symbol may also be used for a protective/safety earth terminal if that terminal is part of aterminal block or sub-assembly eg. power supply.
*Note:The term earth used throughout the product documentation is the directequivalent of the North American term ground.
Installing, Commissioning and ServicingEquipment connections
Personnel undertaking installation, commissioning or servicing work on thisequipment should be aware of the correct working procedures to ensure safety.The product documentation should be consulted before installing, commissioning orservicing the equipment.
Terminals exposed during installation, commissioning and maintenance maypresent a hazardous voltage unless the equipment is electrically isolated.
If there is unlocked access to the rear of the equipment, care should be taken by allpersonnel to avoid electric shock or energy hazards.
Voltage and current connections should be made using insulated crimpterminations to ensure that terminal block insulation requirements are maintainedfor safety. To ensure that wires are correctly terminated, the correct crimp terminaland tool for the wire size should be used.
Before energising the equipment, the following should be checked:
Voltage rating and polarity;
CT circuit rating and integrity of connections;
Protective fuse rating;
Integrity of earth connection (where applicable)
Equipment operating conditions
The equipment should be operated within the specified electrical andenvironmental limits.
Current transformer circuits
Do not open the secondary circuit of a live CT since the high voltage producedmay be lethal to personnel and could damage insulation.
Battery replacement
Where internal batteries are fitted they should be replaced with therecommended type and be installed with the correct polarity, to avoid possibledamage to the equipment.
Insulation and dielectric strength testing
Insulation testing may leave capacitors charged up to a hazardous voltage. At theend of each part of the test, the voltage should be gradually reduced to zero, todischarge capacitors, before the test leads are disconnected.
Decommissioning and Disposal
Decommissioning: The auxiliary supply circuit in the relay may includecapacitors across the supply or to earth. To avoid electricshock or energy hazards, after completely isolating thesupplies to the relay (both poles of any dc supply), thecapacitors should be safely discharged via the externalterminals prior to decommissioning.
Disposal: It is recommended that incineration and disposal to watercourses is avoided. The product should be disposed of in asafe manner. Any products containing batteries should havethem removed before disposal, taking precautions to avoidshort circuits. Particular regulations within the country ofoperation, may apply to the disposal of lithium batteries.
Technical SpecificationsProtective fuse rating
The recommended maximum rating of the external protective fuse for thisequipment is 6A, Red Spot type or equivalent.
Insulation class: IEC 601010-1: 1990/A2: 1995 This equipment does notClass II require a protective (safety)
earth connection.EN 61010-1: 1993/A2: 1995Class II
Installation IEC 601010-1: 1990/A2: 1995 Distribution level, fixedCategory Category III installation. Equipment in(Overvoltage): EN 61010-1: 1993/A2: 1995 this category is qualification
Category III tested at 5kV peak,1.2/50µs, 500Ω, 0.5J,between all supply circuitsand earth and also betweenindependent circuits.
Environment: IEC 601010-1: 1990/A2: 1995 Compliance is demonstratedPollution degree 2 by reference to generic safetyEN 61010-1: 1993/A2: 1995 standards.Pollution degree 2
Product safety: 73/23/EEC Compliance with theEuropean Commission LowVoltage Directive.
EN 61010-1: 1993/A2: 1995 Compliance is demonstratedby reference to generic safetystandards.
SERVICE MANUAL R8618AM220 Contents
Page 1 of 2
CONTENTS
SAFETY SECTION
1. INTRODUCTION 12. SYSTEM MODES 22.1 Connection mode 22.1.1 3-phase, 4-wire unbalanced (4u) 22.1.2 3-phase, 3-wire unbalance (3u) 22.1.3 Valid measurements 22.2 Power mode 32.3 Operating energy quaderants 33. INSTRUMENTATION 43.1 Measurements 43.1.1 Voltage 53.1.2 Current 53.1.3 Angles between Phases 53.1.4 Frequency 53.2 Power, power factor and energy 53.2.1 Power 53.2.2 Power factor 53.2.3 Energy 63.3 Demand values 63.3.1 Real time clock 63.3.2 Maximum demands 63.3.3 Average demands 63.3.3.1Fixed window 63.3.3.2Sliding window 63.3.3.3Thermal demand 73.4 Digital outputs 74. COMMUNICATIONS 74.1 RS232 communications 74.2 RS485 communications 75. USER INTERFACE MENU STRUCTURE 85.1 Measurements menu 85.1.1 Energymeters menu 105.2 SETTINGS 105.2.1 Password menu 115.2.2 Language menu 115.2.3 Display menu 115.2.4 Real time clock menu 125.2.5 Pulsed outputs menu 125.2.6 Reset MD menu 135.2.6.1Synchronisation 135.2.6.2Reset MD since last reset 135.2.6.3Reset MD for present period 135.2.7 Maximum demand calculations menu 145.2.8 Communication menu 145.2.9 Connection menu 155.2.9.1CT ratio 15
SERVICE MANUAL R8618AM220 Contents
Page 2 of 2
5.2.9.2Connection input 165.2.9.3VT ratio 166. TECHNICAL DATA 176.1 Ratings 176.1.1 Voltage input 176.1.2 Current input 176.1.3 Frequency 176.1.4 AC auxiliary supply 176.1.5 DC auxiliary supply 176.2 Accuracy 186.3 Relay outputs 186.4 Real time clock 186.5 Back up battery 186.6 Communication ports 186.6.1 RS232 port 186.6.2 RS485 196.7 High voltage withstand 196.8 Electrical environment 206.9 Environmental withstand 216.9.1 Atmospheric environment 216.9.2 Construction 216.9 External wiring diagrams 216.10 Dimensions 246.11 Power supply, communications and pulsed output connections 25
Figure 1. Power quadrants 4Figure 2. Greeting 8Figure 3. Energy meters 8Figure 4. Measurements menu 9Figure 5. Energy meters menu 10Figure 6. Setting menu 10Figure 7. Password menu 11Figure 8. Language menu 11Figure 9. Display menu 12Figure 10. Clock menu 12Figure 11. Pulsed ouputs menu 13Figure 12. Reset MD menu 14Figure 13. Demand calculations menu 14Figure 14. Communication menu 15Figure 15. Connection menu 15Figure 16. External wiring diagram: Single phase (1B) 21Figure 17. External wiring diagram: 3-phase, 3-wire balanced load (3b) 22Figure 18. External wiring diagram: 3-phase, 4-wire balanced load (4b) 22Figure 19. External wiring diagram: 3-phase, 3-wire balanced load (3u) 23Figure 20. External wiring diagram: 3-phase, 4-wire unbalanced load (4u) 23Figure 21. Typical connections for pulse output 24Figure 22. M220 Dimensions 24Figure 23. Power supply, communications and pulsed putput connections. 25
SERVICE MANUAL R8618AM220 Page 1 of 25
Section 1. INTRODUCTION
The M220 Measurement Centre integrates a number of measurement,monitoring and metering functions in the same unit for comprehensive powersystem management. The use of numerical technology achieves high accuracyover a wide dynamic measuring range for instantaneous and integrated powersystem parameters. The M220 also provides a host of other measurement,monitoring and metering facilities as detailed below:
• Instrumentation.
• Measured parameters as shown in Table 1.
• High accuracy, typically 0.5% for current and voltage.
• True RMS measurement.
• Display of primary quantities.
• Metering Facilities.
• Active and reactive energy metering.
• Demand metering.
• User friendly design.
• Large clear liquid crystal display.
• Programming from front panel and communications port.
• RS485 or RS232 Modbus protocols are available.
The device is therefore ideally suited to applications where continuousmonitoring of a single or three-phase system is required.
Instantaneous Measurements Parameters
Phase voltages Ua, Ub, Uc
Average phase voltage U
Line voltages Uab, Ubc, Uca
Average line voltage U∆
Current Ia, Ib, Ic, It
Neutral current In
Active power Pa, Pb, Pc, Pt
Reactive power Qa, Qb, Qc, Qt
Apparent power Sa, Sb, Sc, St
Power factor cosϕa, cosϕb, cosϕc, cosϕt
Frequency Frequency
Integrated/ Maximum Demands
Maximum demand It, Pt, Qt, St
Energy Wht, varht
Table 1: Measured parameters
SERVICE MANUAL R8618AM220 Page 2 of 25
Section 2. SYSTEM MODES
2.1 Connection mode
The M220 is supplied configured in one of two connection modes:
• 3-phase 4-wire unbalanced,
• 3-phase 3-wire unbalanced
2.1.1 3-phase, 4-wire unbalanced (4u)This variation may be reconfigured (via the front panel or remotecommunications) as follows:
• 1b - single phase connection
• 3b - three-phase, three-wire connection with balanced load
• 4b - three-phase, four-wire connection with balanced load
• 4u - three-phase, four-wire connection with unbalanced load
2.1.2 3-phase, 3-wire unbalanced (3u)This variation must not have its connection mode reconfigured.
2.1.3 Valid measurementsTable 2 lists the valid measurements for each connection type.
Parameter Connection type
1b 3b 4b 4u 3u
Ua • • •
Ub • •
Uc • •
U • • •
Uab • • • •
Ubc • • • •
Uca • • • •
U∆ • • • •
Ia • • • • •
Ib • • • •
Ic • • • •
It • • • • •
In •
cosϕa • • •
SERVICE MANUAL R8618AM220 Page 3 of 25
Parameter Connection type
1b 3b 4b 4u 3u
cosϕb • •
cosϕc • •
cosϕt • • • • •
Pa • • •
Pb • •
Pc • •
Pt • • • • •
Qa • • •
Qb • •
Qc • •
Qt • • • • •
Sa • • •
Sb • •
Sc • •
St • • • • •
Table 2: Valid measurements for each connection type.
2.2 Power mode
The power mode is used for the signing of power measurements. The usercannot set the M220 power mode. It is defined as follows:
• When displaying active power, a positive sign indicates export power(a consumer) whilst a negative sign indicates import power (a generator).
• When displaying reactive power, a coil symbol indicates an inductive load(a consumer) whilst a capacitor symbol indicates a capacitive load(a generator).
2.3 Operating energy quaderants
The operating energy quadrants are used to determine which types of energyare added to the energy counters. The user may modify the operating energyquadrants via the remote communications interface. The default operatingenergy quadrants are as follows:
• Counter 1 - when displaying active energy, only export energy is measured(a consumer)
• Counter 2 - when measuring reactive energy, only import reactive energy(a consumer) is measured.
SERVICE MANUAL R8618AM220 Page 4 of 25
The four power quadrants are defined in Figure 1. The user may customise theenergy meters to accumulate the desired values of energy to applicationspecific requirements. Using the Modbus data register the user must enter thefollowing information for each counter:
• Energy type - active or reactive.
• Operating energy quadrants - select the required operating energy quadrants.
• Absolute Value - if this is chosen only the absolute value of energy recorded.
• Inverted value - if this is selected the polarity of the power used to accumulatethe desired energy is reversed.
Figure 1. Power quadrants
Section 3. INSTRUMENTATION
3.1 Measurements
With the increase in harmonics present in today's power systems, due to theincreased use of electronic loads such as computers, variable frequency drives,etc. it is important, when accurate monitoring of electrical parameters isrequired, to use a measuring technique that allows for their presence.Conventional measurement methods, that use a mean sensing technique,respond to the mean or average of the input waveform. This is only accuratewhen the input waveform approaches a pure sinusoid.
The M220 uses a true RMS (root-mean-square) measurement technique thatprovides accurate measurement with harmonics present up to the 15thharmonic. The M220 extracts 64 samples per cycle and the true RMSmeasurement is obtained using these sampled values.
S
SS
S
P P
PP
Q
Q
Q
Q
Quadrant 2 Quadrant 1
Quadrant 3 Quadrant 4
Import QImport P
Import QExport P
Export QExport P
Export QImport P
Lagging vars to consumer
Lagging vars to generator
Power to consumerPower to generator
Q (Ind)
Q (Cap)
P (--) P (+)
SERVICE MANUAL R8618AM220 Page 5 of 25
3.1.1 VoltageAll versions of the M220 except for the 3-phase 3-wire unbalanced version,measure the true RMS value of the phase voltages (Ua, Ub, Uc) connected to theunit. The three line voltages (Uab, Ubc, Uca), average phase voltage (U) andaverage line voltage (U∆) are calculated from these measured parameters. For3-phase 3-wire balanced systems, the M220 creates a virtual neutral internally.
The 3-phase 3-wire unbalanced version of the M220 measures the true RMSvalue of the phase to phase voltage.
The available phase, line and average voltages can be viewed on the M220display or via the remote communications link.
3.1.2 CurrentThe M220 measures the true RMS value of the phase currents (Ia, Ib, Ic)connected to the unit. The neutral current (In) and the sum of all phase currents(It) are calculated from the three phase currents.
The available phase currents and neutral current can be viewed on the M220display or via the remote communications link whilst the sum of all phasecurrents is only visible via the remote communications link.
3.1.3 Angles between PhasesAngles between phases indicate the angles between the vectors of phasevoltages. A positive mark indicates correct phase sequence, while a negativemark indicates an opposite phase sequence of the measured system.
The angles between phase parameters are only visible via the remotecommunications link.
3.1.4 FrequencyThe system frequency is calculated from the time period of the measuredvoltage and can be viewed from both the M220 display and the remotecommunications link.
3.2 Power, power factor and energy
3.2.1 PowerThe M220 provides accurate measurement of active (Pa, Pb, Pc, Pt), reactive(Qa, Qb, Qc, Qt) and apparent power (Sa, Sb, Sc, St). For a four-wire systemthe powers are calculated both for each phase separately and as a total. For athree-wire system only total power values are measured.
When displaying active power, a positive sign indicates export power(a consumer) whilst a negative sign indicates import power (a generator).
When displaying reactive power, a coil symbol indicates an inductive load(a consumer) whilst a capacitor symbol indicates a capacitive load(a generator).
All the available power parameters can be viewed using either the M220display or via the remote communications link.
3.2.2 Power factorThe power factor is calculated as a quotient of active and apparent power foreach phase separately (cosϕa, cosϕb, cosϕc) and as a total (cosϕt). A positivesign and a coil symbol denotes an inductive load (a consumer) whilst anegative sign and a capacitor symbol defines a capacitive load (a generator).
SERVICE MANUAL R8618AM220 Page 6 of 25
All available power factor parameters can be read from the M220 display orvia the remote communications link.
3.2.3 EnergyWhen measuring active energy, (Wht) only export energy is measured(a consumer).
When measuring reactive energy, (varht) only import reactive energy(a consumer) is measured.
The above described energy measuring mode is the factory set default,however, it can be adapted to the customer's needs via the remote serialcommunications link.
Both energy measurements may be viewed using either the M220 display or aremote communications link.
3.3 Demand values
The M220 provides maximum demand values from a variety of averagedemand values (fixed window, sliding window and thermal) for the followingelectrical parameters:
• Total active power (Pt)
• Total reactive power (Qt)
• Total apparent power (St)
• Sum of phase currents (It)
3.3.1 Real time clockThe M220 is provided with a built-in real time clock. It is intended forregistration of time of the occurrence of MDs, and for synchronisation of thetime interval.
3.3.2 Maximum demandsThe M220 stores the maximum demand value since last reset and itscorresponding time stamp (visible only via remote communications link). Theunit also displays the present or 'dynamic' maximum demand.
3.3.3 Average demands3.3.3.1 Fixed window
The fixed interval method calculates an average demand value over a fixedtime period. The period can be set over the range 1 to 255 minutes.
3.3.3.2 Sliding windowThe sliding window technique allows the user to divide the time period into anumber of sub-periods. The average demand value over the demand period isdisplayed, however, after the initial demand period has elapsed, the demandvalue will be updated by the addition of a further sub-period, thus creating a'sliding window' measurement. For example if the total period is 30 minutes(consisting of 5 sub-periods of 6 minutes duration), after the first 5 sub-periodshave elapsed a new window will be added and the oldest window will bedeleted, thus creating a sliding window. The number of sub-periods may be setbetween 2 to 15.
SERVICE MANUAL R8618AM220 Page 7 of 25
3.3.3.3 Thermal DemandThe thermal demand option will provide an exponential thermal characteristic,based on the bimetal element principal. Maximum demand and the time of itsoccurrence are stored in the unit.
3.4 DIGITAL OUTPUTS
The M220 can be supplied with two pulsed outputs that can be used forexternal monitoring of energy consumption. The energy measuring via thepulsed outputs corresponds to the basic energy measurement on the M220display. The pulsed outputs' energy measurement can be adapted to thecustomers needs via the remote communications link.
Section 4. COMMUNICATIONS
The M220 is supplied with either RS232 or RS485 electrically isolatedcommunications and should be specified at ordering. The communicationsprotocol is MODBUS RTU, which is detailed in the appendix of this servicemanual. The communications service enables remote viewing of measurementsand viewing and setting of system parameters.
4.1 RS232 communications
The connection of RS232 communications between the M220 and a PC isdetailed in Table 3. The maximum connection length is 15 metres.
M220 9 pin D connector (PC) 25 pin D connector (PC)
Rx (1) Tx (3) Tx(2)
GND (2) GND (5) GND(7)
Tx (3) Rx (2) Rx(3)
Table 3: RS232 connections
4.2 RS485 communications
RS485 communications enables simultaneous connection to a maximum of 32communicating devices. For RS485 communications, the PC will require eitheran internal RS485 communications port or an external RS232/RS485 interface.In both cases the device must provide automatic RS485 data flow control. Themaximum connection length is 1000 metres. Conductors A and B should beterminated with a 120Ω terminating resistor. Table 4 details the RS485connections.
M220 RS485
A DATA +
B DATA -
C GND
Table 4: RS485 connections
SERVICE MANUAL R8618AM220 Page 8 of 25
Section 5. USER INTERFACE MENU STRUCTURE
The settings, measurements and functions of the M220 can be accessed fromeither the front panel or the remote communications link.
The menu structure of the M220 is navigated using the four keys on the frontpanel. Throughout this section the arrows in the diagrams relate to pressing thecorresponding key on the front panel.
The M220 has four levels of access:
• L0 - No password is required. This allows the user to browse through themeasurements and the set display.
• L1 - Level 1 password required. In addition to the access rights of L0, thefollowing are available; set the real time clock, reset and synchronisemaximum demand and reset the energy meters.
• L2 - Level 2 password required. In addition to the rights of L0 and L1 thefollowing are available; setting of pulsed outputs, demand calculations,communications settings and connection modes.
• L3 - Level 3 password required. This level is accessible only via the remotecommunications interface and is used for factory calibration and service.
The M220 is supplied with both L1 and L2 passwords set to AAAA. AAAApasswords offer no level of protection; all measurements and settings can bemodified. The L1 and L2 passwords must be changed from AAAA toactivate password level protection.
When the M220 is first connected to the power system the user is greeted withthe message shown in Figure 2.
Measurement Centre M220
Figure 2: Greeting
After a period of five seconds the M220 display automatically defaults todisplay the energy meters as depicted in Figure 3.
0021358.5kWh00005234.9kvarh
Figure 3: Energy meters
5.1 MEASUREMENTS MENU
Figure 4 illustrates the measurement's menu structure. The user can browsethrough the available measurements without entering any password. The userwill automatically be prompted to enter a password where required to modifysettings or reset measurements.
SERVICE MANUAL R8618AM220 Page 9 of 25
00
21
35
8.5
kWh
SETT
ING
00
00
52
34
.9kv
arh
Freq
uenc
y =
50
.01
2 H
z
21
. M
AY
13
: 3
3:
19
Ia=
37
99
.1m
A Ib
=4
19
8.2
mA
In=
0.0
00
A
Ic
=3
73
4.5
mA
MD
SIN
CE
RESE
T
It =
01
5.5
A
PRES
ENT
MD
It =
01
2.4
A
Uab
=1
00
.1 V
U
bc=
10
0.2
V
UD
=1
00
.1 V
U
ca=
10
0.0
V
Ua=
05
7.4
3 V
U
b=0
57
.23
V
U=
05
7.2
7 V
Uc=
05
7.1
5 V
cosj
a =
0.9
78
cosj
t = 0
.97
5
cosj
b =
0.9
76
cosj
c =
0.9
60
Sa =
02
18
.2
VASt
= 0
66
9.0
VA
Sb =
02
40
.3
VASc
= 0
21
3.4
VA
MD
SIN
CE
RESE
TSt
= 0
86
3.4
VA
PRES
ENT
MD
St =
07
15
.5 V
A
Qa
= +
00
45
.1
Var
Qt =
+0
04
5.1
Va
r
Qb
= +
00
52
.6
Var
Qc
= +
00
48
.3
Var
MD
SIN
CE
RESE
TQ
t = +
01
87
.3
PRES
ENT
MD
Qt =
+0
15
5.5
Pa =
+0
21
3.5
W
Pt =
+0
65
2.9
W
Pb =
+0
23
4.5
W
Pc =
+0
20
4.9
W
MD
SIN
CE
RESE
TPt
= +
06
52
.4 W
PRES
ENT
MD
Pt =
+0
68
6.5
W
Figure 4: Measurements menu
SERVICE MANUAL R8618AM220 Page 10 of 25
5.1.1 Energy meters menuA level 1 or 2 password must be entered to gain access to reset the energymeters shown in Figure 5. The user can reset either energy counter 1, energycounters 1 & 2 or energy counter 2. To reset the chosen counter the → key mustbe held for five seconds.
0021358.5kWh00005234.9kvarh
1 * RESET *
1 * RESET *
2 * RESET *
1 * RESET * 5
1 * RESET * 52 * RESET * 5
2 * RESET * 5
2 * RESET *
Figure 5: Energy meters menu
5.2 SETTINGS
Figure 6 illustrates the main setting menu.
SETTING PASSWORD
DISPLAY
CLOCK
PULSE OUTPUT
RESET MD
DEMAND CALCULATIONS
COMMUNICATION
CONNECTION
LANGUAGE
Figure 6: Setting menu
SERVICE MANUAL R8618AM220 Page 11 of 25
5.2.1 Password menuFigure 7 illustrates the password menu. The user may; enter the desired level ofpassword, cancel the current password, set level 1 password or set level 2password. A password consists of four letters from A to Z. The ← and → keysare used to select each character in turn, whilst the ↑ and ↓ keys scroll throughthe available characters. To enter the password press the → key after the lastcharacter has been modified.
The M220 monitors the level of entered password. If no key is pressed for 15minutes, the password is automatically cancelled.
Each level's password is the same both via the front panel and the remotecommunications interface. The factory-set default for level 1 and level 2 isAAAA. On receipt of the unit both levels of password should be modified toinvoke password protection.
PASSWORD ENTER PASSWORD:
CANCEL PASSWORD:
SET L2 PASSWORD:
SET L1 PASSWORD:
ENTER PASSWORD:A * * *
ENTER PASSWORD:A * * *
ENTER PASSWORD:A * * *
ENTER PASSWORD:A * * *
****
****
****
****
Figure 7: Password menu5.2.2 Language menu
Figure 8 illustrates the language menu. A level 2 password must be entered tochange the language. The ↑ and ↓ keys are used to select the requiredlanguage.
Figure 8: Language menu
5.2.3 Display menuFigure 9 illustrates the display menu. The display settings can be modified fromlevel 0. The desired character is chosen with the ← and → keys and its valueselected with the ↑ and ↓ keys.
The display's contrast may be set from 0 to 63, the backlight from 0 to 255and the off time from 0 to 54 minutes. Display illumination is switched on withthe press of any key and off after the set time from the last key pressed.
LANGUAGE LANGUAGE: ENGLISH LANGUAGE: ENGLISH
SET
SERVICE MANUAL R8618AM220 Page 12 of 25
Figure 9: Display menu
5.2.4 Real time clock menuFigure 10 illustrates the real time clock menu. The real time clock can be setwith level 1 or level 2 access. For time and date settings the character is chosenwith the ← and → keys and set with the ↑ and ↓ keys. When setting the year,just the ↑ and ↓ keys are used.
Figure 10: Clock menu
5.2.5 Pulsed outputs menuA level 2 password must be entered to set the pulsed outputs as illustrated inFigure 11. The ↑ and ↓ keys are used to select the required pulse rate.
The number of pulses may be set from 20P/MWh to 1P/Wh for the real energymeter output and from 20P/Mvarh to 1P/varh for the reactive energy meteroutput.
The pulsed outputs are derived from the displayed energy meters and theirresolution will be affected by changes in the VT and CT ratios.
DISPLAY CONTRAST: 20
TIME OFF: 05min
BACK LIGHT: 255
CONTRAST: 20SET
TIME OFF: 05minSET
BACK LIGHT: 255
SET
CLOCK TIME: 18:05
YEAR: 1999
DATE: 11.MAY
TIME: 18:05SET
SET
SETYEAR: 1999
DATE: 11.MAY
SERVICE MANUAL R8618AM220 Page 13 of 25
Figure 11: Pulsed outputs menu
5.2.6 Reset MD Menu
A level 1 or 2 password is required to reset or synchronise the MD quantities asillustrated in Figure 12. To synchronise MD, reset MD since last reset or resetMD for present period, the → key must be pressed for a period of five seconds.
5.2.6.1 SynchronisationThe synchronisation command operates differently depending on the selectedmode of MD calculation:
• Thermal mode - synchronisation has no effect.
• Fixed window - at the moment of synchronisation, calculation of the dynamicMD is halted and considered for storage as the MD since reset. Calculationof MD is resumed at the beginning of the next full minute.
• Sliding window - at the moment of synchronisation, calculation of the dynamicMD for the present sub-period is halted and considered for storage as theMD for the entire window. Calculation of MD is continued at the beginning ofthe next full minute of the following sub-window.
5.2.6.2 Reset MD since last resetWhen resetting MD since last reset the operation is performed differentlydepending on the selected mode of MD calculation:
• Thermal mode - present MD and MD since last reset are reset.
• Fixed window - MD of the window is reset and MD since last reset is reset. Atthe same time, synchronisation of the time interval is performed.
• Sliding window - MD of present sub-window, all other sub-windows and MDsince last reset are reset. At the same time, synchronisation of the timeinterval is performed at the beginning of the first sub-window.
5.2.6.3 Reset MD for Present PeriodWhen resetting MD for the present period the operation is performed differentlydepending on the selected mode of MD calculation:
• Thermal mode - MD for present period is reset.
• Fixed window - MD for present period is reset. At the same time,synchronisation of the time interval is performed.
• Sliding window - MD for present sub-window and all other sub-windows in thetime interval are reset. At the same time, synchronisation of the time intervalis performed at the beginning of the first time interval.
PULSE OUTPUTSET
SET
OUT1: 100P/kWh OUT1: 100P/kWh
OUT2: 100P/kvarh OUT2: 100P/kvarh
SERVICE MANUAL R8618AM220 Page 14 of 25
Figure 12: Reset MD Menu
5.2.7 Maximum demand calculations menuA level 2 password must be entered to set maximum demand calculations asillustrated in Figure 12. The following parameters may be set:
• Thermal mode.
• Fixed window - the time interval can be set between 1 to 255 minutes.
• Sliding window - the time interval can be set between 1 to 255 minutes andthe number of sub-windows between 2 to 15.
If the time interval is set to 0, the calculation of MD is switched off.
Figure 13: Demand calculations menu
5.2.8 Communication MenuA level 2 password is required to set the communications parameters illustratedin Figure 13.
• Communications rate - the communications transmission rate is selected withthe ↑ and ↓ keys. The selectable rate values are 1200, 2400, 4800, 9600and 19200.
• Address - the communications address can be set in the range of 1 to 247.Address 0 is reserved for broadcast messaging.
RESET MD SYNCHRONISE SYNCHRONISE 5
MD SINCE RESET MD SINCE RESET 5
PRESENT PERIOD PRESENT PERIOD 5
DEMAND CALCULATIONSSET
MD MODE: THERMAL DEMAND MD MODE: THERMAL DEMAND
Time c. = 015min. Time c. = 015min.SET
SERVICE MANUAL R8618AM220 Page 15 of 25
• Communications data form - the length, parity and stop bit can be set for thedata form. The data form can be set as follows:
Length: 7,8 (value 8 is always used for MODBUS RTU)
Parity: n (none), o (odd) and e (even)
Stop bit: 1 or 2
Figure 14: Communication menu
5.2.9 Connection menuA level 2 password is required to set the connection menu as illustrated inFigure 15.
Figure 15: Connection menu
5.2.9.1 CT RatioWhen setting the current ratio only the primary value may be altered; thesecondary value (1A or 5A) must be specified with the order. Selectable ratiosare defined in Table 5. When 'set' is displayed, the character is selected bypressing the ← and → keys and the value modified by using the ↑ and ↓ keys.When the desired ratio has been selected the → key should be pressed until'set' disappears.
COMMUNICATION RS BitRATE: 19200
RS ADDRESS = 033
RS FRAME: 8,N,2
RS BitRATE: 19200SET
SET
SET
RS ADDRESS = 033
RS FRAME: 8,N,2
CONNECTION CT = 00030/5
INPUT: 1b
VT = 0230.0 /230
SET
SET
SET
CT = 00030/5
INPUT: 1b
VT = 0230.0 /230
SERVICE MANUAL R8618AM220 Page 16 of 25
Ratio Ratio Step 1A CT 5A CT
1...63 1 1...63 5...315
65...315 5 65...315 325...1575
320...630 10 320...630 1600...3150
650...3150 50 650...3150 3250...15750
4000 - 4000 20000
Table 5: CT ratios
5.2.9.2 Connection input
The type of connection to the power system must be set to match the physicalconnection implemented. The connection type is selected with the ↑ and ↓ keys.Connection types are as follows:
• 1b - single phase connection
• 3b - three-phase, three-wire connection with balanced load
• 4b - three-phase, four-wire connection with balanced load
• 4u - three-phase, four-wire connection with unbalanced load
The 3u (three-phase, three-wire connection with unbalanced load) mode shouldnot be modified.
5.2.9.3 VT RatioBoth the primary and secondary values of the VT ratio may be set. The valuesare set in the same manner as described for the CT ratio. When setting thevoltage transformer primary value, the decimal point is also set. The decimalpoint is set with the ↑ and ↓ key when the decimal point is selected(underlined). By setting the decimal point, the resolution of the energy displaycan be changed.
Voltage Range Voltage Step
10 ... 137 V 1 V
140 ... 775 V 5 VTable 6. Secondary Voltage Settings
Voltage Range Voltage Step
0.1 ... 1599.9 V 0.1 V
1 ... 15.999 kV 1 V
10 ... 159.99 kV 10 V
100 ... 1599.9 kV 100 VTable 7. Primary Voltage Settings
SERVICE MANUAL R8618AM220 Page 17 of 25
Section 6. Technical data
6.1 Ratings
6.1.1 Voltage inputNominal voltage (Un) 63.5V, 120V and 230V phase to neutral
Measuring range 10 to 150% Un (Auxiliary supply)
Burden <0.1VA
Thermal withstand 1.5Un continuously2Un for 10s
6.1.2 Current inputNominal current (In) 1A or 5A
Measuring range 0 to 160% In
Burden <0.1VA
Thermal withstand 3In continuously25In for 3s50In for 1s
6.1.3 FrequencyNominal frequency (fn) 50Hz or 60Hz
Measuring range 45Hz to 65Hz
6.1.4 AC auxiliary supplyNominal voltage (Ux) 63.5V, 120V and 230V
Operative range 80 to 120% Ux
Thermal withstand 1.2Ux continuously
1.5Ux for 10s
Nominal frequency (fx) 50Hz or 60Hz
Operative frequency range 45Hz to 65Hz
Burden <5VA
6.1.5 DC auxiliary supplyNominal voltage (Ux) 24 to 400V
Operative range 20V to 440V
Burden <5VA
SERVICE MANUAL R8618AM220 Page 18 of 25
6.2 Accuracy
Measurement
Voltage ±0.5% Un*
Phase current ±0.5% In*
Neutral current ±1% of 3 x In*
Power ±0.5% *
Power factor ±0.005
MD values ±1% *
Frequency ±0.05% of reading
Active energy IEC 61036 Class 1.0
Reactive energy IEC 61268 Class 2.0
Real time clock ±30ppm
* For these values the accuracy is % of nominal for 0 ... 100% of nominal and % of readingabove nominal.
6.3 Relay outputs
Maximum AC switching power 50VA
Maximum switching voltage 350V DC or peak AC
Maximum switching current 1A
Isolation Coil to contacts 4000 V rms5600 V DC
Across contacts 1400 V rms2000 V DC
Maximum pulses per hour 4000
Pulse duration 100ms
6.4 Real time clock
Accuracy 1 minute/month (30 ppm)
6.5 Back up battery
Battery life 6 years
6.6 Communication ports
6.6.1 RS232 PortConnection type Point to point
Signal levels RS232
Cable type Screened multi-core
Maximum cable length 15m
Connector Screw terminals
Isolation 2kV rms for 1 minute between all terminals and allother circuits
SERVICE MANUAL R8618AM220 Page 19 of 25
Transmission mode Asynchronous
Message format MODBUS RTU
Data rate 1200 to 19200 bits/s
6.6.2 RS485Connection type Multi-drop (32 connections per link)
Signal levels RS485
Cable type Screened twisted pair
Maximum cable length 1000m
Connector Screw terminals
Isolation 2kV rms for 1 minute between all terminals and allother circuits
Transmission mode Asynchronous
Message format MODBUS RTU
Data rate 1200 to 19200 bits/s
6.7 High voltage withstand
Dielectric withstandIEC 60255-5: 1977 2kV rms for 1 minute between all terminals and earth.
2kV rms for 1 minute between all terminals ofindependent circuits including the output relay circuits.
1kV rms for 1 minute across open contacts of outputrelays.
2kV rms for 1 minute between all pins of thecommunications port wired together and all otherterminals.
High voltage impulseIEC 60255-5:1977 Three positive and three negative impulses of 5kV
peak, 1.2/50µs, between all terminals of the samecircuit (except communication port); betweenindependent circuits (except communication port); andbetween all terminals connected together and earth(except communication port)
Three positive and three negative impulses of 1kVpeak, 1.2/50µs, between the communication portand earth.
Insulation resistanceIEC 60255-5: 1977 >100MΩ
SERVICE MANUAL R8618AM220 Page 20 of 25
6.8 Electrical Environment
High frequency disturbanceIEC 60255-22-1: 1988 Class II and Class III
2.5kV peak applied between all circuits and earth(except communication port)
1kV peak applied between the communication portand earth.
1kV peak applied across the terminals of all circuits(except communication port)
Fast transient disturbanceIEC 61000-4-4: 1995 Level IV
4kV, 2.5kHz applied directly between all terminalsand earth (except communication port).
Electrostatic dischargeIEC 60255-22-2: 1996 Class III
8kV air discharge
6kV contact discharge
AC ripple on DC supplyIEC 60255-11: 1979
The unit will withstand 12% ripple on the DC auxiliarysupply
AC supply voltage dips and short interruptionsEN 61000-4-11: 1994
The unit will withstand voltage dips of 100%, 60%and 30% in the auxiliary power supply for a durationof 10ms, under normal operating conditions, withoutde-energising.
The unit will withstand a 10ms interruption in theauxiliary power supply, under normal operatingconditions, without de-energising.
EMC compliance89/336/EEC Compliance with European Commission Directive
on EMC, is claimed via the technical construction fileroute.
The following generic standards were used to establishconformity.
EN 50081-2:1994 Generic Emission Standard Part 2: IndustrialEnvironment
EN 50082-2:1994 Generic Immunity Standard Part 2: IndustrialEnvironment
Product Safety73/23/EEC Compliance with European Commission Low Voltage
Directive
SERVICE MANUAL R8618AM220 Page 21 of 25
EN 61010-1: 1993/A2: 1995Compliance is demonstrated by reference to genericsafety standards.
600V Installation category II, pollution degree II
300V Installation category III, pollution degree II
6.9 Environmental withstand
6.9.1 Atmospheric environmentTemperature and humidity
JVF (DIN 40 040) Reference range of operation 0°C to 50°C
Nominal range of operation -10°C to 60°C
Storage and transit -40°C to 70°C
Humidity to 95%non-condensing
Enclosure protectionIEC 50529: 1989 IP 52
6.9.2 ConstructionCase Polycarbonate. Compliance with UL 94 V0
Dimensions 144x144x125 mm
Weight 0.8kg
6.9 External wiring diagrams
A
1
3
2
u v
U V
k l
LK
N
Load
Notes: Connect two wire auxiliary supply terminals marked supply if fitted. Out 1/Out 2 are volt-free contact pulse outputs, if fitted.
Out 1 Out 2 SupplyComms
11
Figure 16: External wiring diagram: Single phase (1B)
SERVICE MANUAL R8618AM220 Page 22 of 25
Notes: Connect two wire auxiliary supply to terminals marked 'supply' if fitted.Out 1/Out 2 are volt-free contact pulse outputs, if fitted.
A
N
11
B
C
1
3
2
u v
U V
k l
K L
Load
Out 1 Out 2 Comms Supply
Notes: Connect two wire auxiliary supply to terminals marked 'supply' if fitted.Out 1/Out 2 are volt-free contact pulse outputs, if fitted.
A
C
1
3
2 5 8
B
u v
U V
k l
LK
u v
U V
Load
Out 1 Out 2 SupplyComms
Figure 17: External wiring diagram: 3-phase, 3-wire balanced load (3b)
Figure 18: External wiring diagram: 3-phase, 4-wire balanced load (4b)
SERVICE MANUAL R8618AM220 Page 23 of 25
Figure 19: External wiring diagram: 3-phase, 3-wire balanced load (3u)
Notes: Connect two wire auxiliary supply to terminals marked 'supply' if fitted.Out 1/Out 2 are volt-free contact pulse outputs, if fitted.
A
C
1
B
3
2 8
9
5
7
u v u v
U V U V
k l
K L
k lK L
Load
SupplyOut 1Out 2 Comms
Notes: Connect two wire auxiliary supply to terminals marked 'supply' if fitted.Out 1/Out 2 are volt-free contact pulse outputs, if fitted.
A
N
1
3
4
96
2
7
5
11
8
B
C
K L
k l
k l
k l
K L
K L
11u
x
u
x
u
x
X
U
X
U
X
U
Load
Out 1Out 2 SupplyComms
Figure 20: External wiring diagram: 3-phase, 4-wire unbalanced load (4u)
SERVICE MANUAL R8618AM220 Page 24 of 25
DC
100ms
Out
R>100R
0V
24V
Pulse receptorPower supply
*All dimensions in millimetres.
Figure 21: Typical connections for pulse output
6.10 Dimensions
Figure 22: M220 Dimensions
SERVICE MANUAL R8618AM220 Page 25 of 25
M220
OUT2 OUT1 A B 230V 50Hz 5VASupply:
CAT III ALL INPUTS500V max
RS485â
â
Ser. No.: 482Imp. current: 5AImp. voltage: 230/400VFrequency: 50HzConnection: 4U
CÎ
6.11 Power supply, communications and pulsed output connections
Figure 23: Power supply, communications and pulsed output connections.
M220Measurement Centre
Service Manual
Appendix
SERVICE MANUAL R8618AM220 ContentsAppendix Page 1 of 2
CONTENTS
1. INTRODUCTION 12. TRANSACTIONS 12.1 Request 12.2 Response 12.3 Request - response cycle example 12.3.1 Request frame 22.3.2 Response frame 23. FRAMING 23.1 RTU framing 24. SUPPORTED FUNCTIONS AND USAGE 34.1 03 read from holding registers 34.1.1 request frame 34.1.2 Response frame 34.2 04 read from input registers 44.2.1 Request frame 44.2.2 response frame 44.3 06 write to a single holding register 44.3.1 Request frame 44.3.2 Response frame 54.4 Response frame 54.4.1 Request frame 54.4.2 Response frame 54.5 17 (11 HEX) report slave ID 54.5.1 Request frame 54.5.2 Response frame 64.6 77 (4D HEX) read measurement string 64.6.1 Request frame 64.6.2 Response frame 64.6.3 Value codes 64.7 82 (52HEX) re-read output buffer 84.7.1 Request frame 84.7.2 Response frame 85. ERROR RESPONSES 85.1 Exception codes 96. MODBUS REGISTER MAP 97. MODBUS DATA TYPES 208. CRCCHECKING AND GENERATING 218.1 Generating a CRC 228.2 Placing the CRC into the message 228.3 CRC generation function 238.4 High order byte table 238.5 Low order byte table 249. RELATED DOCUMENTS 25
SERVICE MANUAL R8618AM220 ContentsAppendix Page 2 of 2
SERVICE MANUAL R8618AM220Appendix Page 1 of 25
Section 1. INTRODUCTION
The M220 implements a subset of the AEG Modicon Modbus RTU serialcommunications standard [reference 1, Modicon Modbus Protocol ReferenceGuide PI - MBUS - 300 Rev. E]. Modbus is a single master multiple slave protocolsuitable for a multi-drop configuration as provided by the RS485 connection. Up to32 devices can be connected in this way. Single - drop RS232 connection is alsopossible.
Section 2. TRANSACTIONS
Communication operates on a master-slave basis where only one device (themaster) can initiate transactions called 'Requests'. The other devices (slaves)respond by supplying the requested data to the master. This is called the 'Request -Response Cycle'.
Master to slave request:
Device address Function Code nx8 bit data bytes Error check
Slave to master response:
Device address Function Code nx8 bit data bytes Error check
2.1 REQUEST
This Master to Slave transaction takes the form:
Device address:
Master addressing a slave (Address 0 is used for the broadcast address,which all slave devices recognise.)
Function code:
E.g. 03 asks the slave to read its registers and respond with their contents.
Data bytes:
Tells the slave which register to start at and how many registers to read.
2.2 RESPONSE
This Slave to Master transaction takes the form:
Device address:
To let the master know which slave is responding.
Function code:
This is an echo of the request function code.
Data bytes:
Contains the data collected from the slave.
2.3 REQUEST - RESPONSE CYCLE EXAMPLE
Ia 160.00 A = 16000* 10 -2 A
Data type 32 bit float FE 00 3E 80 (16)
SERVICE MANUAL R8618AM220Appendix Page 2 of 25
Data held in Modbus addresses 30036(10) & 30037(10)
30036(10) - 30000(10) = 36(10) ≡ 00 24(16)
2.3.1 Request FrameStarting Register Register Count CRC
Slave Address Function code HI LO HI LO LO HI
21 03 00 24 00 02
2.3.2 Response FrameRegister Data CRC
Slave Address Function code Byte Count HI LO HI LO LO HI
21 03 04 FE 00 3E 80
Section 3. FRAMING
There are two types of message framing for the serial communications, ASCII orRTU. The M220 supports RTU framing.
3.1 RTU FRAMING
In RTU mode, messages start and end with a silent interval of at least 3.5 charactertimes (t1-t2-t3-t4 as shown below).
The advantage of this mode of framing is that it enables a greater characterdensity and a better data throughput. However, each message must be transmittedin a continuous stream. If a silent interval of more than 1.5 character times occursbefore completion of the frame, the device flushes the incomplete message andassumes that the next byte will be the address field of a new message.
Start Address Function Data CRC Check End
t1-t2-t3-t4 8 bits 8 bits n x 8 bits 16 bits t1-t2-t3-t4
The Cyclic Redundancy Check (CRC) field is two bytes, containing a 16 bit binaryvalue. The CRC value is calculated by the transmitting device, which appends theCRC to the message. The receiving device recalculates a CRC during receipt of themessage, and compares the calculated value to the actual value it received in theCRC field. If the two values are not equal an error results. The CRC-16 calculationis an industry standard method used for error detection.
One frame is transmitted as 1 start bit, 8 data bits and 2 stop bit. If parity isselected then the frame is transmitted as 1 start bit, 8 data bits, and 1 stop bit.
Where n > 1 data is transmitted most significant byte first.
The CRC check is transmitted least significant byte first.
SERVICE MANUAL R8618AM220Appendix Page 3 of 25
Section 4. SUPPORTED FUNCTIONS AND USAGE
Code Code Function References
DEC HEX
3 03 to read from holding registers (4XXXX memory references)
4 04 to read from input registers (3XXXX memory references)
6 06 to write to a single holding register (4XXXX memory references)
16 10 to write to one or more holding registers (4XXXX memory references)
17 11 report slave ID 6 characters
77 4D read measurement string 1 byte value code (request)
82 52 re-read output buffer Use after broadcast request
4.1 03 READ FROM HOLDING REGISTERS
Reads the binary content of holding registers (4X references) in the slave.Broadcast is also supported.
4.1.1 Request Frame
The query message specifies the starting register and quantity of registers (1 to 16)to be read. Registers are addressed starting at zero.
Here is an example of a request to read registers 40009 ... 40010 from slavedevice 33:
Starting Register Register Count CRC
Slave Address Function Code HI LO HI LO LO HI
21 03 00 09 00 02
4.1.2 Response Frame
The register data in the response message is packed as two bytes per register, withthe binary contents right justified within each byte. For each register, the first bytecontains the high order bits and the second contains the low order bits.
Data is scanned in the slave at the rate of 16 registers per scan. The response isreturned when the data is completely assembled.
Here is an example of a response to the query:
Register Data CRC
Slave Address Function Code Byte Count HI LO HI LO LO HI
21 03 04 75 03 42 15
The contents of register 40009 are shown as the two byte values of 75 03 hex.The contents of registers 40009 ... 40010 are 75 03 and 42 15 hex.
SERVICE MANUAL R8618AM220Appendix Page 4 of 25
4.2 04 READ FROM INPUT REGISTERS
Reads the binary content of input registers ( 3X references) in the slave. Broadcastis also supported
4.2.1 Request Frame
The query message specifies the starting register and quantity ( 1 to 16) ofregisters to be read. Registers are addressed starting at zero.
Here is an example of a request to read registers 30036 ... 30037 from slavedevice 33:
Starting Register Register Count CRC
Slave Address Function Code HI LO HI LO LO HI
21 04 00 24 00 02
4.2.2 Response Frame
The register data in the response message is packed as two bytes per register, withthe binary contents right justified within each byte. For each register, the first bytecontains the high order bits and the second contains the low order bits.
Data is scanned in the slave at the rate of 16 registers per scan. The response isreturned when the data is completely assembled.
Here is an example of a response to the query:
Register Data CRC
Slave Address Function Code Byte Count HI LO HI LO LO HI
21 04 04 FE 00 3E 80
The contents of register 30036 are shown as the two-byte values of FE 00 hex. Thecontents of registers 30036 ... 30037 are FE 00 and 3E 80 hex.
4.3 06 WRITE TO A SINGLE HOLDING REGISTER
Pre-sets a value into a single holding register (4X reference ). When broadcast, thefunction pre-sets the same register reference in all attached slaves.
4.3.1 Request Frame
The query message specifies the register reference to be pre-set. Registers areaddressed starting at zero; register 1 is addressed as 0.
Here is an example of a request to pre-set register 40010 to 42 15 hex in slavedevice 33:
Register Address Register Data CRC
Slave Address Function Code HI LO HI LO LO HI
21 06 00 0A 42 15
SERVICE MANUAL R8618AM220Appendix Page 5 of 25
4.3.2 Response Frame
The normal response is an echo of the query, returned after the register contentshave been pre-set. Here is an example of a response to the query:
Register Address Register Data CRC
Slave Address Function Code HI LO HI LO LO HI
21 06 00 0A 42 15
4.4 16 (10 HEX) WRITE TO ONE OR MORE REGISTERS
Pre-sets values into a sequence of holding registers (4x references). Whenbroadcast the function pre-sets the same register references in all attached slaves.
4.4.1 Request Frame
The query message specifies the register references to be pre-set. Registers areaddressed starting at zero; register 1 is addressed as 0. Here is an example of arequest to pre-set two registers starting at 40000 to 41 42 and 43 44 hex (EnterPassword ABCD), in slave device 33:
Slave Function Starting Address Register Count Byte Register Data CRC
Address Code HI LO HI LO Count HI LO HI LO LO HI
21 16 00 00 00 02 04 41 42 43 44
4.4.2 Response Frame
The normal response returns the slave address, function code, starting address,and quantity of registers pre-set. Here is an example of a response to the queryshown above.
Slave Function Starting Address Register Count CRC
Address Code HI LO HI LO LO HI
21 16 00 00 00 02
If the password is not correct (L1 or L2 or BP), the response to the query is:Slave Function Starting Address Register Count CRC
Address Code HI LO HI LO LO HI
21 16 00 00 00 02
4.5 17 (11HEX) REPORT SLAVE ID
Returns a description of the type of controller present at the slave address.
4.5.1 Request Frame
Here is an example of a request to report the ID of slave device 33:
CRC
Slave Address Function Code LO HI
21 11
SERVICE MANUAL R8618AM220Appendix Page 6 of 25
4.5.2 Response Frame
The format of a normal response is shown below:
Register Data CRC
Slave Address Function Code Byte Count HI LO HI LO HI LO LO HI
21 11 06 20 4D 30 32 32 30
4.6 77 (4D HEX) READ MEASUREMENT STRING
Reads the measurement value as an ASCII string. Broadcast is also supported.
4.6.1 Request Frame
The query message specifies the value code of the measurement to be read.
Here is an example of a response to read Total Real Power from slave device 33:
Slave Function CRC
Address Code Value Code LO HI
21 4D 04
4.6.2 Response Frame
The ASCII string in the response message is packed as data bytes. The quantity ofdata bytes depends on the value code.
Here is an example of the query:
Slave Function String Data CRC
Address Code Byte Count 1. 2. 3. 4. 5. 6. 7. 8. LO HI
21 4D 08 2B 32 31 2E 31 33 35 6B 49 35
4.6.3 Value Codes
The value codes are described in the following table:
Value Value Byte
Code DEC Code Measurement Value Count Example String Data
Hex
00 00 Energy counter 1 15 "0000004.46kWh"
01 01 Energy counter 2 15 "0000001.24kvarh"
02 02 Energy counter c 15 "0000005.71kWh"
03 03 Energy counter d 15 "0000002.86kvarh"
04 04 Total Real Power 8 "+21.135k"
05 05 A Phase Real Power 8 "+7046.3"
06 06 B Phase Real Power 8 "+7037.3"
07 07 C Phase Real Power 8 "+7051.1"
08 08 Total Reactive Power 12 "1208.7 var L"
SERVICE MANUAL R8618AM220Appendix Page 7 of 25
09 09 A Phase Reactive Power 12 "0400.2 var L"
10 0A B Phase Reactive Power 12 "0406.4 var L"
11 0B C Phase Reactive Power 12 "0400.9 var L"
12 0C Total I 7 "93.671"
13 0D IA 7 "31.227"
14 0E IB 7 "31.222"
15 0F IC 7 "31.222"
16 10 Average V 7 "226.06"
17 11 VA 7 "226.08"
18 12 VB 7 "225.83"
19 13 VC 7 "226.27"
20 14 Total Apparent Power 7 "21.170k"
21 15 A Phase Apparent Power 7 "7057.3"
22 16 B Phase Apparent Power 7 "7049.0"
23 17 C Phase Apparent Power 7 "7062.8"
24 18 Total Power Factor 8 "+0.998 L"
25 19 Power Factor A 8 "+0.998 L"
26 1A Power Factor B 8 "+0.998 L"
27 1B Power Factor C 8 "+0.998 L"
28 1C Frequency 7 "46.008"
29 1D Frequency 7 "46.008"
30 1E Frequency 7 "46.008"
31 1F Frequency 7 "46.008"
32 20 Total Power Angle 7 "+003.26"
33 21 Power Angle A 7 "+003.25"
34 22 Power Angle B 7 "+003.30"
35 23 Power Angle C 7 "+003.25"
36 24 IN 6 "93.67"
37 25 Angle AB 7 "+000.00"
38 26 Angle BC 7 "+000.01"
39 27 Angle CA 7 "-000.01"
40 28 Average Vxy 6 "000.3"
41 29 VAB 6 "000.2"
42 2A VBC 6 "000.24"
43 2B VCA 6 "000.2"
44 2C Dynamic Demand Value 1 13 "Pt=+9.818kW"
SERVICE MANUAL R8618AM220Appendix Page 8 of 25
45 2D Dynamic Demand Value 2 12 "Qt=6.504kvar"
46 2E Dynamic Demand Value 3 12 "St=12.89kVA"
47 2F Dynamic Demand Value 4 12 "It=56.91 A"
48 30 Max Demand Since Reset 1 13 "Pt=+11.26kW"
49 31 Max Demand Since Reset 2 12 "Qt=14.64kvar"
50 32 Max Demand Since Reset 3 12 "St=18.46kVA"
51 33 Max Demand Since Reset 4 12 "It=81.01 A"
52 34 Time Stamp MD 1 12 "03.SEP 14:11"
53 35 Time Stamp MD 2 12 "03.SEP 14:10"
54 36 Time Stamp MD 3 12 "03.SEP 14:10"
55 37 Time Stamp MD 4 12 "03.SEP 14:12"
4.7 82 (52 HEX) RE-READ OUTPUT BUFFER
This function should be used after the broadcast request. The addressed slavetransmits the response frame of the previous request.
4.7.1 Request Frame
Here is an example of a request to re-read the output buffer of slave device 33:
CRC
Slave Address Function Code LO HI
21 52
4.7.2 Response Frame
The response to the query depends on the previous function code.
Section 5. ERROR RESPONSES
When a slave detects an error other than a CRC error, a response will be sent tothe master. The most significant bit of the function code byte will be set to 1 (i.e.the function code sent from the slave will be equal to the function code sent fromthe master plus 128). The following byte will be an exception code indicating thetype of error that occurred.
The slave will ignore transmissions received from the master with CRC errors.
An example of an illegal request and the corresponding exception response isshown below. The request in this example is to read registers 0201H to 0209H. Ifthese addresses are not supported in the slave then the following occurs:
Request Message
Starting Register Register Count
Address Function Code HI LO HI LO CRC
01 01 02 01 00 08 6D B4
SERVICE MANUAL R8618AM220Appendix Page 9 of 25
Exception Response Message
Address Function Code Exception Code CRC
01 81 02 C1 91
5.1 EXCEPTION CODES
Code Name Meaning
01 ILLEGAL FUNCTION The function code transmitted is not one ofthe functions supported by the slave.
02 ILLEGAL DATA ADDRESSES The data address received in the request isnot an allowable value for the slave.
Write to password protected registers.
03 ILLEGAL DATA VALUE The value referenced in the data fieldtransmitted by the master is not withinrange for the selected data address.
The register count is greater than 16(functions 03 and 04).
06 SLAVE DEVICE BUSY The slave is engaged in processing a longduration program command. The mastershould re-transmit the message later whenthe slave is free.
Section 6. MODBUS REGISTER MAP
The Modbus register map consists of the following columns:
Code, Address, Contents, Data type, Indicator, Values, Conditional, Registertype, Min, Max, Step and Password.
Code:
Function codes as described in Section 4.0.
Address:
16 bit register address starting from zero. Most Modbus master devices add40000 decimal to the actual address of the register.
Contents:
Description of parameters assigned to registers.
Data Type:
UNSIGNED INTEGER range 0 ... 65535
one 16-bit register
SIGNED INTEGER range -32768 ... 32767
one 16-bit register
SERVICE MANUAL R8618AM220Appendix Page 10 of 25
ASCII TEXT range 32 ... 159
16-bit registers (two ASCII codes per register)
BINARY FLAGS Each bit of a 16-bit register can be used as abinary flag.
MODBUS data types T1 ... T10 are described in section 7.
Indicator:
Each bit of a 16-bit register can be either assigned as flags or filled with binarydata.
Values:
Definitions of settings and data values.
Conditional:
Lists any dependencies that exist between settings.
Register type:
Declares whether a register is to be read/write register (setting) or a read register(data).
Min, Max, Step:
The minimum and maximum numerical range and the incremental step size.
Password:
There is a numerical password that allows save/abort settings and a factoryaccessible password constructed from the serial number that allows entry/exit toand from the calibration and configuration settings.
SERVICE MANUAL R8618AM220Appendix Page 11 of 25
Code
Addre
ssConte
nts
Data
Ind
Valu
es/D
epen
den
cies
Reg
.Type
Min
Max
Step
Pass
'
3000
0 m
emor
y re
f. SYST
EM D
ATA
04
3000
130
003
Mod
el N
umbe
rT1
2"M
I713
0" o
r "M
220"
Dat
a0
04
3000
4Se
rial N
umbe
rT1
Dat
a0
04
3000
5So
ftwar
e Re
f 1T1
Softw
are
vers
ion
Dat
a12
7`0
04
3000
6En
ergy
cou
nter
1 e
xpon
ent
T2(=
-6 if
inco
rrec
t div
ider
@40
025)
(1)
Dat
a-6
91
0
04
3000
7En
ergy
cou
nter
2 e
xpon
ent
T2(=
-6 if
inco
rrec
t div
ider
@40
026)
(1)
Dat
a-6
91
0
04
3000
8C
ount
er c
exp
onen
tT2
(=-6
if in
corr
ect d
ivid
er @
4002
7)(1
)D
ata
-69
10
04
3000
9C
ount
er d
exp
onen
tT2
(=-6
if in
corr
ect d
ivid
er @
4002
8)(1
)D
ata
-69
10
MEA
SURE
MEN
TS
04
3001
030
011
Ener
gy c
ount
er 1
T3To
tal E
xpor
t Rea
l Ene
rgy
(def
ault)
Dat
a-9
9999
999
8999
9999
91
0
04
3001
230
013
Ener
gy c
ount
er 2
T3To
tal I
mpo
rt Re
activ
e En
ergy
(def
ault)
Dat
a-9
9999
999
8999
9999
91
0
04
3001
430
015
Ener
gy c
ount
er c
T3Pu
lse o
utut
1D
ata
-999
9999
989
9999
999
10
04
3001
630
017
Ener
gy c
ount
er d
T3Pu
lse o
utpu
t 2D
ata
-999
9999
989
9999
999
10
04
3001
830
019
Tota
l Rea
l Pow
erT6
WD
ata
0
04
3002
030
021
A P
hase
Rea
l Pow
erT6
WD
ata
0
04
3002
230
023
B Ph
ase
Real
Pow
erT6
WD
ata
0
04
3002
430
025
C P
hase
Rea
l Pow
erT6
WD
ata
0
04
3002
630
027
Tota
l Rea
ctiv
e Po
wer
T6va
r L (
if >
0 )
var C
( if
> 0
)D
ata
0
04
3002
830
029
A P
hase
Rea
ctiv
e Po
wer
T6va
r L (
if >
0 ) v
ar C
( if
> 0
)D
ata
0
04
3003
030
031
B Ph
ase
Reac
tive
Pow
erT6
var L
( if
> 0
) var
C (
if >
0 )
Dat
a0
04
3003
230
033
C P
hase
Rea
ctiv
e Po
wer
T6va
r L (
if >
0 ) v
ar C
( if
> 0
)D
ata
0
SERVICE M
AN
UA
LR8618A
M220
Appendix
Page 12 of 25
Code Address Contents Data Ind Values/Dependencies Reg.Type Min Max Step Pass'
04 30034 30035 Total I T5 A Data 0
04 30036 30037 IA T5 A Data 0
04 30038 30039 IB T5 A Data 0
04 30040 30041 IC T5 A Data 0
04 30042 30043 Average V T5 V Data 0
04 30044 30045 VA T5 V Data 0
04 30046 30047 VB T5 V Data 0
04 30048 30049 VC T5 V Data 0
04 30050 30051 Total Apparent Power T5 VA Data 0
04 30052 30053 A Phase Apparent Power T5 VA Data 0
04 30054 30055 B Phase Apparent Power T5 VA Data 0
04 30056 30057 C Phase Apparent Power T5 VA Data 0
04 30058 30059 Total Power Factor T7 Data 0
04 30060 30061 Power Factor A T7 Data 0
04 30062 30063 Power Factor B T7 Data 0
04 30064 30065 Power Factor C T7 Data 0
04 30066 Frequency T1 mHz Data 00.000 65.535 0.001Hz 0
04 30067 Frequency T1 mHz Data 00.000 65.535 0.001Hz 0
04 30068 Frequency T1 mHz Data 00.000 65.535 0.001Hz 0
04 30069 Frequency T1 mHz Data 00.000 65.535 0.001Hz 0
04 30070 Total Power Angle T2 0.01 deg Data -180.00 +179.99 0.01deg 0
04 30071 Power Angle A T2 0.01 deg Data -180.00 +179.99 0.01deg 0
SERVICE M
AN
UA
LR8618A
M220
Appendix
Page 13 of 25
04 30072 Power Angle B T2 0.01 deg Data -180.00 +179.99 0.01deg 0
04 30073 Power Angle C T2 0.01 deg Data -180.00 +179.99 0.01deg 0
04 30074 30075 IN T5 A Data 0
04 30076 Angle AB T2 0.01 deg Data -180.00 +179.99 0.01deg 0
04 30077 Angle BC T2 0.01 deg Data -180.00 +179.99 0.01deg 0
04 30078 Angle CA T2 0.01 deg Data -180.00 +179.99 0.01deg 0
04 30079 30080 Average Vxy T5 V Data 0
04 30081 30082 VAB T5 V Data 0
04 30083 30084 VBC T5 V Data 0
04 30085 30086 VCA T5 V Data 0
04 30087 30088 Dynamic Demand Value 1 T6 Total Real Power Data 0
04 30089 30090 Dynamic Demand Value 2 T6 Total Absolute Reactive Power Data 0
04 30091 30092 Dynamic Demand Value 3 T6 Total Apparent Power Data 0
04 30093 30094 Dynamic Demand Value 4 T6 Total I Data 0
04 30095 30096 Max Demand Since Reset 1 T6 Total Real Power Data 0
04 30097 30098 Max Demand Since Reset 2 T6 Total Absolute Reactive Power Data 0
04 30099 30100 Max Demand Since Reset 3 T6 Total Apparent Power Data 0
04 30101 30102 Max Demand Since Reset 4 T6 Total I Data 0
04 30103 30104 Time Stamp MD 1 T8 Data 0
04 30105 30106 Time Stamp MD 2 T8 Data 0
04 30107 30108 Time Stamp MD 3 T8 Data 0
04 30109 30110 Time Stamp MD 4 T8 Data 0
Code Address Contents Data Ind Values/Dependencies Reg.Type Min Max Step Pass'
SERVICE M
AN
UA
LR8618A
M220
Appendix
Page 14 of 25
04 30111 Time into Period (minutes) T1 Data 0
40000 memory ref.
16 40000 40001 Enter password L1 & L2 & BP T11 A..Z write only 0
16 40002 40004 Enter Configuration password T12 A..Z write only 0
16 40005 40006 Set password level 1 T11 A..Z write only 1
16 40007 40008 Set password level 2 T11 A..Z write only 2
3,6,16 40009 400010 Time T9 1
3,6,16 40011 40012 Date T10 1
6 40013 Reset counter & MD 1 Reset counter 1 write only 1
2 Reset counter 2
4 Reset pulse output counter 1
8 Reset pulse output counter 2
256 Synchronise MD
512 Reset last period MD
1024 Reset MD values
3 40014 Calibration voltage in V T1 read only 1V
3 40015 Calibration current in A/10 T1 read only 10A/10=1A 50A/10=5A 0.1A
3,6 40016 Voltage Tr. Primaries in V/10 (4) (2300 for 230V) 0.1V 2
bit # 0..13 1.. 15999 Unsigned integer value 1 15999 1
bit # 14..15 0..3 Unsigned exponent 0 3 1
3,6 40017 Voltage Tr. Secondaries in V (5) T1 10 775 1V, 5V 2
3,6 40018 Current Tr. Ratio (6) T1 1 4000 2
Code Address Contents Data Ind Values/Dependencies Reg.Type Min Max Step Pass'
SERVICE M
AN
UA
LR8618A
M220
Appendix
Page 15 of 25 Code Address Contents Data Ind Values/Dependencies Reg.Type Min Max Step Pass'
3,6 40019 Connection Mode (7) 1 Single phase 2
9 3 phase 3 wire balanced
25 3 phase 4 wire balanced
5 3 phase 3 wire unbalanced
7 3 phase 4 wire unbalanced
3,6 40020 Communication Settings 0 1200 baud 2
1 2400 baud
2 4800 baud
3 9600 baud
4 19200 baud
8 2 stop bit (0 - 1 stop bit)
16 Odd parity (0 - even parity)
32 Parity (0 - no parity)
64 7 bit (0 - 8 bit) read only
128 >10ms response time
3,6 40021 Communication Address 1..247 1 247 1 2
3,6 40022 MD Setting bit # 0..7 0 Disable 2
1..255 Time constant (window period; interval of sub-period)
bit # 8..15 0 Thermal function
1 Fixed window
2..15 Sliding window(# of periods)
3,6 40023 Counter mode 2, bit # 0.. 7 (3) 1 Enable quadrant 1 2
SERVICE M
AN
UA
LR8618A
M220
Appendix
Page 16 of 25
2 Enable quadrant 2
4 Enable quadrant 3
8 Enable quadrant 4
32 Absolute value
64 Inverted value
128 Reactive energy (0 - active)
Counter mode1, bit # 8..15 (3) 256 Enable quadrant 1
512 Enable quadrant 2
1024 Enable quadrant 3
2048 Enable quadrant 4
8192 Absolute value
16384 Inverted value
32768 Reactive energy (0 - active)
3,6 40024 Pulse output mode Same as counter mode 2
Output mode 2, bit# 0 .. 7 (3) Same as counter 2 mode
Output mode 1, bit# 8 .. 15 (3) Same as counter 1 mode
3,6 40025 Counter 1 divider T1 1, 10, 100, 1000, 10000(1) 2
3,6 40026 Counter 2 divider T1 1, 10, 100, 1000, 10000(1) 2
3,6 40027 Counter c divider T1 1, 2, 5, 10, 20, ..., 50000(1) 2
3,6 40028 Counter d divider T1 1, 2, 5, 10, 20, ..., 50000(1) 2
40029 40079 RESERVED
3,6 40080 Starting current T1 320 for 0.2% 3
Code Address Contents Data Ind Values/Dependencies Reg.Type Min Max Step Pass'
SERVICE M
AN
UA
LR8618A
M220
Appendix
Page 17 of 25
3,6 40081 Quartz frequency correction T2 -128 127 1 3
3,6 40082 Calibration status T1 1 Ia, range HI 3
2 Ib, range HI
4 Ic, range HI
8 Ia, range LO
16 Ib, range LO
32 Ic, range LO
64 Va
128 Vb
256 Vc
512 Power angle A, range HI
1024 Power angle B, range HI
2048 Power angle C, range HI
4096 Power angle A, range LO
8192 Power angle B, range LO
16384 Power angle C, range LO
6 40083 Calibration request T1 1 Calibrate voltage inputs write only 3
2 Calibrate current inputs
4 Calibrate phase angle
3,6 40101 Language T1 0 English 2
1 Francais
Code Address Contents Data Ind Values/Dependencies Reg.Type Min Max Step Pass'
SERVICE M
AN
UA
LR8618A
M220
Appendix
Page 18 of 25
2 Deutch
3 Espanol
3,6 40102 Active access level T1 Only 0 can be written 0 3 1 0
16 40110 40111 Set Energy counter 1(2) T3 Counter 1 must be halted write only -99999999 899999999 1 2
16 40112 40113 Set Energy counter 2 (2) T3 Counter 2 must be halted write only -99999999 899999999 1 2
Note 1: If counter 1 or counter 2 dividers are not set to 1, 10, 100, 1000 or 10000, then the counter display does not showcorrect decade units (k, M, ...)If counter c or counter d dividers are not set to 1, 2, 5, 10, 20 ... then the pulse counter value will be incorrect.
Note 2: The counter is halted when all quadrants are disabled (Register address 40023)
Note 3: Cross-reference M300 and M220 energy counters setting -
M300 M220
Import Energy (kvarh) counter 2 address 40023 set bit 1, 2 (kWh with - sign)
counter 1 address 40023 set bit 9, 10 (kWh with - sign)
Export Energy (kWh) counter 2 address 40023 set bit 0, 3 (kWh with + sign)
counter 1 address 40023 set bit 8, 11 (kWh with + sign)
Import Energy (kWh) counter 2 address 40023 set bit 0, 1, 7 (kvarh with + sign)
counter 1 address 40023 set bit 8, 9, 15 (kvarh with + sign)
Export Energy (kvarh) counter 2 address 40023 set bit 2, 3, 7 (kvarh with - sign)
counter 1 address 40023 set bit 10, 11, 15 (kvarh with - sign)
Note 4: All values except 0 are acceptable. The exponent (bits 14 - 15) effect the energy counter decimal places.
Note 5: List of values for Voltage Tr. Secondary - register 40017:10 .. 137 step 1, 140 .. 775 step 5V.Any other value between 10 and 775 is rounded to the nearest upper value in the list.
Code Address Contents Data Ind Values/Dependencies Reg.Type Min Max Step Pass'
SERVICE M
AN
UA
LR8618A
M220
Appendix
Page 19 of 25
Note 6: List of values for Current Tr. Ratio - register 40018:1 .. 63 step 1, 65 .. 315 step 5, 320 .. 630 step 10,650 .. 3150 step 50, 4000. Any other value between 1 and 4000 is rounded to the nearest upper value in the list.
Note 7: Connection Mode value
bit 0: set: Ia is connected; reset: Ia is not connected (Ia, Pa, Qa, Sa are 0)bit 1: set: Ib is connected; reset: Ib is not connected (Ib, Pb, Qb, Sb are 0)bit 2: set: Ic is connected; reset: Ic is not connected (Ic, Pc, Qc, Sc are 0)bit 3: set: 3 phase balanced (Pt=Pa*3); reset: unbalanced or single phasebit 4: set: 4 wire; reset: 3 wire (only for 3 ohase balanced modes)
At least one bit (0, 1, 2) must be set. If not, then all of them are set to 1 (value 7).
Bit 3 can be set only when bit 0 or bit 1 or bit 2 is set.
Value 1 single phaseValue 5 3uValue 7 4uValue 9 3bValue 25 4b
Note 8: Time and Date Settings
M220 can accept invalid data. If invalid data are sent then M220 will display and use invalid time and date.Valid data have to have been ensured from application interface.
SERVICE MANUAL R8618AM220Appendix Page 20 of 25
Section 7. MODBUS DATA TYPES
Registers defined in the Modbus database will define data as one of the datatypes described in the following table:
Type Value/Bit Description
Mask
T1 Unsigned Value (16 bit)
Example: 12345 stored as 12345 = 3039 (16)
T2 Signed Value (16 bit)
Example: 12345 stored as -12345 = CFC7(16)
T3 Signed Long Value (32 bit)
Example: 123456789 stored as 123456789 =075B CD 15 (16)
T4 Text String
Two characters per 16 bit register.
T5 Unsigned Measurement (32 bit)
Bit# 31..24 Decade Exponent(Signed 8 bit)
Bit# 23..00 Binary Unsigned Value (24 bit)
Example: 123456*10 -3 stored as FD01 E240(16)
T6 Signed Measurement (32 bit)
Bit# 31..24 Decade Exponent (Signed 8 bit)
bit# 23..00 Binary Signed value (24 bit)
Example: - 123456*10 -4 stored as FCFE 1DC0(16)
T7 Power Factor (32 bit)
bit# 31..24 Sign: Import/Export (00/FF)
bit# 23..16 Sign: Inductive/Capacitive (00/FF)
bit# 15..00 Unsigned Value (16 bit), 4 decimal places
Example: 0.9876 CAP stored as 00FF 2694(16)
T8 Time stamp (32 bit)
bit# 31..24 Minutes 00 - 59 (BCD)
bit# 23..16 Hours 00 - 23 (BCD)
bit# 15..08 Day of month 01 - 31 (BCD)
bit# 07..00 Month of year 01 - 12 (BCD)
Example: 15:42, 1. SEP stored as 4215 0109(16)
SERVICE MANUAL R8618AM220Appendix Page 21 of 25
T9 Time (32 bit)
bit# 31..24 1/100s 00 - 99 (BCD)
bit# 23..16 Seconds 00 - 59 (BCD)
bit# 15..08 Minutes 00 - 59 (BCD)
bit# 07.00 Hours 00 - 24 (BCD)
Example: 15:42:03.75 stored as 7503 4215(16)
T10 Date (32 bit)
bit# 31..24 Day of month 01 - 31 (BCD)
bit# 23..16 Month of year 01 - 12 (BCD)
bit# 15..00 Year (unsigned integer) 1998..4095
Example: 10, SEP 1998 stored as 1009 07CE(16)
T11 Text String 4 characters
Two characters per 16 bit register
T12 Text String 6 characters
Two charcters per 16 bit register
Section 8. CRC CHECKING AND GENERATING
In RTU mode, messages include an error-checking field that is based on a CRCmethod. The CRC field checks the contents of the entire message. It is appliedregardless of any parity check method used for the individual characters of themessage.
The CRC field is two bytes, containing a 16-bit binary value. The CRC value iscalculated by the transmitting device, which appends the CRC to the message. Thereceiving device recalculates a CRC during receipt of the message, and comparesthe calculated value to the actual value it received in the CRC field. If the twovalues are not equal, an error results.
The CRC is started by first pre-loading a 16-bit register to all 1's. Then a processbegins of applying successive eight-bit bytes of the message to the current contentsof the register. Only the eight bits of data in each character are used forgenerating the CRC. Start and stop bits, and the parity bit, do not apply to theCRC.
During generation of the CRC, each eight-bit character is exclusive ORed with theregister contents. Then the result is shifted in the direction of the least significant bit(LSB), with a zero filled into the most significant bit (MSB) position. The LSB isextracted and examined. If the LSB was a 1, the register is then exclusive ORedwith a pre-set, fixed value. If the LSB was a 0, no exclusive OR takes place.
This process is repeated until eight shifts have been performed. After the last (eigth)shift, the next eight-bit byte is exclusive ORed with the register's current value, andthe process repeats for eight more shifts as described above. The final contents ofthe register, after all the bytes of the message have been applied, is the CRCvalue.
SERVICE MANUAL R8618AM220Appendix Page 22 of 25
8.1 GENERATING A CRC
Step 1 Load a 16-bit register with FFFF hex (all 1's). Call this the CRC register.
Step 2 Exclusive OR the first eight-bit byte of the message with the low order byteof the 16-bit CRC register, putting the result in the CRC register.
Step 3 Shift the CRC register one bit to the right (toward the LSB), zero-filling theMSB. Extract and examine the LSB.
Step 4 If the LSB is 0, repeat Step 3 (another shift). If the LSB is 1, Exclusive ORthe CRC register with the polynomial value A001 hex (1010 0000 00000001).
Step 5 Repeat Steps 3 and 4 until eight shifts have been performed. When this isdone, a complete eight-bit byte will have been processed.
Step 6 Repeat Steps 2...5 for the next eight-bit byte of the message. Continuedoing this until all bytes have been processed.
Result The final contents of the CRC register is the CRC value.
Step 7 When the CRC is placed into the message, its upper and lower bytes mustbe swapped as described below.
8.2 PLACING THE CRC INTO THE MESSAGE
When the 16-bit CRC (two bytes) is transmitted in the message, the low order bytewill be transmitted first, followed by the high order byte.
When the CRC is appended to the message, the low order-byte is appended first,followed by the high-order byte.
In ladder logic, the CKSM function calculates a CRC from the message contents.For applications using host computers, a detailed example of CRC generation isgiven below.
Example:
An example of a C language function performing CRC generation is shown on thefollowing pages. All of the possible CRC values are preloaded into two arrays,which are simply indexed as the function increments through the message buffer.One array contains all of the 256 possible CRC values for the high byte of the16-bit field, and the other array contains all of the values for the low byte.
Indexing the CRC in this way provides faster execution than would be achieved bycalculating a new CRC value with each new character from the message buffer.
Note: This function performs the swapping of the high/low CRC bytes internally.The bytes are already swapped in the CRC value that is returned from the function.Therefore, the CRC value returned from the function can be directly placed into themessage for transmission.
The function takes two arguments:
unsigned char *puchMsg; A pointer to the message buffercontaining binary data to beused for generating the CRC
unsigned short usDataLen; The quantity of bytes in themessage buffer
The function returns the CRC as a type unsigned short.
SERVICE MANUAL R8618AM220Appendix Page 23 of 25
8.3 CRC GENERATION FUNCTION
unsigned short CRC16 (puchMsg, usDataLen)
unsigned char *puchMsg; /* message to calculate CRC upon */
unsigned short usDataLen; /* quantity of bytes in message */
unsigned char uchCRCHi - 0xFF; /* high CRC byte initialized */
unsigned char uchCRCLo = oxFF; /* low CRC byte initialized */
unsigned uIndex; /* will index into CRC lookup */
/* table */
while (usDataLen - -) /* pass through message buffer */
uIndex = uchCRCHi ^ *puchMsgg++ ; /* calculate the CRC */
uchCRCHi = uchCRCLo ^ auchCRCHi (uIndex) ;
uchCRCLo = auchCRCLo (uIndex) ;
return (uchCRCHi <<8 I uchCRCLo) ;
8.4 HIGH ORDER BYTE TABLE
/* Table of CRC values for high - order byte */
static unsigned char auchCRCHi [] =
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0,
0x80, 0x41, 0x00, 0xC1 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0,
0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1,
0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1,
0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0,
0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40,
0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1,
0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0,
0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40,
0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0,
SERVICE MANUAL R8618AM220Appendix Page 24 of 25
0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0,
0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0,
0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41,
0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0,
0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40,
0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1,
0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41,
0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0x0,
0x80, 0x41, 0x00, 0xC1, 0x81, 0x40
;
8.5 LOW ORDER BYTE TABLE
/* Table of CRC values for low-order byte */
static char auchCRCLo [] =
0x00, 0xC0, 0xC1, 0x01, 0xC3, 0x03, 0x02, 0xC2, 0xC6, 0x06,
0x07, 0xC7, 0x05, 0xC5, 0xC4, 0x04, 0xCC, 0x0C, 0x0D, 0xCD,
0x0F, 0xCF, 0xCE, 0x0E, 0x0A, 0xCA, 0xCB, 0x0B, 0xC9, 0x09,
0x08, 0xC8, 0xD8, 0x18, 0x19, 0xD9, 0x1B, 0xDB, 0xDA, 0x1A,
0x1E, 0xDE, 0xDF, 0x1F, 0xDD, 0xID, 0x1C, 0xDC, 0x14, 0xD4,
0xD5, 0x15, 0xD7, 0x17, 0x16, 0xD6, 0xD2, 0x12, 0x13, 0xD3,
0x11, 0xD1, 0xD0, 0x10, 0xF0, 0x30, 0x31, 0xF1, 0x33, 0xF3,
0xF2, 0x32, 0x36, 0xF6, 0xF7, 0x37, 0xF5, 0x35, 0x34, 0xF4,
0x3C, 0xFC, 0xFD, 0x3D, 0xFF, 0x3F, 0x3E, 0xFE, 0xFA, 0x3A,
0x3B, 0xFB, 0x39, 0xF9, 0xF8, 0x38, 0x28, 0xE8, 0xE9, 0x29,
0xEB, 0x2B, 0x2A, 0xEA, 0xEE, 0x2E, 0x2F, 0xEF, 0x2D, 0xED,
0xEC, 0x2C, 0xE4, 0x24, 0x25, 0xE5, 0x27, 0xE7, 0xE6, 0x26,
0x22, 0xE2, 0xE3, 0x23, 0xE1, 0x21, 0x20, 0xE0, 0xA0, 0x60,
0x61, 0xA1, 0x63, 0xA3, 0xA2, 0x62, 0x66, 0xA6, 0xA7, 0x67,
0xA5, 0x65, 0x64, 0xA4, 0x6C, 0xAC, 0xAD, 0x6D, 0xAF, 0x6F,
0x6E, 0xAE, 0xAA, 0x6A, 0x6B, 0xAB, 0x69, 0xA9, 0xA8, 0x68,
0x78, 0xB8, 0xB9, 0x79, 0xBB, 0x7B, 0x7A, 0xBA, 0xBE, 0x7E,
0x7F, 0xBF, 0x7D, 0xBD, 0xBC, 0x7C, 0xB4, 0x74, 0x75, 0xB5,
0x77, 0xB7, 0xB6, 0x76, 0x72, 0xB2, 0xB3, 0x73, 0xB1, 0x71,
0x70, 0xB0, 0x50, 0x90, 0x91, 0x51, 0x93, 0x53, 0x52, 0x92,
0x96, 0x56, 0x57, 0x97, 0x55, 0x95, 0x94, 0x54, 0x9C, 0x5C,
SERVICE MANUAL R8618AM220Appendix Page 25 of 25
0x5D, 0x9D, 0x5F, 0x9F, 0x9E, 0x5E, 0x5A, 0x9A, 0x9B, 0x5B,
0x99, 0x59, 0x58, 0x98, 0x88, 0x48, 0x49, 0x89, 0x4B, 0x8B,
0x8A, 0x4A, 0x4E, 0x8E, 0x8F, 0x4F, 0x8D, 0x4D, 0x4C, 0x8C,
0x44, 0x84, 0x85, 0x45, 0x87, 0x47, 0x46, 0x86, 0x82, 0x42,
0x43, 0x83, 0x41, 0x81, 0x80, 0x40
;
Section 9. RELATED DOCUMENTS
Ref Document Title
1 PI-MBUS-300 Rev. E AEG Modicon Modbus Protocol Reference Guide
SERVICE MANUAL R8618AM220
continued overleaf
REPAIR FORM
Please complete this form and return it to ALSTOM T&D Protection & Control Limited with theequipment to be repaired. This form may also be used in the case of application queries.
ALSTOM T&D Protection & Control LimitedSt. Leonards WorksStaffordST17 4LX,England
For: After Sales Service Department
Customer Ref: ________________________ Model No: __________________
ALSTOM Contract Ref: ________________________ Serial No: __________________
Date: ________________________
1. What parameters were in use at the time the fault occurred?
AC volts _____________ Main VT/Test set
DC volts _____________ Battery/Power supply
AC current _____________ Main CT/Test set
Frequency _____________
2. Which type of test was being used? ____________________________________________
3. Were all the external components fitted where required? Yes/No(Delete as appropriate.)
4. List the relay settings being used
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
5. What did you expect to happen?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
SERVICE MANUAL R8618AM220
6. What did happen?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
7. When did the fault occur?
Instant Yes/No Intermittent Yes/No
Time delayed Yes/No (Delete as appropriate).
By how long? ___________
8. What indications if any did the relay show?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
9. Was there any visual damage?
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
10. Any other remarks which may be useful:
____________________________________________________________________________
____________________________________________________________________________
____________________________________________________________________________
______________________________________ _______________________________________Signature Title
______________________________________ _______________________________________Name (in capitals) Company name
A L S T O M T & D P r o t e c t i o n & C o n t r o l L t d St Leonards Works, Stafford, ST17 4LX EnglandTel: 44 (0) 1785 223251 Fax: 44 (0) 1785 212232 Email: [email protected] Internet: www.alstom.com
©1999 ALSTOM T&D Protection & Control Ltd
Our policy is one of continuous product development and the right is reserved to supply equipment which may vary from that described.
Publication R8618A Printed in England.