Professional Documents
Culture Documents
FIRMWARE DESIGN
FD
FD
Firmware Design P34x/EN FD/I76
CONTENTS
(FD) 9-
2. HARDWARE MODULES 6
2.1 Processor board 6
2.2 Internal communication buses 6
2.3 Input module 6
2.3.1 Transformer board 7
FD
2.3.2 Input board 7
2.3.3 Universal opto isolated logic inputs 8
2.4 Power supply module (including output relays) 8
2.4.1 Power supply board (including EIA(RS)485 communication interface) 9
2.4.2 Output relay board 9
2.4.3 High break relay board 10
2.4.3.1 High break contact applications 11
2.5 RTD board 11
2.6 IRIG-B board modulated or demodulated board (optional) 11
2.7 Second rear communications board 11
2.8 Ethernet board 12
2.9 Current loop input output board (CLIO) 13
2.10 Mechanical layout 16
2.11 P391 rotor earth fault measuring/coupling unit 16
2.11.1 Injection resistor boards 17
2.11.2 Power supply, control, & measurement board 17
2.11.3 Mechanical layout P391 18
P34x/EN FD/I76 Firmware Design
3. RELAY SOFTWARE 19
3.1 Real-time operating system 19
3.2 System services software 19
3.3 Platform software 20
3.3.1 Record logging 20
3.3.2 Settings database 20
3.3.3 Database interface 20
3.4 Protection and control software 20
3.4.1 Overview - protection and control scheduling 21
3.4.2 Signal processing 21
3.4.3 Frequency response 21
3.4.4 Programmable scheme logic 22
3.4.5 Function key interface (P345 only) 23
3.4.5.1 PSL data 23
3.4.6 Event, fault & maintenance recording 23
3.4.7 Disturbance recorder 24
FD
FIGURES
Battery
Non volatile Flash
backed-up memory SRAM
EPROM
SRAM
Timing data
Fibre optic
rear comms
port optional
FD
Power supply, rear comms Parallel data bus
data, output relay status Digital input values
Output relay contacts (x7)
Opto-isolated
inputs
P0126ENb
1.1.8 P391 rotor earth fault injection, coupling and measurment unit
The P391 rotor earth fault protection device injects a DC voltage into the rotor circuit; the
polarity of the voltage is reversed at low frequencies and the frequency is selectable by the
user through a jumper link inside the device, 0.25Hz, 0.5Hz, 1 Hz. The voltage source is
coupled to the excitation circuit via high resistance resistors. It is connected to the earthing
brush of the rotor via a low resistance measuring shunt. The P391 includes a watchdog
contact to indicate any fault in the device. It also includes a 0-20mA current loop output of
the resistance measurement which is connected to the P34x 0-20mA current loop input to
provide rotor earth fault alarm and trip stages.
2. HARDWARE MODULES
The relay is based on a modular hardware design where each module performs a separate
function within the relay operation. This section describes the functional operation of the
various hardware modules.
Anti-alias filters
Low 8 digital inputs
Diffn Optical Optical
VT to pass 8
single isolator isolator
filter
3/4 voltage inputs
Transformer board
Noise 8 Noise
4 4 4 filter filter
board
Input
Parallel bus
Buffer
Diffn Low
VT to pass
single filter
Diffn Low
CT to pass
Multiplexer
single filter
16-bit Serial
FD
16:1
Buffer
ADC interface
Serial sample
data bus
Sample
control Trigger from processor
board
Calibration
E2 PROM
Parallel bus
P0127ENc
optical isolators for the connection of up to eight digital input signals. The opto-isolators are
used with the digital signals for the same reason as the transformers with the analog signals;
to isolate the relays electronics from the power system environment. A 48V field voltage
supply is provided at the back of the relay for use in driving the digital opto-inputs. The input
board provides some hardware filtering of the digital signals to remove unwanted noise
before buffering the signals for reading on the parallel data bus. Depending on the relay
model, more than 8 digital input signals can be accepted by the relay. This is achieved by
the use of an additional opto-board that contains the same provision for 8 isolated digital
inputs as the main input board, but does not contain any of the circuits for analog signals
which are provided on the main input board.
This lower value eliminates fleeting pick-ups that may occur during a battery earth fault,
when stray capacitance may present up to 50% of battery voltage across an input.
Each input also has selectable filtering which can be utilized. This allows use of a pre-set
FD filter of cycle which renders the input immune to induced noise on the wiring: although this
method is secure it can be slow, particularly for intertripping. This can be improved by
switching off the cycle filter in which case one of the following methods to reduce ac noise
should be considered. The first method is to use double pole switching on the input, the
second is to use screened twisted cable on the input circuit.
Note: The model number suffix letter refers to the hardware version.
The relays are driven from the 22V power supply line. The relays state is written to or read
from using the parallel data bus. Depending on the relay model, more than seven output
contacts may be provided, through the use of up to three extra relay boards. Each additional
relay board provides a further seven or eight output relays.
P34x/EN FD/I76 Firmware Design
databus on off
control input
MOSFET reset
relay contact
closed
FD
3.5ms + contact bounce 3.5ms
load current
P1981ENa
Courier always
Modulated or
Demodulated IRIG-B
P1980ENa
The I/O connectors accommodate wire sizes in the range 1/0.85mm (0.57mm2) to 1/1.38mm
(1.5mm2) and their multiple conductor equivalents. The use of screened cable is
recommended. The screen terminations should be connected to the case earth of the relay.
Basic Insulation (300V) is provided between analog inputs/outputs and earth and between
analog inputs and outputs. However, there is no insulation between one input and another
or one output and another.
FD
Firmware Design P34x/EN FD/I76
Inputs
0 - 10/0 - 20/4 - 20mA channel 1
Screen channel 1 0 - 1mA channel 1
Common channel 1
FD
A power supply watchdog relay provides 1 changeover contact. These are accessible via
terminal numbers C9, C10, and, C12 with the latter being the common contact.
Terminal C5 of the PCB provides the low frequency voltage output (30V DC Square wave
output at 0.25Hz, 0.5Hz, or 1Hz depending on injection frequency selected) that connects to
the injection resistor boards and then to the generator field winding. The injection voltage
frequency is selectable via an internal jumper on the PCB.
Terminal 6 provides the earth fault current return path from the generators earthing / FD
grounding brush.
The returned fault current which represents the field winding fault resistance is fed through a
measuring resistance, through a low pass filter, and conditioning circuit. The measured
value is then converted to an output current in the range of 0-20mA depending on the level
of fault resistance to earth/ground in the generator field winding. This current output is
available at terminals C17 & C18 of the board.
The output current circuit is classed as an Extra Low Voltage (ELV) circuit and is safe to
touch under both normal operational use and single fault conditions.
The output current from terminals C17 & C18 is designed to be connected to the P342/3/4/5
relays 0-20mA CLIO input circuit which converts the current input back to a resistance
representing the generator field winding fault resistance. The P342/3/4/5 protection then
uses this resistance value to execute its rotor earth fault protection application.
P34x/EN FD/I76 Firmware Design
FD
Firmware Design P34x/EN FD/I76
3. RELAY SOFTWARE
The relay software was introduced in the overview of the relay at the start of this section.
The software can be considered to be made up of four sections:
Protection
Programable & task
fixed scheme logic
Platform Software
Fourier signal Protection
Event, fault, Remote
processing algorithms
disturbance, communications
maintenance record interface -
logging IEC60870-5-103
Supervisor task
Protection & control settings
Settings Remote
communications
database
interface - Modbus
Sampling function -
copies samples into
2 cycle buffer Control of output contacts and Front panel Local & Remote
programmable LEDs interface - LCD & communications
keypad interface - Courier
P0128ENa
To control the logging of all records that are generated by the protection software,
including alarms and event, fault, disturbance and maintenance records.
To store and maintain a database of all of the relays settings in non-volatile memory.
To provide the internal interface between the settings database and each of the relays
user interfaces, i.e. the front panel interface and the front and rear communication ports,
using whichever communication protocol has been specified (Courier, MODBUS,
IEC60870-5-103 and DNP3.0).
P1124ENa
NOTE: The PSL DATA column information is only supported by Courier and
MODBUS, but not DNP3.0 or IEC60870-5-103.
FD
Firmware Design P34x/EN FD/I76
The integrity of the battery backed-up SRAM that is used to store event, fault and
disturbance records
The voltage level of the field voltage supply that is used to drive the opto-isolated inputs
The flash EPROM containing all program code and language text is verified by a
checksum
The code and constant data held in SRAM is checked against the corresponding data in
flash EPROM to check for data corruption
The SRAM containing all data other than the code and constant data is verified with a
checksum
The integrity of the digital signal I/O data from the opto-isolated inputs and the relay
contacts, is checked by the data acquisition function every time it is executed. The
operation of the analog data acquisition system is continuously checked by the
acquisition function every time it is executed, by means of sampling the reference
voltage on a spare multiplexed channel
FD
The operation of the RTD board is checked by reading the temperature indicated by the
reference resistors on the two spare RTD channels
The operation of the IRIG-B board is checked, where it is fitted, by the software that
reads the time and date from the board
The operation of the Ethernet board is checked, where it is fitted, by the software on the
main processor card. If the Ethernet board fails to respond an alarm is raised and the
card is reset in an attempt to resolve the problem
In the unlikely event that one of the checks detects an error within the relays subsystems,
the platform software is notified and it will attempt to log a maintenance record in battery
backed-up SRAM. If the problem is with the battery status, the RTD board, CLIO board or
the IRIG-B board, the relay will continue in operation. However, for problems detected in
any other area the relay will initiate a shutdown and re-boot. This will result in a period of up
to 5 seconds when the protection is unavailable, but the complete restart of the relay
including all initializations should clear most problems that could occur. As described above,
an integral part of the start-up procedure is a thorough diagnostic self-check. If this detects
the same problem that caused the relay to restart, i.e. the restart has not cleared the
problem, then the relay will take itself permanently out of service. This is indicated by the
Healthy LED on the front of the relay, which will extinguish, and the watchdog contact that
will operate.
Primary Self Tests
User Boot
Bus Integrity SRAM Test
Firmware Design
Check
Bus Reset Test Critical/Major Secondary Test Fault
Fail
2) Log Maintenance Record
Start-up Terminated
Relay Lockout
Error Code Message
Healthy LED is off
Check
Field Voltage Status Trivial/Minor Secondary Test Fault
Fail
3) Log Maintenance Record
Continues Start-up Sequence
1) Critical, Primary Self Test Error Messages Error Message
Error Message on Healthy LED is on
Description Yellow Alarm LED is Flashing
User Interface
SRAM Fail SRAM Test Error 2) Critical, Secondary Self Test Error Messages 3) Trivial, Secondary Power on Self Tests Alarm Indications
Flash Fail Flash test error detected in the flash Error Code Description Alarm Description
(Checksum) structure
Code Verify Fail Error in code comparison test flash 0x0C170017 The secondary self tests detected an error Battery Failure The secondary self tests detected battery
in the Battery Backed SRAM (BBRAM) self test has failed
Watchdog Fail Watchdog circuit fails to operate The secondary self tests detected an The secondary self tests detected Field
0x0C170018 error in the Bus Circuit Field Volt Fail Voltage failure
P1625ENa
(FD) 9-27
P34x/EN FD/I76
FD
FD
Data SRAM Test
(FD) 9-28
Watchdog Contact
Battery Status Test
Pass
The continuous self-tests detected Battery Failure The secondary self tests detected
0x0C1600Bn an error in relay card n (number from 0) battery self test has failed
The continuous self-tests detected The secondary self tests detected
0x01600Cn an error in opto card n (number from 0) Field Volt Fail
Field Voltage failure
P1626ENa
MiCOM P342, P343, P344, P345 & P391
Firmware Design