Sei sulla pagina 1di 68

Service Manual M220 Measurement Centre

Service Manual M220 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 cause serious damage, which often may not be immediately apparent but the reliability of the circuit will have been reduced. The electronic circuits of ALSTOM T&D Protection & Control Ltd products are immune to the relevant levels of electrostatic discharge when housed in their cases. Do not expose them to the risk of damage by withdrawing modules unnecessarily. Each module incorporates the highest practicable protection for its semiconductor devices. However, if it becomes necessary to withdraw a module, the following precautions should be taken to preserve the high reliability 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 equipment by 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 same electrostatic potential. Shaking hands achieves equipotential. 4. Place the module on an antistatic surface, or on a conducting surface which is at the same potential 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 and IEC 60147-0F. If you are making measurements on the internal electronic circuitry of an equipment in service, it is preferable 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 not available, 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 whenever possible. ALSTOM T&D Protection & Control Ltd strongly recommends that detailed investigations on the electronic circuitry, or modification work, should be carried out in a Special Handling Area such as described in BS5783 or IEC 60147-0F.

SAFETY SECTION
This Safety Section should be read before commencing any work on the equipment.

Health and safety The information in the Safety Section of the product documentation is intended to ensure that products are properly installed and handled in order to maintain them in a safe condition. It is assumed that everyone who will be associated with the equipment 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 the product 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 a terminal block or sub-assembly eg. power supply.

*Note:The term earth used throughout the product documentation is the direct equivalent of the North American term ground.

Installing, Commissioning and Servicing


Equipment connections Personnel undertaking installation, commissioning or servicing work on this equipment should be aware of the correct working procedures to ensure safety. The product documentation should be consulted before installing, commissioning or servicing the equipment. Terminals exposed during installation, commissioning and maintenance may present 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 all personnel to avoid electric shock or energy hazards. Voltage and current connections should be made using insulated crimp terminations to ensure that terminal block insulation requirements are maintained for safety. To ensure that wires are correctly terminated, the correct crimp terminal and 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 and environmental limits. Current transformer circuits Do not open the secondary circuit of a live CT since the high voltage produced may be lethal to personnel and could damage insulation. Battery replacement Where internal batteries are fitted they should be replaced with the recommended type and be installed with the correct polarity, to avoid possible damage to the equipment. Insulation and dielectric strength testing Insulation testing may leave capacitors charged up to a hazardous voltage. At the end of each part of the test, the voltage should be gradually reduced to zero, to discharge capacitors, before the test leads are disconnected.

Decommissioning and Disposal


Decommissioning: The auxiliary supply circuit in the relay may include capacitors across the supply or to earth. To avoid electric shock or energy hazards, after completely isolating the supplies to the relay (both poles of any dc supply), the capacitors should be safely discharged via the external terminals prior to decommissioning. Disposal: It is recommended that incineration and disposal to water courses is avoided. The product should be disposed of in a safe manner. Any products containing batteries should have them removed before disposal, taking precautions to avoid short circuits. Particular regulations within the country of operation, may apply to the disposal of lithium batteries.

Technical Specifications
Protective fuse rating The recommended maximum rating of the external protective fuse for this equipment is 6A, Red Spot type or equivalent. Insulation class: IEC 601010-1: 1990/A2: Class II EN 61010-1: Class II Installation Category (Overvoltage): 1993/A2: 1995 1995 1995 1995 Distribution level, fixed installation. Equipment in this category is qualification tested at 5kV peak, 1.2/50s, 500, 0.5J, between all supply circuits and earth and also between independent circuits. Compliance is demonstrated by reference to generic safety standards. Compliance with the European Commission Low Voltage Directive. 1993/A2: 1995 Compliance is demonstrated by reference to generic safety standards. This equipment does not require a protective (safety) earth connection.

IEC 601010-1: 1990/A2: Category III EN 61010-1: 1993/A2: Category III

Environment:

IEC 601010-1: 1990/A2: Pollution degree 2 EN 61010-1: 1993/A2: Pollution degree 2

1995 1995

Product safety: 73/23/EEC

EN 61010-1:

SERVICE MANUAL M220

R8618A Contents Page 1 of 2

CONTENTS SAFETY SECTION 1. INTRODUCTION 1 2 2 2 2 2 3 3 4 4 5 5 5 5 5 5 5 6 6 6 6 6 6 6 7 7 7 7 7 8 8 10 10 11 11 11 12 12 13 13 13 13 14 14 15 15 2. SYSTEM MODES 2.1 Connection mode 2.1.1 3-phase, 4-wire unbalanced (4u) 2.1.2 3-phase, 3-wire unbalance (3u) 2.1.3 Valid measurements 2.2 Power mode 2.3 Operating energy quaderants 3. INSTRUMENTATION 3.1 Measurements 3.1.1 Voltage 3.1.2 Current 3.1.3 Angles between Phases 3.1.4 Frequency 3.2 Power, power factor and energy 3.2.1 Power 3.2.2 Power factor 3.2.3 Energy 3.3 Demand values 3.3.1 Real time clock 3.3.2 Maximum demands 3.3.3 Average demands 3.3.3.1 Fixed window 3.3.3.2 Sliding window 3.3.3.3 Thermal demand 3.4 Digital outputs 4. COMMUNICATIONS 4.1 RS232 communications 4.2 RS485 communications 5. USER INTERFACE MENU STRUCTURE 5.1 Measurements menu 5.1.1 Energymeters menu 5.2 SETTINGS 5.2.1 Password menu 5.2.2 Language menu 5.2.3 Display menu 5.2.4 Real time clock menu 5.2.5 Pulsed outputs menu 5.2.6 Reset MD menu 5.2.6.1 Synchronisation 5.2.6.2 Reset MD since last reset 5.2.6.3 Reset MD for present period 5.2.7 Maximum demand calculations menu 5.2.8 Communication menu 5.2.9 Connection menu 5.2.9.1 CT ratio

SERVICE MANUAL M220

R8618A Contents Page 2 of 2

5.2.9.2 Connection input 5.2.9.3 VT ratio 6. TECHNICAL DATA 6.1 Ratings 6.1.1 Voltage input 6.1.2 Current input 6.1.3 Frequency 6.1.4 AC auxiliary supply 6.1.5 DC auxiliary supply 6.2 Accuracy 6.3 Relay outputs 6.4 Real time clock 6.5 Back up battery 6.6 Communication ports 6.6.1 RS232 port 6.6.2 RS485 6.7 High voltage withstand 6.8 Electrical environment 6.9 Environmental withstand 6.9.1 Atmospheric environment 6.9.2 Construction 6.9 External wiring diagrams 6.10 Dimensions 6.11 Power supply, communications and pulsed output connections Figure 1. Power quadrants Figure 2. Greeting Figure 3. Energy meters Figure 4. Measurements menu Figure 5. Energy meters menu Figure 6. Setting menu Figure 7. Password menu Figure 8. Language menu Figure 9. Display menu Figure 10. Clock menu Figure 11. Pulsed ouputs menu Figure 12. Reset MD menu Figure 13. Demand calculations menu Figure 14. Communication menu Figure 15. Connection menu Figure 16. External wiring diagram: Single phase (1B) Figure 17. External wiring diagram: 3-phase, 3-wire balanced load (3b) Figure 18. External wiring diagram: 3-phase, 4-wire balanced load (4b) Figure 19. External wiring diagram: 3-phase, 3-wire balanced load (3u) Figure 20. External wiring diagram: 3-phase, 4-wire unbalanced load (4u) Figure 21. Typical connections for pulse output Figure 22. M220 Dimensions Figure 23. Power supply, communications and pulsed putput connections.

16 16 17 17 17 17 17 17 17 18 18 18 18 18 18 19 19 20 21 21 21 21 24 25 4 8 8 9 10 10 11 11 12 12 13 14 14 15 15 21 22 22 23 23 24 24 25

SERVICE MANUAL M220

R8618A 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 power system management. The use of numerical technology achieves high accuracy over a wide dynamic measuring range for instantaneous and integrated power system 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 continuous monitoring of a single or three-phase system is required. Instantaneous Measurements Phase voltages Average phase voltage Line voltages Average line voltage Current Neutral current Active power Reactive power Apparent power Power factor Frequency Integrated/ Maximum Demands Maximum demand Energy
Table 1: Measured parameters

Parameters Ua, Ub, Uc U Uab, Ubc, Uca U

Ia, Ib, Ic, It In


Pa, Pb, Pc, Pt Qa, Qb, Qc, Qt S a , Sb , Sc , St cosa, cosb, cosc, cost Frequency

It, Pt, Qt, St


Wht, varht

SERVICE MANUAL M220

R8618A 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 remote communications) 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 2.1.3

3-phase, 3-wire unbalanced (3u)


This variation must not have its connection mode reconfigured.

Valid measurements
Table 2 lists the valid measurements for each connection type. Parameter 1b Ua Ub Uc U Uab Ubc Uca U 3b Connection type 4b 4u 3u

Ia Ib Ic It In
cosa

SERVICE MANUAL M220

R8618A Page 3 of 25

Parameter 1b cosb cosc cost Pa Pb Pc Pt Qa Qb Qc Qt Sa Sb Sc St 3b

Connection type 4b 4u 3u

Table 2: Valid measurements for each connection type.


2.2 Power mode The power mode is used for the signing of power measurements. The user cannot 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 energy are added to the energy counters. The user may modify the operating energy quadrants via the remote communications interface. The default operating energy 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 M220

R8618A Page 4 of 25

The four power quadrants are defined in Figure 1. The user may customise the energy meters to accumulate the desired values of energy to application specific requirements. Using the Modbus data register the user must enter the following 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 accumulate the desired energy is reversed.
Q (Ind) Lagging vars to consumer

Import Q Import P

Quadrant 2

Quadrant 1

Import Q Export P

S P

S P

Power to generator P (--)


Q

Power to consumer P S Quadrant 3 P


Q

P (+)

S Quadrant 4

Export Q Import P

Export Q Export P

Lagging vars to generator Q (Cap)

Figure 1. Power quadrants

Section 3. INSTRUMENTATION
3.1 Measurements With the increase in harmonics present in today's power systems, due to the increased use of electronic loads such as computers, variable frequency drives, etc. it is important, when accurate monitoring of electrical parameters is required, 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 accurate when the input waveform approaches a pure sinusoid. The M220 uses a true RMS (root-mean-square) measurement technique that provides accurate measurement with harmonics present up to the 15th harmonic. The M220 extracts 64 samples per cycle and the true RMS measurement is obtained using these sampled values.

SERVICE MANUAL M220

R8618A Page 5 of 25

3.1.1

Voltage
All 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 the unit. The three line voltages (Uab, Ubc, Uca), average phase voltage (U) and average line voltage (U) are calculated from these measured parameters. For 3-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 RMS value of the phase to phase voltage. The available phase, line and average voltages can be viewed on the M220 display or via the remote communications link.

3.1.2

Current
The 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 M220 display or via the remote communications link whilst the sum of all phase currents is only visible via the remote communications link.

3.1.3

Angles between Phases


Angles between phases indicate the angles between the vectors of phase voltages. A positive mark indicates correct phase sequence, while a negative mark indicates an opposite phase sequence of the measured system. The angles between phase parameters are only visible via the remote communications link.

3.1.4

Frequency
The system frequency is calculated from the time period of the measured voltage and can be viewed from both the M220 display and the remote communications link.

3.2

Power, power factor and energy

3.2.1

Power
The 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 system the powers are calculated both for each phase separately and as a total. For a three-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 M220 display or via the remote communications link.

3.2.2

Power factor
The power factor is calculated as a quotient of active and apparent power for each phase separately (cosa, cosb, cosc) and as a total (cost). A positive sign and a coil symbol denotes an inductive load (a consumer) whilst a negative sign and a capacitor symbol defines a capacitive load (a generator).

SERVICE MANUAL M220

R8618A Page 6 of 25

All available power factor parameters can be read from the M220 display or via the remote communications link.

3.2.3

Energy
When 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 serial communications link. Both energy measurements may be viewed using either the M220 display or a remote communications link.

3.3

Demand values The M220 provides maximum demand values from a variety of average demand values (fixed window, sliding window and thermal) for the following electrical parameters: Total active power (Pt) Total reactive power (Qt) Total apparent power (St) Sum of phase currents (It)

3.3.1

Real time clock


The M220 is provided with a built-in real time clock. It is intended for registration of time of the occurrence of MDs, and for synchronisation of the time interval.

3.3.2

Maximum demands
The M220 stores the maximum demand value since last reset and its corresponding time stamp (visible only via remote communications link). The unit also displays the present or 'dynamic' maximum demand.

3.3.3

Average demands
The fixed interval method calculates an average demand value over a fixed time period. The period can be set over the range 1 to 255 minutes.

3.3.3.1 Fixed window

3.3.3.2 Sliding window


The sliding window technique allows the user to divide the time period into a number of sub-periods. The average demand value over the demand period is displayed, however, after the initial demand period has elapsed, the demand value 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-periods have elapsed a new window will be added and the oldest window will be deleted, thus creating a sliding window. The number of sub-periods may be set between 2 to 15.

SERVICE MANUAL M220

R8618A Page 7 of 25

3.3.3.3 Thermal Demand


The thermal demand option will provide an exponential thermal characteristic, based on the bimetal element principal. Maximum demand and the time of its occurrence are stored in the unit. 3.4 DIGITAL OUTPUTS The M220 can be supplied with two pulsed outputs that can be used for external monitoring of energy consumption. The energy measuring via the pulsed outputs corresponds to the basic energy measurement on the M220 display. The pulsed outputs' energy measurement can be adapted to the customers needs via the remote communications link.

Section 4.

COMMUNICATIONS

The M220 is supplied with either RS232 or RS485 electrically isolated communications and should be specified at ordering. The communications protocol is MODBUS RTU, which is detailed in the appendix of this service manual. The communications service enables remote viewing of measurements and viewing and setting of system parameters. 4.1 RS232 communications The connection of RS232 communications between the M220 and a PC is detailed in Table 3. The maximum connection length is 15 metres. M220 Rx (1) GND (2) Tx (3) 9 pin D connector (PC) Tx (3) GND (5) Rx (2) 25 pin D connector (PC) Tx(2) GND(7) Rx(3)

Table 3: RS232 connections


4.2 RS485 communications RS485 communications enables simultaneous connection to a maximum of 32 communicating devices. For RS485 communications, the PC will require either an internal RS485 communications port or an external RS232/RS485 interface. In both cases the device must provide automatic RS485 data flow control. The maximum connection length is 1000 metres. Conductors A and B should be terminated with a 120 terminating resistor. Table 4 details the RS485 connections. M220 A B C RS485 DATA + DATA GND

Table 4: RS485 connections

SERVICE MANUAL M220

R8618A Page 8 of 25

Section 5.

USER INTERFACE MENU STRUCTURE

The settings, measurements and functions of the M220 can be accessed from either the front panel or the remote communications link. The menu structure of the M220 is navigated using the four keys on the front panel. Throughout this section the arrows in the diagrams relate to pressing the corresponding key on the front panel. The M220 has four levels of access: L0 - No password is required. This allows the user to browse through the measurements and the set display. L1 - Level 1 password required. In addition to the access rights of L0, the following are available; set the real time clock, reset and synchronise maximum demand and reset the energy meters. L2 - Level 2 password required. In addition to the rights of L0 and L1 the following 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 remote communications interface and is used for factory calibration and service. The M220 is supplied with both L1 and L2 passwords set to AAAA. AAAA passwords offer no level of protection; all measurements and settings can be modified. The L1 and L2 passwords must be changed from AAAA to activate password level protection. When the M220 is first connected to the power system the user is greeted with the message shown in Figure 2. Measurement Centre M220

Figure 2: Greeting
After a period of five seconds the M220 display automatically defaults to display the energy meters as depicted in Figure 3. 0021358.5kWh 00005234.9kvarh

Figure 3: Energy meters


5.1 MEASUREMENTS MENU Figure 4 illustrates the measurement's menu structure. The user can browse through the available measurements without entering any password. The user will automatically be prompted to enter a password where required to modify settings or reset measurements.

0021358.5kWh 00005234.9kvarh

SERVICE MANUAL M220

SETTING

Frequency = 50.012 Hz 21. MAY 13: 33: 19

Figure 4: Measurements menu


Ia=3799.1mA Ib=4198.2mA In=0.000 A Ic=3734.5mA
MD SINCE RESET

It = 015.5 A

It = 012.4 A

PRESENT MD

Uab=100.1 V Ubc=100.2 V UD =100.1 V Uca=100.0 V

Ua=057.43 V Ub=057.23 V U=057.27 V Uc=057.15 V

cosja = 0.978 cosjt = 0.975 cosjc = 0.960

cosjb = 0.976

Sa = 0218.2 VA St = 0669.0 VA Sb = 0240.3 VA Sc = 0213.4 VA

MD SINCE RESET St = 0863.4 VA

PRESENT MD

St = 0715.5 VA

Qa = +0045.1 Var Qt = +0045.1 Var

Qb = +0052.6 Var Qc = +0048.3 Var

Qt = +0187.3

MD SINCE RESET

PRESENT MD

Qt = +0155.5

R8618A Page 9 of 25

Pa = +0213.5 W Pt = +0652.9 W

Pb = +0234.5 W Pc = +0204.9 W

MD SINCE RESET Pt = +0652.4 W

PRESENT MD Pt = +0686.5 W

SERVICE MANUAL M220

R8618A Page 10 of 25

5.1.1

Energy meters menu


A level 1 or 2 password must be entered to gain access to reset the energy meters shown in Figure 5. The user can reset either energy counter 1, energy counters 1 & 2 or energy counter 2. To reset the chosen counter the key must be held for five seconds.
0021358.5kWh 00005234.9kvarh 1 * RESET * 1 * RESET * 5

1 * RESET * 2 * RESET *

1 * RESET * 5 2 * RESET * 5

2 * RESET *

2 * RESET * 5

Figure 5: Energy meters menu


5.2 SETTINGS Figure 6 illustrates the main setting menu.
SETTING PASSWORD

LANGUAGE

DISPLAY

CLOCK

PULSE OUTPUT

RESET MD

DEMAND CALCULATIONS

COMMUNICATION

CONNECTION

Figure 6: Setting menu

SERVICE MANUAL M220

R8618A Page 11 of 25

5.2.1

Password menu
Figure 7 illustrates the password menu. The user may; enter the desired level of password, cancel the current password, set level 1 password or set level 2 password. A password consists of four letters from A to Z. The and keys are used to select each character in turn, whilst the and keys scroll through the available characters. To enter the password press the key after the last character has been modified. The M220 monitors the level of entered password. If no key is pressed for 15 minutes, the password is automatically cancelled. Each level's password is the same both via the front panel and the remote communications interface. The factory-set default for level 1 and level 2 is AAAA. On receipt of the unit both levels of password should be modified to invoke password protection.
PASSWORD ENTER PASSWORD: **** ENTER PASSWORD: A***

CANCEL PASSWORD: ****

ENTER PASSWORD: A***

SET L2 PASSWORD: ****

ENTER PASSWORD: A***

SET L1 PASSWORD: ****

ENTER PASSWORD: A***

Figure 7: Password menu

5.2.2

Language menu
Figure 8 illustrates the language menu. A level 2 password must be entered to change the language. The and keys are used to select the required language.

LANGUAGE

LANGUAGE: ENGLISH

LANGUAGE: ENGLISH SET

Figure 8: Language menu

5.2.3

Display menu
Figure 9 illustrates the display menu. The display settings can be modified from level 0. The desired character is chosen with the and keys and its value selected with the and keys. The display's contrast may be set from 0 to 63, the backlight from 0 to 255 and the off time from 0 to 54 minutes. Display illumination is switched on with the press of any key and off after the set time from the last key pressed.

SERVICE MANUAL M220

R8618A Page 12 of 25

DISPLAY

CONTRAST: 20

CONTRAST: 20 SET

TIME OFF: 05min

TIME OFF: 05min SET

BACK LIGHT: 255

BACK LIGHT: 255 SET

Figure 9: Display menu

5.2.4

Real time clock menu


Figure 10 illustrates the real time clock menu. The real time clock can be set with level 1 or level 2 access. For time and date settings the character is chosen with the and keys and set with the and keys. When setting the year, just the and keys are used.

CLOCK

TIME: 18:05

TIME: 18:05 SET

YEAR: 1999

YEAR: 1999 SET

DATE: 11.MAY

DATE: 11.MAY SET

Figure 10: Clock menu

5.2.5

Pulsed outputs menu


A level 2 password must be entered to set the pulsed outputs as illustrated in Figure 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 energy meter output and from 20P/Mvarh to 1P/varh for the reactive energy meter output. The pulsed outputs are derived from the displayed energy meters and their resolution will be affected by changes in the VT and CT ratios.

SERVICE MANUAL M220

R8618A Page 13 of 25

PULSE OUTPUT

OUT1: 100P/kWh

OUT1: 100P/kWh SET

OUT2: 100P/kvarh

OUT2: 100P/kvarh SET

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 as illustrated in Figure 12. To synchronise MD, reset MD since last reset or reset MD for present period, the key must be pressed for a period of five seconds.

5.2.6.1 Synchronisation
The synchronisation command operates differently depending on the selected mode of MD calculation: Thermal mode - synchronisation has no effect. Fixed window - at the moment of synchronisation, calculation of the dynamic MD is halted and considered for storage as the MD since reset. Calculation of MD is resumed at the beginning of the next full minute. Sliding window - at the moment of synchronisation, calculation of the dynamic MD for the present sub-period is halted and considered for storage as the MD for the entire window. Calculation of MD is continued at the beginning of the next full minute of the following sub-window.

5.2.6.2 Reset MD since last reset


When resetting MD since last reset the operation is performed differently depending 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. At the same time, synchronisation of the time interval is performed. Sliding window - MD of present sub-window, all other sub-windows and MD since last reset are reset. At the same time, synchronisation of the time interval is performed at the beginning of the first sub-window.

5.2.6.3 Reset MD for Present Period


When resetting MD for the present period the operation is performed differently depending 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 the time interval are reset. At the same time, synchronisation of the time interval is performed at the beginning of the first time interval.

SERVICE MANUAL M220

R8618A Page 14 of 25

RESET MD

SYNCHRONISE

SYNCHRONISE 5

MD SINCE RESET

MD SINCE RESET 5

PRESENT PERIOD

PRESENT PERIOD 5

Figure 12: Reset MD Menu

5.2.7

Maximum demand calculations menu


A level 2 password must be entered to set maximum demand calculations as illustrated 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 and the number of sub-windows between 2 to 15. If the time interval is set to 0, the calculation of MD is switched off.

DEMAND CALCULATIONS

MD MODE: THERMAL DEMAND

MD MODE: THERMAL DEMAND SET

Time c. = 015min.

Time c. = 015min. SET

Figure 13: Demand calculations menu

5.2.8

Communication Menu
A level 2 password is required to set the communications parameters illustrated in Figure 13. Communications rate - the communications transmission rate is selected with the and keys. The selectable rate values are 1200, 2400, 4800, 9600 and 19200. Address - the communications address can be set in the range of 1 to 247. Address 0 is reserved for broadcast messaging.

SERVICE MANUAL M220

R8618A Page 15 of 25

Communications data form - the length, parity and stop bit can be set for the data form. The data form can be set as follows: Length: Parity: Stop bit: 7,8 (value 8 is always used for MODBUS RTU) n (none), o (odd) and e (even) 1 or 2

COMMUNICATION

RS BitRATE: 19200

RS BitRATE: 19200 SET

RS ADDRESS = 033

RS ADDRESS = 033 SET

RS FRAME: 8,N,2

RS FRAME: 8,N,2 SET

Figure 14: Communication menu

5.2.9

Connection menu
A level 2 password is required to set the connection menu as illustrated in Figure 15.

CONNECTION

CT = 00030/5

CT = 00030/5 SET

INPUT: 1b

INPUT: 1b SET

VT = 0230.0 /230

VT = 0230.0 /230 SET

Figure 15: Connection menu

5.2.9.1 CT Ratio
When setting the current ratio only the primary value may be altered; the secondary value (1A or 5A) must be specified with the order. Selectable ratios are defined in Table 5. When 'set' is displayed, the character is selected by pressing 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.

SERVICE MANUAL M220

R8618A Page 16 of 25

Ratio 1...63 65...315 320...630 650...3150 4000

Ratio Step 1 5 10 50 -

1A CT 1...63 65...315 320...630 650...3150 4000

5A CT 5...315 325...1575 1600...3150 3250...15750 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 physical connection 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 should not be modified.

5.2.9.3 VT Ratio
Both the primary and secondary values of the VT ratio may be set. The values are set in the same manner as described for the CT ratio. When setting the voltage transformer primary value, the decimal point is also set. The decimal point is set with the and key when the decimal point is selected (underlined). By setting the decimal point, the resolution of the energy display can be changed. Voltage Range 10 ... 137 V 140 ... 775 V Voltage Step 1V 5V Voltage Step 0.1 V 1V 10 V 100 V

Table 6. Secondary Voltage Settings


Voltage Range 0.1 ... 1599.9 V 1 ... 15.999 kV 10 ... 159.99 kV 100 ... 1599.9 kV

Table 7. Primary Voltage Settings

SERVICE MANUAL M220

R8618A Page 17 of 25

Section 6. Technical data

6.1

Ratings

6.1.1

Voltage input
Nominal voltage (Un) Measuring range Burden Thermal withstand 63.5V, 120V and 230V 10 to 150% Un <0.1VA 1.5Un continuously 2Un for 10s 1A or 5A 0 to 160% In <0.1VA 3In continuously 25In for 3s 50In for 1s 50Hz or 60Hz 45Hz to 65Hz 63.5V, 120V and 230V 80 to 120% Ux 1.2Ux continuously 1.5Ux for 10s Nominal frequency (fx) Operative frequency range Burden 50Hz or 60Hz 45Hz to 65Hz <5VA 24 to 400V 20V to 440V <5VA phase to neutral (Auxiliary supply)

6.1.2

Current input
Nominal current (In) Measuring range Burden Thermal withstand

6.1.3

Frequency
Nominal frequency (fn) Measuring range

6.1.4

AC auxiliary supply
Nominal voltage (Ux) Operative range Thermal withstand

6.1.5

DC auxiliary supply
Nominal voltage (Ux) Operative range Burden

SERVICE MANUAL M220

R8618A Page 18 of 25

6.2

Accuracy Measurement Voltage Phase current Neutral current Power Power factor MD values Frequency Active energy Reactive energy Real time clock 0.5% Un* 0.5% In* 1% of 3 x In* 0.5% * 0.005 1% * 0.05% of reading IEC 61036 Class 1.0 IEC 61268 Class 2.0 30ppm

* For these values the accuracy is % of nominal for 0 ... 100% of nominal and % of reading above nominal.

6.3

Relay outputs Maximum AC switching power Maximum switching voltage Maximum switching current Isolation 50VA 350V DC or peak AC 1A Coil to contacts Across contacts Maximum pulses per hour Pulse duration 4000 100ms 1 minute/month (30 ppm) 6 years 4000 5600 1400 2000 V V V V rms DC rms DC

6.4 6.5 6.6

Real time clock Accuracy Back up battery Battery life Communication ports

6.6.1

RS232 Port
Connection type Signal levels Cable type Maximum cable length Connector Isolation Point to point RS232 Screened multi-core 15m Screw terminals 2kV rms for 1 minute between all terminals and all other circuits

SERVICE MANUAL M220

R8618A Page 19 of 25

Transmission mode Message format Data rate

Asynchronous MODBUS RTU 1200 to 19200 bits/s Multi-drop (32 connections per link) RS485 Screened twisted pair 1000m Screw terminals 2kV rms for 1 minute between all terminals and all other circuits Asynchronous MODBUS RTU 1200 to 19200 bits/s

6.6.2

RS485
Connection type Signal levels Cable type Maximum cable length Connector Isolation Transmission mode Message format Data rate

6.7

High voltage withstand Dielectric withstand IEC 60255-5: 1977 2kV rms for 1 minute between all terminals and earth. 2kV rms for 1 minute between all terminals of independent circuits including the output relay circuits. 1kV rms for 1 minute across open contacts of output relays. 2kV rms for 1 minute between all pins of the communications port wired together and all other terminals. High voltage impulse IEC 60255-5:1977 Three positive and three negative impulses of 5kV peak, 1.2/50s, between all terminals of the same circuit (except communication port); between independent circuits (except communication port); and between all terminals connected together and earth (except communication port) Three positive and three negative impulses of 1kV peak, 1.2/50s, between the communication port and earth. Insulation resistance IEC 60255-5: 1977 >100M

SERVICE MANUAL M220

R8618A Page 20 of 25

6.8

Electrical Environment High frequency disturbance IEC 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 port and earth. 1kV peak applied across the terminals of all circuits (except communication port) Fast transient disturbance IEC 61000-4-4: 1995 Level IV 4kV, 2.5kHz applied directly between all terminals and earth (except communication port). Electrostatic discharge IEC 60255-22-2: 1996 Class III 8kV air discharge 6kV contact discharge AC ripple on DC supply IEC 60255-11: 1979 The unit will withstand 12% ripple on the DC auxiliary supply AC supply voltage dips and short interruptions EN 61000-4-11: 1994 The unit will withstand voltage dips of 100%, 60% and 30% in the auxiliary power supply for a duration of 10ms, under normal operating conditions, without de-energising. The unit will withstand a 10ms interruption in the auxiliary power supply, under normal operating conditions, without de-energising. EMC compliance 89/336/EEC Compliance with European Commission Directive on EMC, is claimed via the technical construction file route. The following generic standards were used to establish conformity. EN 50081-2:1994 EN 50082-2:1994 Product Safety 73/23/EEC Generic Emission Standard Part 2: Industrial Environment Generic Immunity Standard Part 2: Industrial Environment Compliance with European Commission Low Voltage Directive

SERVICE MANUAL M220

R8618A Page 21 of 25

EN 61010-1: 1993/A2: 1995 Compliance is demonstrated by reference to generic safety standards. 600V 300V 6.9 Installation category II, pollution degree II Installation category III, pollution degree II

Environmental withstand

6.9.1

Atmospheric environment
Temperature and humidity JVF (DIN 40 040) Reference range of operation Nominal range of operation Storage and transit Humidity Enclosure protection IEC 50529: 1989 0C to 50C -10C to 60C -40C to 70C to 95% non-condensing

IP 52 Polycarbonate. Compliance with UL 94 V0 144x144x125 mm 0.8kg

6.9.2

Construction
Case Dimensions Weight

6.9

External wiring diagrams

u v
1 11 2 Out 1 Out 2 Supply

U V

Comms

Load K L

N Notes: Connect two wire auxiliary supply terminals marked supply if fitted. Out 1/Out 2 are volt-free contact pulse outputs, if fitted.

Figure 16: External wiring diagram: Single phase (1B)

SERVICE MANUAL M220

R8618A Page 22 of 25

u v

u v
1

U V

U V

3 2 Out 1 Out 2 5 Comms 8 Supply

A B C Notes:

Load K L

Connect two wire auxiliary supply to terminals marked 'supply' if fitted. Out 1/Out 2 are volt-free contact pulse outputs, if fitted.

Figure 17: External wiring diagram: 3-phase, 3-wire balanced load (3b)

u v U V k l

1 3 2 Out 1 Out 2 Comms Supply 11

A B C N Notes:

Load K L

Connect two wire auxiliary supply to terminals marked 'supply' if fitted. Out 1/Out 2 are volt-free contact pulse outputs, if fitted.

Figure 18: External wiring diagram: 3-phase, 4-wire balanced load (4b)

SERVICE MANUAL M220

R8618A Page 23 of 25

u v U V

u v U V
1 3 2 5 7 9 8

k l

Out 1Out 2

Comms

Supply

A B C Notes:

Load K L k l

Connect two wire auxiliary supply to terminals marked 'supply' if fitted. Out 1/Out 2 are volt-free contact pulse outputs, if fitted.

Figure 19: External wiring diagram: 3-phase, 3-wire balanced load (3u)

u x X

u x X

u x X

11

1 3 2

4 6 5

7 9 8 11

U U U k l k K L k K L K L Load Notes: Connect two wire auxiliary supply to terminals marked 'supply' if fitted. Out 1/Out 2 are volt-free contact pulse outputs, if fitted. l l
Out 1 Out 2 Comms Supply

A B C N

Figure 20: External wiring diagram: 3-phase, 4-wire unbalanced load (4u)

SERVICE MANUAL M220

R8618A Page 24 of 25

Out

100ms 24V DC Power supply 0V R>100R Pulse receptor

Figure 21: Typical connections for pulse output


6.10 Dimensions

*All dimensions in millimetres.

Figure 22: M220 Dimensions

SERVICE MANUAL M220

R8618A Page 25 of 25

6.11

Power supply, communications and pulsed output connections

Ser. No.: 482 Imp. current: 5A Imp. voltage: 230/400V Frequency: 50Hz Connection: 4U

M220
CAT III
RS485 A B

C
ALL INPUTS 500V max

OUT2

OUT1

Supply: 230V 50Hz 5VA

Figure 23: Power supply, communications and pulsed output connections.

M220 Measurement Centre Service Manual

Appendix

SERVICE MANUAL M220 Appendix

R8618A Contents Page 1 of 2

CONTENTS 1. 2. 2.1 2.2 2.3 2.3.1 2.3.2 3. 3.1 4. 4.1 4.1.1 4.1.2 4.2 4.2.1 4.2.2 4.3 4.3.1 4.3.2 4.4 4.4.1 4.4.2 4.5 4.5.1 4.5.2 4.6 4.6.1 4.6.2 4.6.3 4.7 4.7.1 4.7.2 5. 5.1 6. 7. 8. 8.1 8.2 8.3 8.4 8.5 9. INTRODUCTION TRANSACTIONS Request Response Request - response cycle example Request frame Response frame FRAMING RTU framing SUPPORTED FUNCTIONS AND USAGE 03 read from holding registers request frame Response frame 04 read from input registers Request frame response frame 06 write to a single holding register Request frame Response frame Response frame Request frame Response frame 17 (11 HEX) report slave ID Request frame Response frame 77 (4D HEX) read measurement string Request frame Response frame Value codes 82 (52HEX) re-read output buffer Request frame Response frame ERROR RESPONSES Exception codes MODBUS REGISTER MAP MODBUS DATA TYPES CRCCHECKING AND GENERATING Generating a CRC Placing the CRC into the message CRC generation function High order byte table Low order byte table RELATED DOCUMENTS 1 1 1 1 1 2 2 2 2 3 3 3 3 4 4 4 4 4 5 5 5 5 5 5 6 6 6 6 6 8 8 8 8 9 9 20 21 22 22 23 23 24 25

SERVICE MANUAL M220 Appendix

R8618A Contents Page 2 of 2

SERVICE MANUAL M220 Appendix

R8618A Page 1 of 25

Section 1.

INTRODUCTION

The M220 implements a subset of the AEG Modicon Modbus RTU serial communications standard [reference 1, Modicon Modbus Protocol Reference Guide PI - MBUS - 300 Rev. E]. Modbus is a single master multiple slave protocol suitable for a multi-drop configuration as provided by the RS485 connection. Up to 32 devices can be connected in this way. Single - drop RS232 connection is also possible.

Section 2.

TRANSACTIONS

Communication operates on a master-slave basis where only one device (the master) 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 Device address 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 Function Code Function Code nx8 bit data bytes nx8 bit data bytes Error check Error check Slave to master response:

Ia
Data type 32 bit float

160.00 A = 16000* 10 -2 A FE 00 3E 80 (16)

SERVICE MANUAL M220 Appendix

R8618A 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 Frame Starting Register Slave Address 21 Function code 03 HI LO 00 24 Register Count HI LO 00 02 CRC LO HI

2.3.2

Response Frame Register Data Slave Address 21 Function code 03 Byte Count 04 HI LO HI LO FE 00 3E 80 CRC LO HI

Section 3.

FRAMING

There are two types of message framing for the serial communications, ASCII or RTU. 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 character times (t1-t2-t3-t4 as shown below). The advantage of this mode of framing is that it enables a greater character density and a better data throughput. However, each message must be transmitted in a continuous stream. If a silent interval of more than 1.5 character times occurs before completion of the frame, the device flushes the incomplete message and assumes that the next byte will be the address field of a new message. Start t1-t2-t3-t4 Address 8 bits Function 8 bits Data n x 8 bits CRC Check 16 bits End t1-t2-t3-t4

The Cyclic Redundancy Check (CRC) field is two bytes, containing a 16 bit binary value. The CRC value is calculated by the transmitting device, which appends the CRC to the message. The receiving device recalculates a CRC during receipt of the message, and compares the calculated value to the actual value it received in the CRC field. If the two values are not equal an error results. The CRC-16 calculation is 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 is selected 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 M220 Appendix

R8618A Page 3 of 25

Section 4.

SUPPORTED FUNCTIONS AND USAGE


References (4XXXX memory references) (3XXXX memory references) (4XXXX memory references) 6 characters 1 byte value code (request) Use after broadcast request

Code Code Function DEC HEX 3 4 6 03 04 06 to read from holding registers to read from input registers to write to a single holding register report slave ID read measurement string re-read output buffer

16 10 17 11 77 4D 82 52 4.1

to write to one or more holding registers (4XXXX memory references)

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 slave device 33: Starting Register Slave Address 21 Function Code 03 HI LO 00 09 Register Count HI LO 00 02 CRC LO HI

4.1.2

Response Frame The register data in the response message is packed as two bytes per register, with the binary contents right justified within each byte. For each register, the first byte contains 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 is returned when the data is completely assembled. Here is an example of a response to the query: Register Data Slave Address 21 Function Code 03 Byte Count 04 HI LO HI LO 75 03 42 15 CRC LO HI

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 M220 Appendix

R8618A Page 4 of 25

4.2

04 READ FROM INPUT REGISTERS Reads the binary content of input registers ( 3X references) in the slave. Broadcast is also supported

4.2.1

Request Frame The query message specifies the starting register and quantity ( 1 to 16) of registers to be read. Registers are addressed starting at zero. Here is an example of a request to read registers 30036 ... 30037 from slave device 33: Starting Register Register Count Slave Address 21 Function Code 04 HI LO 00 24 HI LO 00 02 CRC LO HI

4.2.2

Response Frame The register data in the response message is packed as two bytes per register, with the binary contents right justified within each byte. For each register, the first byte contains 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 is returned when the data is completely assembled. Here is an example of a response to the query: Register Data Slave Address 21 Function Code 04 Byte Count 04 HI LO HI LO FE 00 3E 80 CRC LO HI

The contents of register 30036 are shown as the two-byte values of FE 00 hex. The contents 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, the function 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 are addressed 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 slave device 33: Register Address Register Data Slave Address 21 Function Code 06 HI LO 00 0A HI LO 42 15 CRC LO HI

SERVICE MANUAL M220 Appendix

R8618A Page 5 of 25

4.3.2

Response Frame The normal response is an echo of the query, returned after the register contents have been pre-set. Here is an example of a response to the query: Register Address Register Data Slave Address 21 Function Code 06 HI LO 00 0A HI LO 42 15 CRC LO HI

4.4

16 (10 HEX) WRITE TO ONE OR MORE REGISTERS Pre-sets values into a sequence of holding registers (4x references). When broadcast 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 are addressed starting at zero; register 1 is addressed as 0. Here is an example of a request to pre-set two registers starting at 40000 to 41 42 and 43 44 hex (Enter Password ABCD), in slave device 33: Slave Address 21 Function Starting Address Register Count Byte Code 16 HI LO 00 00 HI LO 00 02 04 Register Data 41 42 43 44 CRC Count HI LO HI LO LO HI

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 query shown above. Slave Address 21 Function Code 16 Starting Address HI LO 00 00 Register Count HI LO 00 02 CRC LO HI

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 21 4.5 Code 16 HI LO 00 00 HI LO 00 02 LO HI

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 21 Function Code 11 LO HI

SERVICE MANUAL M220 Appendix

R8618A Page 6 of 25

4.5.2

Response Frame The format of a normal response is shown below: Register Data Slave Address Function Code 21 11 Byte Count 06 HI LO HI LO HI LO 20 4D 30 32 32 30 CRC LO HI

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 Address 21 Function Code 4D Value Code 04 CRC LO HI

4.6.2

Response Frame The ASCII string in the response message is packed as data bytes. The quantity of data bytes depends on the value code. Here is an example of the query: Slave Address 21 Function Code 4D Byte Count 08 String Data 1. 2. 3. 4. 5. 6. 7. 8. 2B 32 31 2E 31 33 35 6B CRC LO HI 49 35

4.6.3

Value Codes The value codes are described in the following table: Value Code DEC 00 01 02 03 04 05 06 07 08 Value Code Hex 00 01 02 03 04 05 06 07 08 Energy counter 1 Energy counter 2 Energy counter c Energy counter d Total Real Power A Phase Real Power B Phase Real Power C Phase Real Power Total Reactive Power 15 15 15 15 8 8 8 8 12 "0000004.46kWh" "0000001.24kvarh" "0000005.71kWh" "0000002.86kvarh" "+21.135k" "+7046.3" "+7037.3" "+7051.1" "1208.7 var L" Measurement Value Byte Count Example String Data

SERVICE MANUAL M220 Appendix

R8618A Page 7 of 25

09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44

09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C

A Phase Reactive Power B Phase Reactive Power C Phase Reactive Power Total

12 12 12 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 7 7 7 7 7 7 7 7 6 7 7 7 6 6 6 6 13

"0400.2 var L" "0406.4 var L" "0400.9 var L" "93.671" "31.227" "31.222" "31.222" "226.06" "226.08" "225.83" "226.27" "21.170k" "7057.3" "7049.0" "7062.8" "+0.998 L" "+0.998 L" "+0.998 L" "+0.998 L" "46.008" "46.008" "46.008" "46.008" "+003.26" "+003.25" "+003.30" "+003.25" "93.67" "+000.00" "+000.01" "-000.01" "000.3" "000.2" "000.24" "000.2" "Pt=+9.818kW"

IA IB IC
Average V VA VB VC Total Apparent Power A Phase Apparent Power B Phase Apparent Power C Phase Apparent Power Total Power Factor Power Factor A Power Factor B Power Factor C Frequency Frequency Frequency Frequency Total Power Angle Power Angle A Power Angle B Power Angle C

IN
Angle AB Angle BC Angle CA Average Vxy VAB VBC VCA Dynamic Demand Value 1

SERVICE MANUAL M220 Appendix

R8618A Page 8 of 25

45 46 47 48 49 50 51 52 53 54 55 4.7

2D 2E 2F 30 31 32 33 34 35 36 37

Dynamic Demand Value 2 Dynamic Demand Value 3 Dynamic Demand Value 4

12 12 12

"Qt=6.504kvar" "St=12.89kVA" "It=56.91 A" "Pt=+11.26kW" "Qt=14.64kvar" "St=18.46kVA" "It=81.01 A" "03.SEP 14:11" "03.SEP 14:10" "03.SEP 14:10" "03.SEP 14:12"

Max Demand Since Reset 1 13 Max Demand Since Reset 2 12 Max Demand Since Reset 3 12 Max Demand Since Reset 4 12 Time Stamp MD 1 Time Stamp MD 2 Time Stamp MD 3 Time Stamp MD 4 12 12 12 12

82 (52 HEX) RE-READ OUTPUT BUFFER This function should be used after the broadcast request. The addressed slave transmits 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 21 Function Code 52 LO HI

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 to the 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 from the master plus 128). The following byte will be an exception code indicating the type 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 is shown below. The request in this example is to read registers 0201H to 0209H. If these addresses are not supported in the slave then the following occurs: Request Message Starting Register Address 01 Function Code 01 HI LO 02 01 Register Count HI LO 00 08 CRC 6D B4

SERVICE MANUAL M220 Appendix

R8618A Page 9 of 25

Exception Response Message Address 01 Function Code 81 Exception Code 02 CRC C1 91

5.1

EXCEPTION CODES

Code 01 02

Name ILLEGAL FUNCTION ILLEGAL DATA ADDRESSES

Meaning The function code transmitted is not one of the functions supported by the slave. The data address received in the request is not an allowable value for the slave. Write to password protected registers. The value referenced in the data field transmitted by the master is not within range for the selected data address. The register count is greater than 16 (functions 03 and 04).

03

ILLEGAL DATA VALUE

06

SLAVE DEVICE BUSY

The slave is engaged in processing a long duration program command. The master should re-transmit the message later when the 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, Register type, 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 add 40000 decimal to the actual address of the register. Contents: Description of parameters assigned to registers. Data Type: UNSIGNED INTEGER SIGNED INTEGER range 0 ... 65535 one 16-bit register range -32768 ... 32767 one 16-bit register

SERVICE MANUAL M220 Appendix

R8618A Page 10 of 25

ASCII TEXT BINARY FLAGS

range 32 ... 159 16-bit registers (two ASCII codes per register) Each bit of a 16-bit register can be used as a binary 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 binary data. 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 factory accessible password constructed from the serial number that allows entry/exit to and from the calibration and configuration settings.

Code

Address

Contents

Data Ind

Values/Dependencies

Reg.Type Min

Max

Step

Pass'

30000 memory ref. 0 0 127` 0

SYSTEM DATA T12 T1 T1 Software version Data Data "MI7130" or "M220" Data

04

30001 30003

Model Number

SERVICE MANUAL M220 Appendix

04

30004

Serial Number

04

30005

Software Ref 1

04 T2 T2 T2 (=-6 if incorrect divider @40028) (1) Data -6 (=-6 if incorrect divider @40027) (1) Data -6 (=-6 if incorrect divider @40026) (1) Data -6 9 9 9

30006

Energy counter 1 exponent

T2

(=-6 if incorrect divider @40025) (1)

Data

-6

1 1 1 1

0 0 0 0

04

30007

Energy counter 2 exponent

04

30008

Counter c exponent

04

30009

Counter d exponent

MEASUREMENTS T3 T3 T3 T3 T6 T6 T6 T6 T6 T6 T6 T6 W var L ( if > 0 ) var C ( if > 0 ) var L ( if > 0 ) var C ( if > 0 ) var L ( if > 0 ) var C ( if > 0 ) var L ( if > 0 ) var C ( if > 0 ) W W W Pulse output 2 Pulse outut 1 Total Import Reactive Energy (default) Data Data Data Data Data Data Data Data Data Data Data Total Export Real Energy (default) Data -99999999 -99999999 -99999999 -99999999 899999999 899999999 899999999 899999999 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0

04

30010 30011

Energy counter 1

04

30012 30013

Energy counter 2

04

30014 30015

Energy counter c

04

30016 30017

Energy counter d

04

30018 30019

Total Real Power

04

30020 30021

A Phase Real Power

04

30022 30023

B Phase Real Power

04

30024 30025

C Phase Real Power

04

30026 30027

Total Reactive Power

04

30028 30029

A Phase Reactive Power

04

30030 30031

B Phase Reactive Power

R8618A

Page 11 of 25

04

30032 30033

C Phase Reactive Power

SERVICE MANUAL M220 Appendix

Code 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04

Address 30034 30035 30036 30037 30038 30039 30040 30041 30042 30043 30044 30045 30046 30047 30048 30049 30050 30051 30052 30053 30054 30055 30056 30057 30058 30059 30060 30061 30062 30063 30064 30065 30066 30067 30068 30069 30070 30071

Contents Total I

Data T5 T5 T5 T5 T5 T5 T5 T5 T5 T5 T5 T5 T7 T7 T7 T7 T1 T1 T1 T1 T2 T2

Ind

Values/Dependencies A A A A V V V V VA VA VA VA

Reg.Type Min Data Data Data Data Data Data Data Data Data Data Data Data Data Data Data Data

Max

Step

Pass' 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

IA IB IC
Average V VA VB VC Total Apparent Power A Phase Apparent Power B Phase Apparent Power C Phase Apparent Power Total Power Factor Power Factor A Power Factor B Power Factor C Frequency Frequency Frequency Frequency Total Power Angle Power Angle A

mHz mHz mHz mHz 0.01 deg 0.01 deg

Data Data Data Data Data Data

00.000 00.000 00.000 00.000 -180.00 -180.00

65.535 65.535 65.535 65.535 +179.99 +179.99

0.001Hz 0.001Hz 0.001Hz 0.001Hz 0.01deg 0.01deg

0 0

Page 12 of 25

0 0 0 0

R8618A

SERVICE MANUAL M220 Appendix

Code 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04 04

Address 30072 30073 30074 30075 30076 30077 30078 30079 30080 30081 30082 30083 30084 30085 30086 30087 30088 30089 30090 30091 30092 30093 30094 30095 30096 30097 30098 30099 30100 30101 30102 30103 30104 30105 30106 30107 30108 30109 30110

Contents Power Angle B Power Angle C IN Angle AB Angle BC Angle CA Average Vxy VAB VBC VCA Dynamic Demand Value 1 Dynamic Demand Value 2 Dynamic Demand Value 3 Dynamic Demand Value 4 Max Demand Since Reset 1 Max Demand Since Reset 2 Max Demand Since Reset 3 Max Demand Since Reset 4 Time Stamp MD 1 Time Stamp MD 2 Time Stamp MD 3 Time Stamp MD 4

Data T2 T2 T5 T2 T2 T2 T5 T5 T5 T5 T6 T6 T6 T6 T6 T6 T6 T6 T8 T8 T8 T8

Ind

Values/Dependencies 0.01 deg 0.01 deg A 0.01 deg 0.01 deg 0.01 deg V V V V Total Real Power Total Absolute Reactive Power Total Apparent Power Total I Total Real Power Total Absolute Reactive Power Total Apparent Power Total I

Reg.Type Min Data Data Data Data Data Data Data Data Data Data Data Data Data Data Data Data Data Data Data Data Data Data -180.00 -180.00 -180.00 -180.00 -180.00

Max +179.99 +179.99

Step 0.01deg 0.01deg

Pass' 0 0 0

+179.99 +179.99 +179.99

0.01deg 0.01deg 0.01deg

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Page 13 of 25

0 0 0 0

R8618A

Code

Address

Contents

Data

Ind

Values/Dependencies

Reg.Type Min

Max

Step

Pass'

SERVICE MANUAL M220 Appendix

04 16 16 16 16

30111 40000 40001 40002 40004 40005 40006 40007 40008

Time into Period (minutes) Enter password L1 & L2 & BP Enter Configuration password Set password level 1 Set password level 2

T1 T11 T12 T11 T11 T9 T10 1 2 4 8 256 512 1024 Reset counter 1 Reset counter 2 Reset pulse output counter 1 Reset pulse output counter 2 Synchronise MD Reset last period MD Reset MD values A..Z A..Z A..Z A..Z

Data write only write only write only write only

0 0 0 1 2 1 1

40000 memory ref.

3,6,16 40009 400010 Time 3,6,16 40011 40012 6 40013 Date Reset counter & MD

write only

3 3 3,6

40014 40015 40016

Calibration voltage in V Calibration current in A/10 Voltage Tr. Primaries in V/10 bit # 0..13 bit # 14..15
(4)

T1 T1 (2300 for 230V) 1.. 15999 0..3


(5)

read only read only 10A/10=1A

1V 50A/10=5A 0.1A 0.1V 1 0 10 1 15999 3 775 4000 1 1 1V, 5V 2 2 2

Page 14 of 25

Unsigned integer value Unsigned exponent

R8618A

3,6 3,6

40017 40018

Voltage Tr. Secondaries in V Current Tr. Ratio (6)

T1 T1

Code

Address

Contents

Data

Ind

Values/Dependencies

Reg.Type

Min

Max

Step

Pass'

SERVICE MANUAL M220 Appendix

3,6

40019

Connection Mode

(7)

1 9 25 5 7

Single phase 3 phase 3 wire balanced 3 phase 4 wire balanced 3 phase 3 wire unbalanced 3 phase 4 wire unbalanced 1200 baud 2400 baud 4800 baud 9600 baud 19200 baud 2 stop bit (0 - 1 stop bit) Odd parity (0 - even parity) Parity (0 - no parity) 7 bit (0 - 8 bit) read only >10ms response time 1 Disable Time constant (window period; interval of sub-period) 247 1

3,6

40020

Communication Settings

0 1 2 3 4 8 16 32 64 128

3,6 3,6

40021 40022

Communication Address MD Setting bit # 0..7

1..247 0 1..255

2 2

Page 15 of 25

bit # 8..15

0 1 2..15

Thermal function Fixed window Sliding window(# of periods) Enable quadrant 1 2

R8618A

3,6

40023

Counter mode 2, bit # 0.. 7

(3)

SERVICE MANUAL M220 Appendix

Code

Address

Contents

Data 2 4 8

Ind

Values/Dependencies Enable quadrant 2 Enable quadrant 3 Enable quadrant 4 Absolute value Inverted value Reactive energy (0 - active) Enable quadrant 1 Enable quadrant 2 Enable quadrant 3 Enable quadrant 4 Absolute value Inverted value Reactive energy (0 - active) Same as counter mode Same as counter 2 mode Same as counter 1 mode

Reg.Type Min

Max

Step

Pass'

32 64 128 Counter mode1, bit # 8..15 (3) 256 512 1024 2048 8192 16384 32768 3,6 40024 Pulse output mode Output mode 2, bit# 0 .. 7 (3) Output mode 1, bit# 8 .. 15 3,6 3,6 3,6 3,6 40025 40026 40027 40028 40029 40079 3,6 40080 Starting current T1 Counter 1 divider Counter 2 divider Counter c divider Counter d divider
(3)

T1 T1 T1 T1

1, 10, 100, 1000, 10000(1) 1, 10, 100, 1000, 10000(1) 1, 2, 5, 10, 20, ..., 50000(1) 1, 2, 5, 10, 20, ..., 50000(1) RESERVED 320 for 0.2%

2 2

Page 16 of 25

2 2

R8618A

SERVICE MANUAL M220 Appendix

Code 3,6 3,6

Address 40081 40082

Contents Quartz frequency correction Calibration status

Data T2 T1 1 2 4 8

Ind

Values/Dependencies

Reg.Type Min -128

Max 127

Step 1

Pass' 3 3

Ia, range HI Ib, range HI Ic, range HI Ia, range LO Ib, range LO Ic, range LO
Va Vb Vc Power angle A, range HI Power angle B, range HI Power angle C, range HI Power angle A, range LO Power angle B, range LO Power angle C, range LO

16 32 64 128 256 512 1024 2048 4096 8192 16384

40083

Calibration request

T1

1 2 4

Calibrate voltage inputs Calibrate current inputs Calibrate phase angle English Francais

write only

Page 17 of 25

R8618A

3,6

40101

Language

T1

0 1

SERVICE MANUAL M220 Appendix

Code

Address

Contents

Data

Ind

Values/Dependencies

Reg.Type Min

Max

Step

Pass'

2 3 3,6 16 16 40102 40110 40111 40112 40113 Active access level Set Energy counter 1(2) Set Energy counter 2 (2) T1 T3 T3

Deutch Espanol Only 0 can be written Counter 1 must be halted Counter 2 must be halted 0 write only -99999999 write only -99999999 3 899999999 899999999 1 1 1 0 2 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 show correct 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. The counter is halted when all quadrants are disabled (Register address 40023) Cross-reference M300 and M220 energy counters setting M220 counter 2 counter 1 counter 2 counter 1 counter 2 counter 1 counter 2 counter 1 address 40023 address 40023 address 40023 address 40023 address 40023 address 40023 address 40023 address 40023 set bit 1, 2 (kWh with - sign) set bit 9, 10 (kWh with - sign) set bit 0, 3 (kWh with + sign) set bit 8, 11 (kWh with + sign) set bit 0, 1, 7 (kvarh with + sign) set bit 8, 9, 15 (kvarh with + sign) set bit 2, 3, 7 (kvarh with - sign) set bit 10, 11, 15 (kvarh with - sign)

Note 2: Note 3:
M300 Import Energy (kvarh) Export Energy (kWh) Import Energy (kWh) Export Energy (kvarh)

Page 18 of 25

Note 4: Note 5:

All values except 0 are acceptable. The exponent (bits 14 - 15) effect the energy counter decimal places. 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.

R8618A

SERVICE MANUAL M220 Appendix

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. bit bit bit bit bit 0: set: Ia is connected; reset: Ia is not connected (Ia, Pa, Qa, Sa are 0) 1: set: Ib is connected; reset: Ib is not connected (Ib, Pb, Qb, Sb are 0) 2: set: Ic is connected; reset: Ic is not connected (Ic, Pc, Qc, Sc are 0) 3: set: 3 phase balanced (Pt=Pa*3); reset: unbalanced or single phase 4: set: 4 wire; reset: 3 wire (only for 3 ohase balanced modes)

Note 7: Connection Mode value

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 Value 5 Value 7 Value 9 Value 25 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. single phase 3u 4u 3b 4b

Page 19 of 25

R8618A

SERVICE MANUAL M220 Appendix

R8618A Page 20 of 25

Section 7.

MODBUS DATA TYPES

Registers defined in the Modbus database will define data as one of the data types described in the following table: Type T1 T2 T3 Value/Bit Mask Unsigned Value (16 bit) Example: 12345 stored as 12345 = 3039 (16) Signed Value (16 bit) Example: 12345 stored as -12345 = CFC7(16) Signed Long Value (32 bit) Example: 123456789 stored as 123456789 = 075B CD 15 (16) T4 T5 Bit# 31..24 Bit# 23..00 T6 Bit# 31..24 bit# 23..00 T7 bit# 31..24 bit# 23..16 bit# 15..00 T8 bit# 31..24 bit# 23..16 bit# 15..08 bit# 07..00 Text String Two characters per 16 bit register. Unsigned Measurement (32 bit) Decade Exponent(Signed 8 bit) Binary Unsigned Value (24 bit) Example: 123456*10 -3 stored as FD01 E240(16) Signed Measurement (32 bit) Decade Exponent (Signed 8 bit) Binary Signed value (24 bit) Example: - 123456*10 -4 stored as FCFE 1DC0(16) Power Factor (32 bit) Sign: Import/Export (00/FF) Sign: Inductive/Capacitive (00/FF) Unsigned Value (16 bit), 4 decimal places Example: 0.9876 CAP stored as 00FF 2694(16) Time stamp (32 bit) Minutes 00 - 59 (BCD) Hours 00 - 23 (BCD) Day of month 01 - 31 (BCD) Month of year 01 - 12 (BCD) Example: 15:42, 1. SEP stored as 4215 0109(16) Description

SERVICE MANUAL M220 Appendix

R8618A Page 21 of 25

T9 bit# 31..24 bit# 23..16 bit# 15..08 bit# 07.00 T10 bit# 31..24 bit# 23..16 bit# 15..00 T11 T12

Time (32 bit) 1/100s 00 - 99 (BCD) Seconds 00 - 59 (BCD) Minutes 00 - 59 (BCD) Hours 00 - 24 (BCD) Example: 15:42:03.75 stored as 7503 4215(16) Date (32 bit) Day of month 01 - 31 (BCD) Month of year 01 - 12 (BCD) Year (unsigned integer) 1998..4095 Example: 10, SEP 1998 stored as 1009 07CE(16) Text String 4 characters Two characters per 16 bit register 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 CRC method. The CRC field checks the contents of the entire message. It is applied regardless of any parity check method used for the individual characters of the message. The CRC field is two bytes, containing a 16-bit binary value. The CRC value is calculated by the transmitting device, which appends the CRC to the message. The receiving device recalculates a CRC during receipt of the message, and compares the calculated value to the actual value it received in the CRC field. If the two values are not equal, an error results. The CRC is started by first pre-loading a 16-bit register to all 1's. Then a process begins of applying successive eight-bit bytes of the message to the current contents of the register. Only the eight bits of data in each character are used for generating the CRC. Start and stop bits, and the parity bit, do not apply to the CRC. During generation of the CRC, each eight-bit character is exclusive ORed with the register 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 is extracted and examined. If the LSB was a 1, the register is then exclusive ORed with 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, and the process repeats for eight more shifts as described above. The final contents of the register, after all the bytes of the message have been applied, is the CRC value.

SERVICE MANUAL M220 Appendix

R8618A 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 byte of 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 the MSB. Extract and examine the LSB. Step 4 If the LSB is 0, repeat Step 3 (another shift). If the LSB is 1, Exclusive OR the CRC register with the polynomial value A001 hex (1010 0000 0000 0001). Step 5 Repeat Steps 3 and 4 until eight shifts have been performed. When this is done, a complete eight-bit byte will have been processed. Step 6 Repeat Steps 2...5 for the next eight-bit byte of the message. Continue doing 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 must be 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 byte will 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 is given below. Example: An example of a C language function performing CRC generation is shown on the following 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 the 16-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 by calculating 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 the message for transmission. The function takes two arguments: unsigned char *puchMsg; A pointer to the message buffer containing binary data to be used for generating the CRC The quantity of bytes in the message buffer

unsigned short usDataLen;

The function returns the CRC as a type unsigned short.

SERVICE MANUAL M220 Appendix

R8618A Page 23 of 25

8.3

CRC GENERATION FUNCTION


unsigned short CRC16 (puchMsg, usDataLen) unsigned char *puchMsg; unsigned short usDataLen; { 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 - -) { uIndex = uchCRCHi ^ *puchMsgg++ ; /* calculate the CRC */ uchCRCHi = uchCRCLo ^ auchCRCHi (uIndex) ; uchCRCLo = auchCRCLo (uIndex) ; } return (uchCRCHi <<8 I uchCRCLo) ; } */ */ */ /* message to calculate CRC upon */ /* quantity of bytes in message */

/* pass through message buffer */

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 M220 Appendix

R8618A 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 M220 Appendix

R8618A 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 1 PI-MBUS-300 Rev. E

Title AEG Modicon Modbus Protocol Reference Guide

SERVICE MANUAL M220

R8618A

REPAIR FORM
Please complete this form and return it to ALSTOM T&D Protection & Control Limited with the equipment to be repaired. This form may also be used in the case of application queries.

ALSTOM T&D Protection & Control Limited St. Leonards Works Stafford ST17 4LX, England For: After Sales Service Department ________________________ Model No: Serial No: __________________ __________________

Customer Ref:

ALSTOM Contract Ref: ________________________ Date: 1. ________________________

What parameters were in use at the time the fault occurred? AC volts DC volts AC current Frequency _____________ Main VT/Test set _____________ Battery/Power supply _____________ Main CT/Test set _____________

2. 3. 4.

Which type of test was being used? ____________________________________________ Were all the external components fitted where required? (Delete as appropriate.) List the relay settings being used ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ Yes/No

5.

What did you expect to happen? ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________

continued overleaf

SERVICE MANUAL M220

R8618A

6.

What did happen? ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________

7.

When did the fault occur? Instant Time delayed By how long? Yes/No Yes/No ___________ Intermittent Yes/No

(Delete as appropriate).

8.

What indications if any did the relay show? ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________

9.

Was there any visual damage? ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________

10. Any other remarks which may be useful: ____________________________________________________________________________ ____________________________________________________________________________ ____________________________________________________________________________

______________________________________ Signature ______________________________________ Name (in capitals)

_______________________________________ Title _______________________________________ 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 England Tel: 44 (0) 1785 223251 Fax: 44 (0) 1785 212232 Email: pcs.enquiries@tde.alstom.com 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.

Potrebbero piacerti anche