Download Software Spec ANTRARES String Power Module_v1.1

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Decibel wikipedia , lookup

Three-phase electric power wikipedia , lookup

Rectifier wikipedia , lookup

Islanding wikipedia , lookup

Power factor wikipedia , lookup

Wireless power transfer wikipedia , lookup

Standby power wikipedia , lookup

Fault tolerance wikipedia , lookup

Buck converter wikipedia , lookup

Pulse-width modulation wikipedia , lookup

History of electric power transmission wikipedia , lookup

Audio power wikipedia , lookup

Electric power system wikipedia , lookup

Voltage optimisation wikipedia , lookup

Amtrak's 25 Hz traction power system wikipedia , lookup

Alternating current wikipedia , lookup

Electrification wikipedia , lookup

Rectiverter wikipedia , lookup

Power engineering wikipedia , lookup

Power over Ethernet wikipedia , lookup

Power supply unit (computer) wikipedia , lookup

Mains electricity wikipedia , lookup

Switched-mode power supply wikipedia , lookup

Power supply wikipedia , lookup

AC adapter wikipedia , lookup

Immunity-aware programming wikipedia , lookup

Transcript
JH
NIKHEF
NIK HEF
Software specification
String Power Module
Reference :
3 SCO 01 06A
Authors :
E.Heine, PBF group B.V.
Summary :
This note describes the software specification to control the
SPM
Status of document :
Preliminary
Avanced
x
Approved
Laboratory
Project
Date
Pages Number
NIKHEF
1/10ème Km2
23/04/2002
0/14
Software specification
ANTARES String Power Module
Version:
Date:
1.1 Final
22-April-2002
Version
0.1
0.2
0.3
Date
15-May-2001
31-May-2001
25-July-2001
0.4
0.5
2-Aug.-2001
28-Aug.-2001
0.6
11-Oct.-2001
0.7
1.0
1.1
15-Oct-2001
20-Nov-2001
22-Apr-2002
Changes
Creation
Changed after first review
Changed MODBUS
Communication functions
Changed some typo’s
Removal of AC leak current,
Added 48V register value,
Changed register location for
U AC in
9600bd to 19k2 update,
Described ‘processing time’
(Transmit/Receive switching)
Minor changes
Final version
Expanded digits off conversion
factors
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
Remarks
23-4-2002
Page 2 van 14
1
OPEN ISSUES ..................................................................................................4
1.1
2
REFERENCES ................................ ................................ ............................... 4
COMMUNICATION .......................................................................................5
2.1
2.2
2.3
2.4
COMMUNICATION PROTOCOL................................ ................................ ....... 5
TRANSMISSION MODE................................ ................................ .................. 5
COMMUNICATION SETTINGS ................................ ................................ ........ 5
COMMUNICATION INTERFACE ................................ ................................ ...... 5
3
FUNCTION REQUIREMENTS......................................................................6
4
PROTOCOL SETTINGS.................................................................................7
4.1
SLAVE ADDRESS ................................ ................................ .......................... 7
4.2
COMMAND TABLE ................................ ................................ ....................... 7
4.3
DATA STRUCTURES ................................ ................................ ...................... 7
4.3.1
Power Supply information...................................................................7
4.3.2
Power Supply status ............................................................................9
4.3.3
Power Supply control........................................................................11
4.3.4
String Power Module exception status...............................................12
4.4
RANGES, REPRESENTATION AND SCALES ................................ ................... 12
5
FUNCTIONAL BEHAVIOUR ......................................................................13
5.1
5.2
5.3
5.4
5.5
START-UP SITUATION ................................ ................................ ................. 13
NORMAL BEHAVIOUR................................ ................................ ................. 13
AUTONOMOUS BEHAVIOUR ................................ ................................ ........ 13
ERROR BEHAVIOUR ................................ ................................ .................... 13
CONTROLLER EXCEPTION BEHAVIOUR ................................ ........................ 14
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 3 van 14
1 Open Issues
-
None
1.1 References
[MODBUS]
MODBUS protocol document
http://www.modicon.com/techpubs/toc7.html
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 4 van 14
2 Communication
2.1 Communication Protocol
The communication protocol used to control the power module and retrieve
information is MODBUS. See [MODBUS] for detail on MODBUS protocol.
2.2 Transmission Mode
The transmission mode used will be RTU-mode.
2.3 Communication Settings
The communication settings will be: 19200 baud, 1startbit, and 8 data bits, no parity
bits, 2 stop bits.
2.4 Communication Interface
A RS-485 serial interface will be used to communicate with the controller.
For allowing the Master to switch from Transmit to Receiving mode, an internal
processing time is build in the controller. The processing time is 25mSec.
This means that when a Master sends a message send to the controller, the controller
will respond at least 25msec later (message decoding time must be added to this
number).
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 5 van 14
3 Function requirements
The requirements of the controller are:
- Measure all outgoing voltages
- Measure all outgoing current
- Measure AC input voltage
- Measure temperature of all Power Supply blocks
- Measure AC-leak current
- Measure DC-leak current
- Switch 380 volt Power Supply on/off
- Switch Power Supplies off when the AC-input voltage drops below 340 volt1
- Switch Power Supplies off when the DC-input voltage drops below 340 volt
- Switch Power Supply off when temperature raises to 115º C
- Switch Power Supply off when current raises to 0,725 A
- Switch Power Supplies on if no communication is done within 10 minutes
(only after a start-up)
1
To avoid a jitter situation, the Power Supplies can only be switched on when the AC input voltageis
equal or above 360 volt and will be switched off when the input voltage drops below 340 volt.
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 6 van 14
4 Protocol settings
4.1 Slave address
The slave address of the controller will be:
Name
Value
Slave ID 0x30 (48d)
4.2 Command Table
The following commands are implemented in the controller:
Function Code Description
03
Read Holding Registers
04
Read Input Registers
06
Preset Single Register
07
Read Exception Status
4.3 Data structures
4.3.1 Power Supply information
The information fields are defined as:
Register Address Field Name
30001
0x0000
U1
30002
0x0001
U2
30003
0x0002
I1
30004
0x0003
I2
30005
0x0004
Temp1
30006
0x0005
U3
30007
0x0006
U4
30008
0x0007
I3
30009
0x0008
I4
30010
0x0009
Temp2
30011
0x000A U5
30012
0x000B
U6
30013
0x000C
I5
30014
0x000D I6
30015
0x000E
Temp3
30016
0x000F
DC_leak
30017
0x0010
U48
30018
0x0011
UAC_in
30019
0x0012
UAC_asym
Description
Power Supply 1 Voltage
Power Supply 2 Voltage
Power Supply 1 Current
Power Supply 2 Current
Power Supply Block 1 temperature
Power Supply 3 Voltage
Power Supply 4 Voltage
Power Supply 3 Current
Power Supply 4 Current
Power Supply Block 2 temperature
Power Supply 5 Voltage
Power Supply 6 Voltage
Power Supply 5 Current
Power Supply 6 Current
Power Supply Block 3 temperature
DC leak current
48v Voltage
AC input voltage
AC input asymmetry w.r.t ground
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 7 van 14
An example of a request to read the information of power supplies on block 3.
Query:
Field Name
Slave Address
Function Code
Starting Address High
Starting Address Low
Number of points High
Number of points Low
Error Check (CRC) Low
Error Check (CRC) High
Data value (Hex)
0x30
0x04
0x00
0x0A
0x00
0x05
0x-0x--
Description
Slave Address
Read Input Registers
High Address
Low Address
Nr of points High
Nr of points Low
CRC Checksum Low
CRC Checksum High
Response:
Field Name
Slave Address
Function Code
Byte Count
Data High (Register 30011)
Data Low (Register 30011)
Data High (Register 30012)
Data Low (Register 30012)
Data High (Register 30013)
Data Low (Register 30013)
Data High (Register 30014)
Data Low (Register 30014)
Data High (Register 30015)
Data Low (Register 30015)
Error Check (CRC) Low
Error Check (CRC) High
Data value (Hex)
0x30
0x04
0x0A
0x-0x-0x-0x-0x-0x-0x-0x-0x-0x-0x-0x--
Description
Slave Address
Read Input Registers
Nr of Data Bytes
Power Supply 5 Voltage High
Power Supply 5 Voltage Low
Power Supply 6 Voltage High
Power Supply 6 Voltage Low
Power Supply 5 Current High
Power Supply 5 Current Low
Power Supply 6 Current High
Power Supply 6 Current Low
Power Supply Block 3 temp. High
Power Supply Block 3 temp. Low
CRC Checksum Low
CRC Checksum High
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 8 van 14
4.3.2 Power Supply status
The status fields are defined as:
Register Address Field Name
40001
0x0000 Status PSB1
Description
Power Supply Block1 status
bit 15 .. 7 Not Used
bit 6: Power Supply 2 Temperature failure
0 = No temperature failure
1 = Temperature failure
bit 5: Power Supply 2 Overcurrent failure
0 = No overcurrent
1 = Overcurrent failure
bit 4: Power Supply 2 Status
0 = Off
1 = On
bit 3: Not used
bit 2: Power Supply 1 Temperature failure
0 = No temperature failure
1 = Temperature failure
bit 1: Power Supply 1 Overcurrent failure
0 = No overcurrent
1 = Overcurrent failure
bit 0: Power Supply 1 Status
0 = Off
1= On
40002
0x0001
Status PSB2
Power Supply Block2 status
bit 15 .. 7 Not Used
bit 6: Power Supply 4 Temperature failure
0 = No temperature failure
1 = Temperature failure
bit 5: Power Supply 4 Overcurrent failure
0 = No overcurrent
1 = Overcurrent failure
bit 4: Power Supply 4 Status
0 = Off
1 = On
bit 3: Not used
bit 2: Power Supply 3 Temperature failure
0 = No temperature failure
1 = Temperature failure
bit 1: Power Supply 3 Overcurrent failure
0 = No overcurrent
1 = Overcurrent failure
bit 0: Power Supply 3 Status
0 = Off
1= On
40003
0x0002
Status PSB3
Power Supply Block3 status
bit 15 .. 7 Not Used
bit 6: Power Supply 6 Temperature failure
0 = No temperature failure
1 = Temperature failure
bit 5: Power Supply 6 Overcurrent failure
0 = No overcurrent
1 = Overcurrent failure
bit 4: Power Supply 6 Status
0 = Off
1 = On
bit 3: Not used
bit 2: Power Supply 5 Temperature failure
0 = No temperature failure
1 = Temperature failure
bit 1: Power Supply 5 Overcurrent failure
0 = No overcurrent
1 = Overcurrent failure
bit 0: Power Supply 5 Status
0 = Off
1= On
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 9 van 14
Register
40004
Address
0x0003
Field Name
Reset PSB1
Description
Power Supply Block1 Reset
Value 0xAA55 written to this Address will reset the
status of Power Supply Block1.
Note : The Status register will only be cleared if the
cause of the error is no longer present
40005
0x0004
Reset PSB2
Power Supply Block1 Reset
Value 0xAA55 written to this Address will reset the
status of Power Supply Block2.
Note : The Status register will only be cleared if the
cause of the error is no longer present
40006
0x0005
Reset PSB3
Power Supply Block1 Reset
Value 0xAA55 written to this Address will reset the
status of Power Supply Block3.
Note : The Status register will only be cleared if the
cause of the error is no longer present
An example of a request to reset Power Supply block 3.
Query:
Field Name
Slave Address
Function Code
Register Address High
Register Address Low
Preset Data High
Preset Data Low
Error Check (CRC) Low
Error Check (CRC) High
Data value (Hex)
0x30
0x06
0x00
0x05
0xAA
0x55
0x-0x--
Description
Slave Address
Preset Single Register
High Address
Low Address
Reset Code High
Reset Code Low
CRC Checksum Low
CRC Checksum High
Data value (Hex)
0x30
0x06
0x00
0x05
0xAA
0x55
0x-0x--
Description
Slave Address
Preset Single Register
High Address
Low Address
Data High
Data Low
CRC Checksum Low
CRC Checksum High
Response :
Field Name
Slave Address
Function Code
Register Address High
Register Address Low
Data High
Data Low
Error Check (CRC) Low
Error Check (CRC) High
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 10 van 14
4.3.3 Power Supply control
The control field is defined as :
Register Address Field Name
40007
0x0006 PS Control
Description
Power Supply Control field
bit 15 .. 6 Not Used
bit 5: Set Power Supply 6 Status
0 = Off
1 = On
bit 4: Set Power Supply 5 Status
0 = Off
1 = On
bit 3: Set Power Supply 4 Status
0 = Off
1 = On
bit 2: Set Power Supply 3 Status
0 = Off
1 = On
bit 1: Set Power Supply 2 Status
0 = Off
1 = On
bit 0: Set Power Supply 1 Status
0 = Off
1 = On
An example of a request to switch on Power Supply 3 and 5.
Query:
Field Name
Slave Address
Function Code
Register Address High
Register Address Low
Preset Data High
Preset Data Low
Error Check (CRC) Low
Error Check (CRC) High
Data value (Hex)
0x30
0x06
0x00
0x06
0x00
0x14
0x-0x--
Description
Slave Address
Preset Single Register
High Address
Low Address
Data High
Data Low
CRC Checksum Low
CRC Checksum High
Data value (Hex)
0x30
0x06
0x00
0x06
0x00
0x14
0x-0x--
Description
Slave Address
Preset Single Register
High Address
Low Address
Data High
Data Low
CRC Checksum Low
CRC Checksum High
Response :
Field Name
Slave Address
Function Code
Register Address High
Register Address Low
Data High
Data Low
Error Check (CRC) Low
Error Check (CRC) High
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 11 van 14
4.3.4 String Power Module exception status
The String Power module exception field is defined as :
Bit Field
Assignment
0
Watchdog reset occurred
1
ADC Failure
2
Started in Autonomous mode
When the exception field is read out, the Wdt reset and ADC failure bits will be reset.
An example of a request to read the exception status.
Query:
Field Name
Slave Address
Function Code
Error Check (CRC) Low
Error Check (CRC) High
Data value (Hex)
0x30
0x07
0x-0x--
Description
Slave Address
Read Exception Status
CRC Checksum Low
CRC Checksum High
Data value (Hex)
0x30
0x07
0x-0x-0x--
Description
Slave Address
Read Exception Status
Exception Data
CRC Checksum Low
CRC Checksum High
Response :
Field Name
Slave Address
Function Code
Coil Data
Error Check (CRC) Low
Error Check (CRC) High
4.4 Ranges, Representation and Scales
Field Name
Resolution
U1..U6
10bits
UAC_in P + N
12bits
I1..I6
12bits
Temp1..Temp3
12bits
DC_leak
10bits
U48V
10bits
Range(decimal)
0..1023
0..4095
0..4095
0..4095
0..1023
0..1023
Range
0..500V
0..500V
0..2,52437A
-50..450°C
-1..+1mA
0..50,45455V
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 12 van 14
5
Functional behaviour
5.1 Start-up situation
At start-up of the controller all Power Supplies are turned off.
5.2 Normal behaviour
When the Master sends a Power Supply control request message to the Slave, the
status of the selected Power Supplies can be changed.
Note: there is only one control field to turn the Power Supplies ON or OFF, this
means when single Power Supplies are turn ON or OFF, the Master is responsible to
keep other Power Supplies at the same status.
A Power Supply ON request is only accepted if there is no error situation.
This means:
1. There is no overheating condition; the temperature of the involvedPower
Supply Block is below 115º C. (internal temperature)
2. No over-current condition, the current of the involved Power Supply is within
0.725 A.
3. The AC input voltage is equal or above 360 volt AC.
Note: To avoid a peak current only one Power Supply is switched on per 2 seconds.
This means when all 6 Power Supplies are requested on, it takes 10 seconds before
the last Power Supply is actually switched on.
5.3 Autonomous behaviour
The Power Supplies can also run in an Autonomous mode. This mode is entered when
the controller does not receive any command in 10 minutes after a start-up (power
on).
When the SPM switches to the Autonomous mode, all Power Supplies will be turned
on. The same conditions as described inChapter 5.2 must be reached.
When the communication with the Master is available again, the status of the Power
Supply is not changed. The status corresponds with the last status set from running in
Autonomous mode.
Note: when valid communication is send to controller, the autonomous mode is
disabled, the power must be switched off and on to reset this condition.
5.4 Error behaviour
When an Overcurrent situation occurs, the involved Power Supply is switched off.
The Overcurrent flag, which is located in the Status Block, for this Power Supply is
raised and the ON/OFF status bit is set to OFF.
In case of an Temperature failure the involved Power Supply is also switched off.
The Temperature failure flag is also raised and the ON/OFF status bit is set to OFF.
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 13 van 14
Because there is only one temperature sensor per set of two Power Supplies, this
causes that in case of an temperature failure both Power Supplies will be set to OFF.
The Power Supplies are also switched off when the AC-input drops below 340 volt
AC, or when the Power Supply voltage drops below 340volt DC
When one of the Error flags is set, the involved Power Supply does not switch ON
after a ‘Power Supply ON’control request message.
The Master must first send a ‘Reset Status’request message to the slave in order to
clear the error flags.
Note: The error flags can only be cleared by the Master and are only cleared if the
cause of the error situation is no longer present. Switching the Power Off and On will
not clear any errors.
When one of the error flags is set and the Power Supply switches to ‘Autonomous
mode’the Power Supply involved will NOT switch on.
The error flags are stored in Non-Volatile memory.
5.5 Controller exception behaviour
When the Watchdog-reset of the controller occurs, the controller can react in two
ways.
1)
‘Fast recover’, this will be done when the registers in the controller are still
valid, the output of the power supplies are set as they where before the Watchdog
occurred.
2)
‘Slow recover’, this will be done when the registers in the controller are
corrupt, the power supplies are switched on again, using the last send control
command of the slave. Hereby the active Power Supplies are switched back on with a
two seconds delay.
Software Spec ANTRARES String Power Module_v1.1
Version 1.1 Final
23-4-2002
Page 14 van 14