CN103135538B - Efficient method for collecting data of converter of energy storage power station - Google Patents

Efficient method for collecting data of converter of energy storage power station Download PDF

Info

Publication number
CN103135538B
CN103135538B CN201310050251.6A CN201310050251A CN103135538B CN 103135538 B CN103135538 B CN 103135538B CN 201310050251 A CN201310050251 A CN 201310050251A CN 103135538 B CN103135538 B CN 103135538B
Authority
CN
China
Prior art keywords
current transformer
code domain
value
territory
less
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310050251.6A
Other languages
Chinese (zh)
Other versions
CN103135538A (en
Inventor
李洪伟
方孝杰
冯巍
吕征
施耀飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
INSIGMA INNOVATION RESEARCH DEVELOPMENT Co Ltd
Original Assignee
INSIGMA INNOVATION RESEARCH DEVELOPMENT Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by INSIGMA INNOVATION RESEARCH DEVELOPMENT Co Ltd filed Critical INSIGMA INNOVATION RESEARCH DEVELOPMENT Co Ltd
Priority to CN201310050251.6A priority Critical patent/CN103135538B/en
Publication of CN103135538A publication Critical patent/CN103135538A/en
Application granted granted Critical
Publication of CN103135538B publication Critical patent/CN103135538B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention discloses a method for collecting data of a converter of an energy storage power station. The method comprises: step 1, a collector sends reading and writing instruction frames to the converter; step 2, when the value of a type code domain in the reading and writing instruction frames is the designated value, step 3 is conducted; step 3, the converter analyzes the bits in a function code domain in the reading and writing instruction frames from the first bit to the fortieth bit one by one, and the efficient value of a corresponding command register in a data domain is extracted; step 4, the converter analyzes the bits in the function code domain in the reading and writing instruction frames from the forty-first bit to the eightieth bit one by one, and the efficient value of a corresponding state register is written in the data field; step 5, responding frames are formed according to the structure of the reading and writing instruction frames and are sent back to the collector, when the value of the type code domain in the responding frames is the designated value, step 6 is conducted; and step 6, the collector analyzes the bits in a function code domain in the responding frames from the forty-first bit to the eightieth bit one by one, and the efficient value of the corresponding state register in the data domain is extracted. The method for collecting the data of the converter of the energy storage power station is capable of improving efficiency and real time performance of Ethernet communication.

Description

A kind of method of efficient converter of energy storage power station data acquisition
Technical field
The present invention relates to a kind of collecting method of converter of energy storage power station, main application fields is MW class Large Copacity energy-accumulating power station.
Background technology
MW class Large Copacity energy-accumulating power station is as an emerging industry, very high to the requirement of real-time of control cycle.The data acquisition technology of existing converter of energy storage power station and method are divided into two large classes, and the first kind is communication modes, and the technology of employing mainly comprises Ethernet, CAN, RS485 bus etc.; Equations of The Second Kind is analog quantity hardwire mode, and main signal type is the current/voltage signal of standard.First kind mode is flexible, and antijamming capability is strong, but does not consider the requirement of real-time of energy-accumulating power station, needs to improve for the feature of converter of energy storage power station specially; Although Equations of The Second Kind real-time is higher, precision is not high, and poor anti jamming capability is eliminated gradually.
Summary of the invention
The object of this invention is to provide a kind of method of converter of energy storage power station data acquisition, thus overcome all or part of defect of prior art.
For achieving the above object, the technical solution used in the present invention is as follows:
The method of the first converter of energy storage power station data acquisition of the present invention comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1:
If the binary number obtained resolved by current transformer is " 1 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 3, otherwise performing step 4;
If current transformer resolves the binary number that obtains for " 0 " and i is less than 40, then i added 1 and repeat step 3, otherwise performing step 4;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 4: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 1 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 4, otherwise performing step 5;
If the binary number obtained resolved by current transformer is " 0 ", and j is less than 80, then j added 1 and repeat step 4, otherwise performs step 5;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 5: the function code domain designated value of type code domain and step 4 obtained and data field form Echo Frame according to the structure of read write command frame, and send it back in collector by Echo Frame; Collector judges the type code domain in Echo Frame, if the value of type code domain is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code domain in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field of Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
The method of the second converter of energy storage power station of the present invention data acquisition comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 0 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 3, otherwise performing step 4;
If current transformer resolves the binary number that obtains for " 1 " and i is less than 40, then i added 1 and repeat step 3, otherwise performing step 4;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 4: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 1 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 4, otherwise performing step 5;
If the binary number obtained resolved by current transformer is " 0 ", and j is less than 80, then j added 1 and repeat step 4, otherwise performs step 5;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 5: the function code domain designated value of type code domain and step 4 obtained and data field form Echo Frame according to the structure of read write command frame, and send it back in collector by Echo Frame; Collector judges to the type code domain in Echo Frame, if the value of type code domain is designated value, then performs step 6:
Step 6: collector is resolved the jth of the function code domain in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
The method of the third converter of energy storage power station data acquisition of the present invention comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1:
If the binary number obtained resolved by current transformer is " 1 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 3, otherwise performing step 4;
If current transformer resolves the binary number that obtains for " 0 " and i is less than 40, then i added 1 and repeat step 3, otherwise performing step 4;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 4: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 0 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 4, otherwise performing step 5;
If the binary number obtained resolved by current transformer is " 1 ", and j is less than 80, then j added 1 and repeat step 4, otherwise performs step 5;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 5: the function code domain designated value of type code domain and step 4 obtained and data field form Echo Frame according to the structure of read write command frame, and send it back in collector by Echo Frame; Collector judges to the type code domain in Echo Frame, if the value of type code domain is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code domain in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
The method of the 4th kind of converter of energy storage power station data acquisition of the present invention comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 0 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 3, otherwise performing step 4;
If current transformer resolves the binary number that obtains for " 1 " and i is less than 40, then i added 1 and repeat step 3, otherwise performing step 4;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 4: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 0 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 4, otherwise performing step 5;
If the binary number obtained resolved by current transformer is " 1 ", and j is less than 80, then j added 1 and repeat step 4, otherwise performs step 5;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 5: the function code domain designated value of type code domain and step 4 obtained and data field form Echo Frame according to the structure of read write command frame, and send it back in collector by Echo Frame; Collector judges to the type code domain in Echo Frame, if the value of type code domain is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code domain in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
The method of the 5th kind of converter of energy storage power station data acquisition of the present invention comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 1 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 3, otherwise performing step 4;
If the binary number obtained resolved by current transformer is " 0 ", and j is less than 80, then j added 1 and repeat step 3, otherwise performs step 4;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 4: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 1 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 4, otherwise performing step 5;
If current transformer resolves the binary number that obtains for " 0 " and i is less than 40, then i added 1 and repeat step 4, otherwise performing step 5;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 5: the designated value of function code domain step 3 obtained and data field and type code domain forms Echo Frame according to the structure of read write command frame, and sends it back in collector by Echo Frame; Collector judges to the type codes in Echo Frame, if the value of type codes is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
The method of the 6th kind of converter of energy storage power station data acquisition of the present invention comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 1 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 3, otherwise performing step 4;
If the binary number obtained resolved by current transformer is " 0 ", and j is less than 80, then j added 1 and repeat step 3, otherwise performs step 4;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 4: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 0 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 4, otherwise performing step 5;
If current transformer resolves the binary number that obtains for " 1 " and i is less than 40, then i added 1 and repeat step 4, otherwise performing step 5;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 5: the designated value of function code domain step 3 obtained and data field and type code domain forms Echo Frame according to the structure of read write command frame, and sends it back in collector by Echo Frame; Collector judges to the type codes in Echo Frame, if the value of type codes is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
The method of the 7th kind of converter of energy storage power station data acquisition of the present invention comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 0 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 3, otherwise performing step 4;
If the binary number obtained resolved by current transformer is " 1 ", and j is less than 80, then j added 1 and repeat step 3, otherwise performs step 4;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 4: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 1 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 4, otherwise performing step 5;
If current transformer resolves the binary number that obtains for " 0 " and i is less than 40, then i added 1 and repeat step 4, otherwise performing step 5;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 5: the designated value of function code domain step 3 obtained and data field and type code domain forms Echo Frame according to the structure of read write command frame, and sends it back in collector by Echo Frame; Collector judges to the type codes in Echo Frame, if the value of type codes is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
The method of the 8th kind of converter of energy storage power station data acquisition of the present invention comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 0 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 3, otherwise performing step 4;
If the binary number obtained resolved by current transformer is " 1 ", and j is less than 80, then j added 1 and repeat step 3, otherwise performs step 4;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 4: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 0 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 4, otherwise performing step 5;
If current transformer resolves the binary number that obtains for " 1 " and i is less than 40, then i added 1 and repeat step 4, otherwise performing step 5;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 5: the designated value of function code domain step 3 obtained and data field and type code domain forms Echo Frame according to the structure of read write command frame, and sends it back in collector by Echo Frame; Collector judges to the type codes in Echo Frame, if the value of type codes is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
Compared with prior art, the invention has the beneficial effects as follows: the present invention specially little for current transformer amount of communication data, disturb large feature to design, communication modes is adopted to carry out data acquisition, signal accuracy far above hardwire mode can be provided, improve the antijamming capability in data acquisition simultaneously; Be optimized additionally by ethernet communication frame structure, can greatly reduce the communication number of times between collector and current transformer, thus meet the real-time control overflow of energy-accumulating power station to current transformer image data, structure of the present invention and communication are simple, good stability.
Accompanying drawing explanation
Fig. 1 is the structural representation of read write command frame of the present invention.
Embodiment
In the method for converter of energy storage power station data acquisition of the present invention, collector and current transformer adopt the communication of point-to-point Ethernet mode, and consider that the interference that current transformer produces is large, netting twine preferably adopts shielding Ethernet.
Describe the method for converter of energy storage power station data acquisition of the present invention in detail with a specific embodiment below in conjunction with Fig. 1:
Step one: collector sends read write command frame to current transformer.
In the present invention, read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, wherein, the status register of current transformer stores the current active power of current transformer and current reactive power, and the command registers store of current transformer has target active power and the target reactive power of current transformer.
In addition, as shown in Figure 1, read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field.Wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, and the header in PHY territory and telegram end have 12 bytes, and type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes.
10 bytes totally 80 bit positions of function code domain, a register data in representative data territory, each bit position, the different register datas in representative data territory, different bit position.Wherein, whether 1st ~ 40 bit positions are effective for the command register in unlabeled data territory; Whether 41st ~ 80 bit positions are effective for the status register in unlabeled data territory.
The numerical value of each register is made up of 2 bytes, and therefore the length of data field is 160 bytes.
The register number of existing current transformer is substantially all within 30, and structural support 80 registers of read write command frame of the present invention, can meet and complete the requirement reading simultaneously and write instruction in an ethernet frame.
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3.
The designated value of type code domain is the arbitrary value preset, and whether the read write command frame that the collector for judging received by current transformer sends over is valid frame.Below illustrate:
Such as, the designated value of type code domain can be set as " 0x10 ".In this case, when the value of the type code domain in the read write command frame only having the collector received when current transformer to send over is for " 0x10 ", just can think that this frame is effective read write command frame; If be not " 0x10 ", then think that this frame is with the irrelevant invalid frame of data acquisition, thus it is abandoned and is left intact.
Step 3: i-th the bit position of current transformer to the function code domain in read write command frame is resolved (initial value of i is 1):
(1) if current transformer resolves the binary number that obtains for " 1 ", then the value in command register corresponding with i-th bit position in data field to be taken out to be used as subsequent treatment by current transformer; Then i value is judged: if i is less than 40, then i is added 1 thus to a rear bit position repeated execution of steps three, otherwise perform step 4.
After value in command register corresponding with i-th bit position in data field is taken out by current transformer, the software algorithm module of giving current transformer carries out corresponding subsequent algorithm process, and this follow-up algorithm process work does not belong to the data acquisition category of current transformer.
(2) if current transformer resolves the binary number that obtains for " 0 ", now represent that the value of command register corresponding with i-th bit position in data field is invalid, if i is less than 40 simultaneously, then i is added 1 and repeat step 2, otherwise performing step 3.
Wherein, 1st ~ 40bit position of function code domain is for depositing the bit value of the validity representing command register.
Step 4: current transformer is resolved (initial value of j is 41) the jth of the function code domain in a read write command frame bit position:
(1) if the binary number obtained resolved by current transformer is " 1 ", then think that the status register of this bit position correspondence is effective, represent that the numerical value of this status register expected by current transformer, for this reason, current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 4, otherwise performing step 5.
(2) if the binary number obtained resolved by current transformer is " 0 ", then think that the status register of this bit position correspondence is invalid, represent that the numerical value of this status register do not expected by current transformer; If now j is less than 80, then j is added 1 and repeat step 4, otherwise performing step 5.
Wherein, 41st ~ 80bit position of function code domain is for depositing the bit value of the validity representing described status register.
Step 5: the function code domain designated value of type code domain and step 4 obtained and data field form Echo Frame according to the structure of read write command frame, and send it back in collector by Echo Frame; Collector judges to the type codes in Echo Frame, if the value of type codes is above-mentioned designated value (such as " 0x10 "), then performs step 6.
Step 6: collector is resolved (initial value of j is 41) the jth of the function code in an Echo Frame bit position:
(1) if the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeat step 6;
(2) if current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
After value in status register is taken out, can be used as the input variable of power distribution algorithm software by collected device, this algorithm process work does not belong to the data acquisition category of set of current transformer.
It should be noted that, in the step 3 of the present embodiment, when current transformer resolves the binary number that obtains for " 1 ", represent that the value of command register corresponding with i-th bit position in data field is effective; When current transformer resolves the binary number that obtains for " 0 ", represent that the value of command register corresponding with i-th bit position in data field is invalid.In step 4, if the binary number obtained resolved by current transformer is " 1 ", then thinks that the status register of this bit position correspondence is effective, mean that the numerical value of this status register expected by current transformer; If the binary number obtained resolved by current transformer is " 0 ", then think that the status register of this bit position correspondence is invalid, represent that the numerical value of this status register do not expected by current transformer.
And as other embodiments of the present invention, " 1 " and " 0 " that the bit position of current transformer to function code domain is resolved in the binary number obtained also can represent other different implications:
(1) in step 3, command register is invalid to use " 1 " to represent, command register is effective to use " 0 " to represent.
(2) in step 4, status register register is invalid to use " 1 " to represent, status register is effective to use " 0 " to represent.
In addition, the order of above-mentioned steps three and step 4 also can be exchanged by the present invention, namely current transformer first processes sequentially one by one to 41st ~ 80bit position of the function code domain in read write command frame, and then processes one by one sequentially 1st ~ 40 bit positions of the function code domain in read write command frame.
Usually, the status register of current transformer and the quantity of command register are within 30, and wherein, status register is divided into analog quantity status register and on-off state register, and command register is also divided into analog quantity command register and switching value command register.Because current existing agreement does not consider the feature of current transformer, separate the write instruction of the reading command of the status register of current transformer and the command register of current transformer, even the write instruction of the reading command of analog quantity status register and on-off state register, analog quantity command register and switching value command register also all separates.Therefore, prior art will realize complete reading and write instruction, and collector often needs to send multiple command frame and just can realize.
The present invention at least relates to the current active power of current transformer, current reactive power, target active power and target reactive power, wherein, current active power and the current reactive power of current transformer belong to analog quantity status register, and target active power and the target reactive power of current transformer belong to analog quantity command register.In addition, the present invention supports on-off state register and switching value command register equally.
The data of analog quantity status register and analog quantity command register are only had to need the current transformer gathered for one, realize reading and the write of the register of this two type, existing agreement must send 2 ethernet frame command frame and just can realize by collector, add 1 Echo Frame of reading command, amount to 3 ethernet frames.And the present invention is owing to have employed read write command frame structure as shown in Figure 1, and parsing and corresponding process are carried out in each bit position to function code domain as step 3 and step 4, the reading of these two kinds of registers and write instruction can be realized by means of only 1 Ethernet read write command frame, Echo Frame also only needs 1 just can be completed, amount to 2 ethernet frames, the quantity of communication ethernet frame is only equivalent to original 2/3, is consuming timely also equivalent to original 2/3.
In addition, with existing analog quantity status register, an on-off state register, the data of analog quantity command register and switching value command register are had again to need the current transformer gathered to be example, realize reading and the write of the register of this Four types, existing agreement must send 4 ethernet frame command frame and just can realize by collector, add 2 Echo Frames of reading command, amount to 6 ethernet frames.And the present invention is owing to have employed read write command frame structure as shown in Figure 1, and parsing and corresponding process are carried out in each bit position to function code domain as step 3 and step 4, the reading of this Four types register and write instruction can be realized by means of only 1 Ethernet read write command frame, Echo Frame also only needs 1 just can be completed, amount to 2 ethernet frames, the quantity of communication ethernet frame is only equivalent to original 1/3, is consuming timely also equivalent to original 1/3.
By relatively finding out above, relative to prior art, the present invention can significantly improve ethernet communication efficiency, and significantly improves the real-time of communication.And for existing analog quantity status register, on-off state register, have again the data of analog quantity command register and switching value command register to need the current transformer gathered, the present invention has more significantly advantage relative to prior art.

Claims (8)

1. a method for converter of energy storage power station data acquisition, is characterized in that, comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1:
If the binary number obtained resolved by current transformer is " 1 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 3, otherwise performing step 4;
If current transformer resolves the binary number that obtains for " 0 " and i is less than 40, then i added 1 and repeat step 3, otherwise performing step 4;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 4: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 1 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 4, otherwise performing step 5;
If the binary number obtained resolved by current transformer is " 0 ", and j is less than 80, then j added 1 and repeat step 4, otherwise performs step 5;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 5: the function code domain designated value of type code domain and step 4 obtained and data field form Echo Frame according to the structure of read write command frame, and send it back in collector by Echo Frame; Collector judges the type code domain in Echo Frame, if the value of type code domain is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code domain in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field of Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
2. a method for converter of energy storage power station data acquisition, is characterized in that, comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 0 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 3, otherwise performing step 4;
If current transformer resolves the binary number that obtains for " 1 " and i is less than 40, then i added 1 and repeat step 3, otherwise performing step 4;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 4: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 1 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 4, otherwise performing step 5;
If the binary number obtained resolved by current transformer is " 0 ", and j is less than 80, then j added 1 and repeat step 4, otherwise performs step 5;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 5: the function code domain designated value of type code domain and step 4 obtained and data field form Echo Frame according to the structure of read write command frame, and send it back in collector by Echo Frame; Collector judges to the type code domain in Echo Frame, if the value of type code domain is designated value, then performs step 6:
Step 6: collector is resolved the jth of the function code domain in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
3. a method for converter of energy storage power station data acquisition, is characterized in that, comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1:
If the binary number obtained resolved by current transformer is " 1 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 3, otherwise performing step 4;
If current transformer resolves the binary number that obtains for " 0 " and i is less than 40, then i added 1 and repeat step 3, otherwise performing step 4;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 4: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 0 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 4, otherwise performing step 5;
If the binary number obtained resolved by current transformer is " 1 ", and j is less than 80, then j added 1 and repeat step 4, otherwise performs step 5;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 5: the function code domain designated value of type code domain and step 4 obtained and data field form Echo Frame according to the structure of read write command frame, and send it back in collector by Echo Frame; Collector judges to the type code domain in Echo Frame, if the value of type code domain is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code domain in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
4. a method for converter of energy storage power station data acquisition, is characterized in that, comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 0 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 3, otherwise performing step 4;
If current transformer resolves the binary number that obtains for " 1 " and i is less than 40, then i added 1 and repeat step 3, otherwise performing step 4;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 4: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 0 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 4, otherwise performing step 5;
If the binary number obtained resolved by current transformer is " 1 ", and j is less than 80, then j added 1 and repeat step 4, otherwise performs step 5;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 5: the function code domain designated value of type code domain and step 4 obtained and data field form Echo Frame according to the structure of read write command frame, and send it back in collector by Echo Frame; Collector judges to the type code domain in Echo Frame, if the value of type code domain is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code domain in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
5. a method for converter of energy storage power station data acquisition, is characterized in that, comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 1 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 3, otherwise performing step 4;
If the binary number obtained resolved by current transformer is " 0 ", and j is less than 80, then j added 1 and repeat step 3, otherwise performs step 4;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 4: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 1 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 4, otherwise performing step 5;
If current transformer resolves the binary number that obtains for " 0 " and i is less than 40, then i added 1 and repeat step 4, otherwise performing step 5;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 5: the designated value of function code domain step 3 obtained and data field and type code domain forms Echo Frame according to the structure of read write command frame, and sends it back in collector by Echo Frame; Collector judges to the type codes in Echo Frame, if the value of type codes is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
6. a method for converter of energy storage power station data acquisition, is characterized in that, comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 1 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 3, otherwise performing step 4;
If the binary number obtained resolved by current transformer is " 0 ", and j is less than 80, then j added 1 and repeat step 3, otherwise performs step 4;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 4: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 0 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 4, otherwise performing step 5;
If current transformer resolves the binary number that obtains for " 1 " and i is less than 40, then i added 1 and repeat step 4, otherwise performing step 5;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 5: the designated value of function code domain step 3 obtained and data field and type code domain forms Echo Frame according to the structure of read write command frame, and sends it back in collector by Echo Frame; Collector judges to the type codes in Echo Frame, if the value of type codes is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
7. a method for converter of energy storage power station data acquisition, is characterized in that, comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 0 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 3, otherwise performing step 4;
If the binary number obtained resolved by current transformer is " 1 ", and j is less than 80, then j added 1 and repeat step 3, otherwise performs step 4;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 4: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 1 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 4, otherwise performing step 5;
If current transformer resolves the binary number that obtains for " 0 " and i is less than 40, then i added 1 and repeat step 4, otherwise performing step 5;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 5: the designated value of function code domain step 3 obtained and data field and type code domain forms Echo Frame according to the structure of read write command frame, and sends it back in collector by Echo Frame; Collector judges to the type codes in Echo Frame, if the value of type codes is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
8. a method for converter of energy storage power station data acquisition, is characterized in that, comprises the steps:
Step one: collector sends read write command frame to current transformer; Described read write command frame comprises the instruction of the status register not only reading current transformer but also the command register writing current transformer, the status register of described current transformer stores the current active power of current transformer and current reactive power, and described current transformer command registers store has target active power and the target reactive power of current transformer;
Described read write command frame comprises PHY territory, mac domain, IP territory, TCP territory, type code domain, function code domain and data field, wherein, PHY territory, mac domain, IP territory and TCP territory adopt the Ethernet TCP/IP frame format of standard, the header in TCP territory is 20 bytes, the header in IP territory is 20 bytes, the header of mac domain and telegram end have 26 bytes, the header in PHY territory and telegram end have 12 bytes, type code domain is 1 byte, function code domain is 10 bytes totally 80 bit positions, and data field has 160 bytes;
Step 2: current transformer judges the type code domain in read write command frame, if the value of type code domain is designated value, then performs step 3;
Step 3: current transformer is resolved the jth of the function code domain in a read write command frame bit position, the initial value of j is 41;
If the binary number obtained resolved by current transformer is " 0 ", then current transformer will write in data field with the value of a jth status register that bit position is corresponding and judge whether j is less than 80, if j is less than 80, then j value is added 1 and repeat step 3, otherwise performing step 4;
If the binary number obtained resolved by current transformer is " 1 ", and j is less than 80, then j added 1 and repeat step 3, otherwise performs step 4;
Wherein, 41st ~ 80bit position of described function code domain is for depositing the bit value of the validity representing described status register;
Step 4: i-th the bit position of current transformer to the function code domain in read write command frame is resolved, and the initial value of i is 1;
If the binary number obtained resolved by current transformer is " 0 ", then the value in command register corresponding with i-th bit position in data field is taken out and judges whether i is less than 40 by current transformer, if i is less than 40, then i is added 1 and repeat step 4, otherwise performing step 5;
If current transformer resolves the binary number that obtains for " 1 " and i is less than 40, then i added 1 and repeat step 4, otherwise performing step 5;
Wherein, 1st ~ 40bit position of described function code domain is for depositing the bit value of the validity representing described command register;
Step 5: the designated value of function code domain step 3 obtained and data field and type code domain forms Echo Frame according to the structure of read write command frame, and sends it back in collector by Echo Frame; Collector judges to the type codes in Echo Frame, if the value of type codes is designated value, then performs step 6;
Step 6: collector is resolved the jth of the function code in an Echo Frame bit position, the initial value of j is 41;
If the binary number obtained resolved by collector is " 1 ", then collector will take out with the value in a jth status register that bit position is corresponding in the data field in Echo Frame and judge whether j is less than 80, if j is less than 80, then j is added 1 and repeats step 6;
If current transformer resolves the binary number that obtains for " 0 " and j is less than 80, then j added 1 and repeat step 6.
CN201310050251.6A 2013-02-08 2013-02-08 Efficient method for collecting data of converter of energy storage power station Active CN103135538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310050251.6A CN103135538B (en) 2013-02-08 2013-02-08 Efficient method for collecting data of converter of energy storage power station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310050251.6A CN103135538B (en) 2013-02-08 2013-02-08 Efficient method for collecting data of converter of energy storage power station

Publications (2)

Publication Number Publication Date
CN103135538A CN103135538A (en) 2013-06-05
CN103135538B true CN103135538B (en) 2015-05-20

Family

ID=48495509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310050251.6A Active CN103135538B (en) 2013-02-08 2013-02-08 Efficient method for collecting data of converter of energy storage power station

Country Status (1)

Country Link
CN (1) CN103135538B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107545087B (en) * 2016-06-29 2021-04-06 中车株洲电力机车研究所有限公司 Parameter management method and device for converter control system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771700A (en) * 2010-01-06 2010-07-07 哈尔滨工业大学 Modbus protocol communication node based on FPGA

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771700A (en) * 2010-01-06 2010-07-07 哈尔滨工业大学 Modbus protocol communication node based on FPGA

Also Published As

Publication number Publication date
CN103135538A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN102624685B (en) Encodable protocol processing method for intelligent equipment
CN203455827U (en) Multi-channel data acquisition system applied to industrial production
CN105139629A (en) Method for improving data acquisition efficiency of low voltage power line broadband carrier waves
CN103605349A (en) Remote data real-time collection, analysis and statistical system and method based on CAN-bus
CN106709143B (en) VFTO batch simulation analysis method and system based on ATP automatic modeling
CN104539502A (en) Method for adding modbus equipment in customized manner
CN204965718U (en) Photovoltaic intelligent monitoring system
CN105515997A (en) BF_TCAM (Bloom Filter-Ternary Content Addressable Memory)-based high-efficiency range matching method for realizing zero range expansion
CN202837399U (en) Synchronized phasor measurement apparatus
CN103135538B (en) Efficient method for collecting data of converter of energy storage power station
CN103595625A (en) Method for achieving communication gateway
CN105337850A (en) Internet of Things data processing method and internet of Things gateway
CN103366540A (en) Wireless network dynamic route meter reading system and meter reading method thereof
CN102521318A (en) General data exchange device based on extensible markup language (XML)
CN204462752U (en) A kind of signal acquiring processing system
CN201369723Y (en) Bluetooth module collector based on Bluetooth chip
CN207123738U (en) A kind of arbitrarily signal generating device based on terminal fitting
CN202334008U (en) Multi-network-port high-speed data transmission architecture
CN101699420B (en) Method for improving communication efficiency by improving equipment polling mode
CN202649363U (en) Network port detection device
CN206906814U (en) Network intelligence measure and control instrument
CN202331457U (en) Data acquirer
CN204406086U (en) A kind of agricultural robot wireless interaction system
CN105511332A (en) Optical fiber wiring robot controller based on C8051F040
CN104020347A (en) Method for fast searching electric energy meter in transformer area

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant