CN117336112A - Modbus communication protocol-based voltage control curve transmission method and system - Google Patents

Modbus communication protocol-based voltage control curve transmission method and system Download PDF

Info

Publication number
CN117336112A
CN117336112A CN202311259731.3A CN202311259731A CN117336112A CN 117336112 A CN117336112 A CN 117336112A CN 202311259731 A CN202311259731 A CN 202311259731A CN 117336112 A CN117336112 A CN 117336112A
Authority
CN
China
Prior art keywords
data
dsp
voltage curve
array
upper computer
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.)
Pending
Application number
CN202311259731.3A
Other languages
Chinese (zh)
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.)
Xinfengfeng Qingdao Transportation Technology Co ltd
Original Assignee
Xinfengfeng Qingdao Transportation Technology 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 Xinfengfeng Qingdao Transportation Technology Co ltd filed Critical Xinfengfeng Qingdao Transportation Technology Co ltd
Priority to CN202311259731.3A priority Critical patent/CN117336112A/en
Publication of CN117336112A publication Critical patent/CN117336112A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/4013Management of data rate on the bus
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/0003Details of control, feedback or regulation circuits
    • H02M1/0012Control circuits using digital or numerical techniques
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M1/00Details of apparatus for conversion
    • H02M1/0003Details of control, feedback or regulation circuits
    • H02M1/0025Arrangements for modifying reference values, feedback values or error values in the control loop of a converter
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M3/00Conversion of dc power input into dc power output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40228Modbus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention provides a voltage control curve transmission method and a system based on a modbus communication protocol, which belong to the technical field of urban rail transit and comprise the following steps: the upper computer transmits the voltage curve to the DSP in a real-time sectionalized and cyclic manner, wherein two arrays are defined in the DSP and are respectively used for storing one section of voltage curve data; the DSP alternately uses the voltage curve data in the two arrays to control the running of the direct current power supply system, and the head address of the other idle array is sent to the upper computer during the period that the DSP uses the voltage curve data of one array; and the upper computer sends a section of new voltage curve data to the DSP by taking the head address as a starting address, and the DSP assigns the section of new voltage curve data to the idle array. The invention ensures that the DSP can continuously receive and use the voltage control curve issued by the upper computer under the limited data storage space.

Description

Modbus communication protocol-based voltage control curve transmission method and system
Technical Field
The invention belongs to the technical field of urban rail transit, and particularly relates to a voltage control curve transmission method and system based on a modbus communication protocol.
Background
Because the distance between urban rail transit stations is short, the running characteristics of the urban rail transit stations are the specificity of frequent train starting and braking, a large amount of energy can be generated during braking, and the traditional braking energy absorption consumes braking energy in a resistance heating mode, so that the performance of the urban rail braking resistor is of great importance. In order to realize performance test of the urban rail brake resistor, a set of DC/DC power supply system is required to be researched, the actual operation condition and test requirement of the urban rail brake resistor can be met, and the power supply system can simulate the voltage change curve of the traction inverter brake chopper to carry out temperature rise test during actual operation, so that the power supply system is required to have a program control/output voltage curve setting function.
Meanwhile, the power supply system needs to realize loading of a typical power curve through an upper computer, can remotely control an output voltage curve, ensures that the minimum graduation of voltage adjustment is not higher than 0.1V, the minimum graduation of time adjustment is not higher than 10ms, supports a program circulation function, and has a single program period length not lower than 3h, so that the running data of a single voltage curve is not lower than 108 ten thousand, and because a DSP cannot be stored at one time, a communication protocol needs to be researched to use and store the voltage curve in real time.
Disclosure of Invention
The invention provides a voltage control curve transmission method and a system based on a modbu communication protocol to solve the technical problems.
In a first aspect, the present invention provides a method for transmitting a voltage control curve based on a modbus communication protocol, including:
the upper computer transmits the voltage curve to the DSP in a real-time sectionalized and cyclic manner, wherein two arrays are defined in the DSP and are respectively used for storing one section of voltage curve data;
the DSP alternately uses the voltage curve data in the two arrays to control the running of the direct current power supply system, and during the period that the DSP uses the voltage curve data of one array, the upper computer sends a section of new voltage curve data to the DSP by taking the initial address as the initial address to send the initial address to the upper computer, and the DSP assigns the section of new voltage curve data to the idle array.
Further, before the host computer transmits the voltage curve to the DSP in real time, the method includes:
loading a power curve file by the upper computer, setting a resistance value parameter of the urban rail to be tested, and converting the power curve into a voltage curve; setting curve time dividing parameters and curve data length parameters according to the power curve file, and issuing corresponding parameter setting instructions to the DSP through the HMI;
the DSP sequentially sends addresses of the two arrays to the upper computer according to preset interval time after receiving the parameter setting instruction;
and the upper computer sequentially sends two sections of voltage curve data to fill the two arrays after receiving the addresses of the two arrays.
Further, before the head address of another idle array sent to the upper computer, the DSP firstly assigns the head address of the idle array, and then sends the head address of the idle array to the upper computer;
before the upper computer sends new voltage curve data to the DSP by taking the head address as a starting address, the upper computer needs to confirm that the head address of the idle array is not zero;
and after the DSP assigns the new voltage curve data to the idle array, resetting the head address of the idle array.
Further, before the upper computer sends new voltage curve data, if the idle array is assigned to the end data of the whole voltage curve and the idle array is not filled, splicing the start data to the end data until the idle array is filled, and switching the initial data address of the voltage curve to N-M, wherein N is the first address of the idle array, and M is the data length of the whole voltage curve.
Further, if the first address of the idle array is assigned to the position of the initial data of a certain section of voltage curve to be transmitted, the method for judging whether the idle array is assigned to the end data of the whole voltage curve and is not filled with the idle array is as follows: and judging whether the idle array head address is larger than the data length of the whole voltage curve.
Further, the number of times of use of each voltage curve data is: (curve time division/voltage loop execution time), wherein the curve time division is per power curve data sampling time interval.
Further, the two groups are alternately used as: after the voltage curve data of one array is completely used, the voltage curve data of the other array is switched for use.
In a second aspect, the invention provides a voltage control curve transmission system based on a modbus communication protocol, which comprises an upper computer and a DSP; the upper computer is used as a master station and the DSP is used as a slave station, the DSP is used for uploading an idle array head address for internally storing voltage curve data, and the upper computer is used for generating the voltage curve data according to the received idle array head address.
Further, the system also comprises an HMI and a PLC: the upper computer is used as a master station and the HMI is used as a station, the HMI is used for uploading the summarized equipment data and the state information of the power supply system, and the upper computer is used for transmitting the control instruction of the power supply system to the HMI according to the uploaded equipment data and the state information;
the HMI is used as a master station and the DSP is used as a slave station, the DSP is used for uploading equipment data and state information of the power supply system to the HMI, and the HMI is used for further issuing control instructions of the power supply system issued by the upper computer to the DSP;
the HMI is used as a master station and the PLC is used as a slave station, the PLC is used for uploading the state of the switching device in the equipment of the summarized power supply system, and the HMI is used for issuing a switching action instruction to the PLC.
The invention has the beneficial effects that: aiming at the problem that the DSP cannot store the voltage curve data at one time, a communication protocol is provided for real-time use and storage of the voltage curve, so that the DSP can continuously receive and use the voltage control curve issued by the upper computer in real time under the limited data storage space; and a communication path is independently arranged for the upper computer to directly perform data transmission with the DSP, so that the timeliness of the voltage curve communication rate is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a method of one embodiment of the invention;
FIG. 2 is a schematic flow chart of a method for executing a host computer according to one embodiment of the invention;
FIG. 3 is a schematic flow chart of a method of DSP execution for one embodiment of the invention;
fig. 4 is a schematic block diagram of a system of one embodiment of the present invention.
Detailed Description
In order to make the technical solution of the present invention better understood by those skilled in the art, the technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
The invention improves on a direct-current power supply communication system for data transmission based on a modbus communication protocol, so that the basic architecture of the modbus communication protocol, such as a typical master-slave device upper computer and DSP, HMI, PCL, is still maintained.
The invention aims to solve the problem that the whole voltage curve data DSP issued by an upper computer cannot be stored at one time, and provides a communication transmission method special for issuing the voltage curve data. In order to ensure timeliness of the communication rate of the voltage curve, the invention independently sets one path of communication for directly carrying out data transmission with the DSP by the upper computer, and the communication link only realizes the transmission function of the voltage curve, but a scheme for setting a plurality of paths of communication links based on the principle of the invention is also within the protection scope of the invention.
In a first aspect, as shown in fig. 1, an embodiment of the present invention provides a method for transmitting a voltage control curve based on a modbus communication protocol, including:
the upper computer transmits the voltage curve to the DSP in a real-time sectionalized and cyclic manner, wherein two arrays are defined in the DSP and are respectively used for storing one section of voltage curve data;
the DSP alternately uses the voltage curve data in the two arrays to control the running of the direct current power supply system, and during the period that the DSP uses the voltage curve data of one array, the upper computer sends a section of new voltage curve data to the DSP by taking the initial address as the initial address to send the initial address to the upper computer, and the DSP assigns the section of new voltage curve data to the idle array.
In this embodiment, in order to ensure continuity of the communication link, two arrays for temporarily storing voltage curve data are set to be used alternately and continuously to realize continuity, so in order to ensure logic clarity, the embodiment of the invention sets that the DSP can only use one of the two arrays and cannot be used at the same time, and then one of the two arrays is necessarily in an unused state, which is called an idle array. The data space of each array is n units, so that the data spaces of two arrays can be identical for convenience of management, for example, an array defining two 100 data spaces in the DSP is used for storing the voltage curve. When one array is used with data, the other array immediately updates the data, and it is necessary to ensure that the time for using one array is not less than the update time of the free array.
According to the pollable method provided by the invention, on one hand, the whole voltage curve data is issued in a segmented mode according to the data space length of the arrays, and the two arrays alternately use polling until the whole voltage curve data is completely used. On the other hand, the voltage curve data is polled, and after the whole voltage curve data is transmitted, new voltage curve data is filled into the array at the last data end, so that the method can be executed continuously for a long time.
The embodiment of the invention can fully utilize the storage space of the DSP, can store voltage curve data with large data volume at one time without additional space, can ensure that the DSP can continuously receive the voltage control curve issued by the upper computer under the minimum data storage space, and can control the operation of power supply system equipment.
Optionally, as an embodiment of the present invention, before the host computer transmits the voltage curve to the DSP in real time, the method includes: loading a power curve file by the upper computer, setting a resistance value parameter of the urban rail to be tested, and converting the power curve into a voltage curve; setting curve time dividing parameters and curve data length parameters according to the power curve file, and issuing corresponding parameter setting instructions to the DSP through the HMI; the DSP sequentially sends addresses of the two arrays to the upper computer according to preset interval time after receiving the parameter setting instruction; and the upper computer sequentially sends two sections of voltage curve data to fill the two arrays after receiving the addresses of the two arrays.
In this embodiment, the voltage curve is converted from the power curve, and the specific conversion method refers to the existing mode and is not taken as the protection key point of the present invention; the power curve file records parameters such as curve time dividing parameters, curve data length parameters and the like, the curve time dividing parameters directly influence the use times of voltage curve data, and the maximum data volume of the curve is the length (data space) of the whole curve, and the embodiment will be described in detail later. The comparison preset interval time can be interval 1s, the sequence of the two arrays is determined through sequential interval transmission, the two arrays are required to be filled up according to the sequence when the voltage curve data is transmitted for the first time, and then the data is prepared for use. The embodiment of the invention introduces the curve preparation work in the early stage of the method and the first filling of the array, and can start the polling method for the voltage curve data in the array.
Optionally, as an embodiment of the present invention, before the first address of another free array sent to the upper computer, the DSP first assigns the first address of the free array, and then sends the first address of the free array to the upper computer; before the upper computer sends new voltage curve data to the DSP by taking the head address as a starting address, the upper computer needs to confirm that the head address of the idle array is not zero; and after the DSP assigns the new voltage curve data to the idle array, resetting the head address of the idle array.
In this embodiment, by means of the parameter "the head address of the free array", the start address of the voltage curve data to be transmitted next is determined, and the "the head address of the free array" is alternately the head addresses of the two arrays; and after the upper computer receives the data idle array head address which is not zero, transmitting voltage curve data based on the head address as a starting address, wherein if the upper computer receives the data idle array head address which is zero, the upper computer indicates that the transmission process of the idle array head address is wrong or the transmission process is not assigned, the upper computer cannot lock a target address to be transmitted, and the upper computer continuously reads the data idle array head address. The free array head address is cleared to assign a value with the head address of another array.
Optionally, as an embodiment of the present invention, before the host computer sends the new voltage curve data, if the idle array assigns to the end data of the whole voltage curve and is not filled with the idle array, the start data is spliced to the end data again until the idle array is filled, and the starting data address of the voltage curve is switched to N-M, where N is the first address of the idle array, and M is the data length of the whole voltage curve.
For example, the whole voltage curve is 1080098 data spaces, taking 100 data spaces as units, and when the idle array head address is updated to 1080101, the idle array head address is updated to a data length larger than the whole voltage curve, and the initial data address of the voltage curve is converted into 1080101-1080098 =3.
Optionally, as an embodiment of the present invention, the method for determining whether the free array assigns to the end data of the entire voltage curve and does not fill the free array if the first address of the free array assigns to the position of the start data of the certain section of voltage curve to be sent is: and judging whether the idle array head address is larger than the data length of the whole voltage curve.
Optionally, as an embodiment of the present invention, the number of uses of each voltage curve data is: (curve time division/voltage loop execution time), wherein the curve time division is per power curve data sampling time interval.
In this embodiment, when using the voltage curve data, each voltage curve data may be reused multiple times at the current time.
Alternatively, as an embodiment of the present invention, the two groups are alternately used as: after the voltage curve data of one array is completely used, the voltage curve data of the other array is switched for use.
The following describes the execution process and polling method of the method in detail by using the host computer and DSP as the execution terminals.
As shown in fig. 2, the voltage control curve transmission method based on the modbus communication protocol executed in the upper computer is implemented by using the upper computer as an execution terminal, and specifically comprises the following steps:
a read command is sent every 1ms for reading the idle array head address;
after receiving the returned idle array head address, firstly judging whether the idle array head address is zero: if the read command is zero, returning to resend the read command; if not, then:
judging whether the difference value between the idle array head address and the length of the voltage curve is smaller than 100:
if not, 100 voltage curve data are sent based on the received data head address as the initial address;
if yes, splicing the residual data of the voltage curve and the starting data into 100 data for issuing;
and receiving the return message, identifying the correctness and retransmitting the read command to circularly execute the method.
As shown in fig. 3, the voltage control curve transmission method based on the modbus communication protocol executed in the DSP is implemented by using the DSP as an execution terminal, and specifically includes the following steps:
starting to use the voltage curve data in the first array;
after the data in the first array is used, transferring to the data in the second array, and assigning the 'idle array head address' as the first array; judging whether the idle array head address is larger than the whole voltage curve length: if the value is larger than the value, the value is required to be converted into a curve initial data address N-M to carry out assignment again on the idle array head address;
during use of the second array of data: receiving 100 new voltage curve data transmitted by the upper computer, storing the data in a first array, and clearing an idle array head address;
after the data of the second array is used, turning to the data of the first array, and assigning the idle array head address of the next polling as the head address of the second array;
judging whether the idle array head address is larger than the whole voltage curve length: if the value is larger than the value, the value is required to be converted into a curve initial data address N-M+1, and the value is assigned again to the idle array initial address;
during the data using the first array, 100 voltage curve data transmitted by the upper computer are received and stored in the second array, and meanwhile, the idle array head address is cleared;
the method is performed cyclically.
The voltage control curve transmission method based on the modbus communication protocol is provided by integrating the upper computer and the DSP terminal, and comprises the following specific steps:
loading a power curve file by the upper computer, setting a resistance value parameter of the urban rail to be tested, and converting the power curve into a voltage curve;
curve preparation: setting curve time dividing parameters and curve data length parameters according to the power curve file, and issuing the parameters to the DSP through the HMI;
first transmission: clicking a curve preparation completion button, sequentially sending data addresses of a first array and a second array at intervals of 1s after a DSP receives an instruction, and sequentially issuing the first 100 data of the curve to fill the two arrays by an upper computer after the upper computer receives the instruction;
curve inner polling: after the direct current power supply system is started, the DSP starts to utilize curve data in the first array; after the data in the first array of the DSP is utilized, the data of the second array is utilized, and meanwhile, the first array which is polled next is used as an idle array, and the 'idle array head address' is assigned; after the upper computer receives that the 'idle array head address' is not zero, 100 voltage curve data are sent based on the address as the initial address;
the DSP receives 100 voltage curve data transmitted by the upper computer during the data utilization period of the second array, assigns the value to the first array, and clears the 'idle array head address';
after the data of the second array of the DSP is utilized, the data of the first array is utilized, the second array which is polled next time is used as an idle array, the 'idle array head address' is assigned, and the polling is sequentially carried out until the data is transmitted to the tail end of the whole voltage curve;
when the idle array head address is larger than the length of the voltage curve, the idle array head address needs to be converted into a curve initial data address N-M to carry out assignment again, and then second polling of the curve is started;
after the device is shut down, the voltage curve data transmission is not executed any more; clicking a curve preparation completion button in a shutdown state, and retransmitting voltage curve data from the beginning;
in a second aspect, as shown in fig. 4, the embodiment of the present invention further provides a modbus communication protocol based voltage control curve transmission system, including an upper computer and a DSP; the upper computer is used as a master station and the DSP is used as a slave station, the DSP is used for uploading an idle array head address for internally storing voltage curve data, and the upper computer is used for generating the voltage curve data according to the received idle array head address.
The upper computer is used as a master station to communicate with the DSP, reads the idle array head address of the voltage curve array stored in the DSP, and simultaneously transmits the voltage curve data to the DSP; the DSP is used as a slave station to communicate with the upper computer, receives the voltage curve data transmitted by the upper computer, and transmits an idle array head address used for storing the voltage curve data in the DSP to the upper computer.
Optionally, as an embodiment of the present invention, the method further includes HMI and PLC: the upper computer is used as a master station and the HMI is used as a station, the HMI is used for uploading the summarized equipment data and the state information of the power supply system, and the upper computer is used for transmitting the control instruction of the power supply system to the HMI according to the uploaded equipment data and the state information;
the HMI is used as a master station and the DSP is used as a slave station, the DSP is used for uploading equipment data and state information of the power supply system to the HMI, and the HMI is used for further issuing control instructions of the power supply system issued by the upper computer to the DSP;
the HMI is used as a master station and the PLC is used as a slave station, the PLC is used for uploading the state of the switching device in the equipment of the summarized power supply system, and the HMI is used for issuing a switching action instruction to the PLC.
Specifically, the upper computer is used as a master station to communicate with the HMI, reads the equipment data and the state information summarized by the HMI, and issues a control instruction to the HMI; meanwhile, the DSP is used as a slave station to communicate with the HMI, receives a control instruction of the HMI, and transmits equipment data and state information detected by the DSP to the HMI; the PLC is used as a slave station to communicate with the HMI, receives a switching device action instruction issued by the HMI, and transmits the detected state of the switching device in the equipment to the HMI. The HMI is used as a slave station to communicate with the upper computer, receives a control instruction of the upper computer, and transmits summarized equipment data and state information to the upper computer; meanwhile, the HMI is used as a master station to communicate with the DSP, reads data and state information of the equipment, and issues a control instruction to the HMI; in addition, the HMI is used as a master station to communicate with the PLC, reads the state of the switch device in the equipment summarized in the PLC, and simultaneously issues a switch action instruction to the PLC.
Although the present invention has been described in detail by way of preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Various equivalent modifications and substitutions may be made in the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and it is intended that all such modifications and substitutions be within the scope of the present invention or any person skilled in the art to which the present invention pertains will readily occur to those skilled in the art within the field of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (9)

1. The voltage control curve transmission method based on the modbus communication protocol is characterized by comprising the following steps of:
the upper computer transmits the voltage curve to the DSP in a real-time sectionalized and cyclic manner, wherein two arrays are defined in the DSP and are respectively used for storing one section of voltage curve data;
the DSP alternately uses the voltage curve data in the two arrays to control the running of the direct current power supply system, and during the period that the DSP uses the voltage curve data of one array, the upper computer sends a section of new voltage curve data to the DSP by taking the initial address as the initial address to send the initial address to the upper computer, and the DSP assigns the section of new voltage curve data to the idle array.
2. The method of claim 1, comprising, prior to the host computer transmitting the voltage profile to the DSP in real time:
loading a power curve file by the upper computer, setting a resistance value parameter of the urban rail to be tested, and converting the power curve into a voltage curve; setting curve time dividing parameters and curve data length parameters according to the power curve file, and issuing corresponding parameter setting instructions to the DSP through the HMI;
the DSP sequentially sends addresses of the two arrays to the upper computer according to preset interval time after receiving the parameter setting instruction;
and the upper computer sequentially sends two sections of voltage curve data to fill the two arrays after receiving the addresses of the two arrays.
3. The method of claim 1, wherein the DSP first assigns the free array head address before the head address of the other free array sent to the host, and then sends the free array head address to the host;
before the upper computer sends new voltage curve data to the DSP by taking the head address as a starting address, the upper computer needs to confirm that the head address of the idle array is not zero;
and after the DSP assigns the new voltage curve data to the idle array, resetting the head address of the idle array.
4. The method of claim 1, wherein if the free array is assigned to the end data of the entire voltage curve and the free array is not filled before the host computer transmits the new voltage curve data, then the starting data is spliced to the end data until the free array is filled, and the starting data address of the voltage curve is switched to N-M, wherein N is the first address of the free array and M is the data length of the entire voltage curve.
5. The method according to claim 4, wherein the method for determining whether the free array assigns to the end data of the entire voltage curve and does not fill the free array is performed by assigning the first address of the free array to the position of the start data of the voltage curve to be transmitted, is as follows: and judging whether the idle array head address is larger than the data length of the whole voltage curve.
6. The method of claim 1, wherein the number of uses of each voltage profile data is: (curve time division/voltage loop execution time), wherein the curve time division is per power curve data sampling time interval.
7. The method according to claim 1, wherein the two arrays are used alternately in the following manner: after the voltage curve data of one array is completely used, the voltage curve data of the other array is switched for use.
8. The voltage control curve transmission system based on the modbus communication protocol is characterized by comprising an upper computer and a DSP; the upper computer is used as a master station and the DSP is used as a slave station, the DSP is used for uploading an idle array head address for internally storing voltage curve data, and the upper computer is used for generating the voltage curve data according to the received idle array head address.
9. The system of claim 8, further comprising an HMI and a PLC: the upper computer is used as a master station and the HMI is used as a station, the HMI is used for uploading the summarized equipment data and the state information of the power supply system, and the upper computer is used for transmitting the control instruction of the power supply system to the HMI according to the uploaded equipment data and the state information;
the HMI is used as a master station and the DSP is used as a slave station, the DSP is used for uploading equipment data and state information of the power supply system to the HMI, and the HMI is used for further issuing control instructions of the power supply system issued by the upper computer to the DSP;
the HMI is used as a master station and the PLC is used as a slave station, the PLC is used for uploading the state of the switching device in the equipment of the summarized power supply system, and the HMI is used for issuing a switching action instruction to the PLC.
CN202311259731.3A 2023-09-27 2023-09-27 Modbus communication protocol-based voltage control curve transmission method and system Pending CN117336112A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311259731.3A CN117336112A (en) 2023-09-27 2023-09-27 Modbus communication protocol-based voltage control curve transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311259731.3A CN117336112A (en) 2023-09-27 2023-09-27 Modbus communication protocol-based voltage control curve transmission method and system

Publications (1)

Publication Number Publication Date
CN117336112A true CN117336112A (en) 2024-01-02

Family

ID=89276580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311259731.3A Pending CN117336112A (en) 2023-09-27 2023-09-27 Modbus communication protocol-based voltage control curve transmission method and system

Country Status (1)

Country Link
CN (1) CN117336112A (en)

Similar Documents

Publication Publication Date Title
CN102947813B (en) For the method by CANopen bus transfer data
CN1768487B (en) Packet communication between a collecting unit and a plurality of control devices over the power supply line
US8230146B2 (en) Communication method and master-slave system for a field bus configured according to the AS-interface standard
CN109257133B (en) Whole-network clock synchronization method and device applied to LTE (Long term evolution) rail transit network
CN105652785A (en) PLC (programmable logic controller) communication module based on IEC (international electrotechnical commission) 60870-5-104 telecontrol protocol
CN117081706B (en) Data sharing method, device and system
CN109217963B (en) Time alignment method for real-time phasor data of wide area measurement system of power distribution network
KR100201209B1 (en) Telemeter telecontrol system
CN103036610B (en) A kind of system for chain type energy storage communication implementation method with redundancy and system
CN117336112A (en) Modbus communication protocol-based voltage control curve transmission method and system
CN103731324A (en) Multichannel real-time concurrent charging data simulation generation method and device
CN104753899B (en) A kind of open bus structures with multi-tier structure
CN103518337B (en) Transmission line address duplication detection method and substation terminal used for same method
CN110209358B (en) NVMe equipment storage speed improving method based on FPGA
CN107800465A (en) A kind of electric line carrier communication transmission method
CN113572629B (en) Message transmission method, terminal and storage medium
CN109327832B (en) Single-type multi-terminal low-power-consumption wireless transmission system and transmission method thereof
CN112367250A (en) Internet of things multi-protocol gateway
JP2022512129A (en) High-voltage pulse generator and its communication method
CN102780385B (en) The control method of a kind of cascade converter and relevant device
CN113709842B (en) Method, system, controller and power distribution field area network for data transmission scheduling
CN115766595B (en) PLC internal rapid scanning communication system
CN113938196B (en) Bus network communication method based on FC-AE-1553 optical fiber bus architecture
CN202421861U (en) Communication device of wind turbine generator unit
US11184194B2 (en) Distributed processing of process data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination