CN113986985B - IO reading method, system, equipment and storage medium for energy management - Google Patents
IO reading method, system, equipment and storage medium for energy management Download PDFInfo
- Publication number
- CN113986985B CN113986985B CN202111592981.XA CN202111592981A CN113986985B CN 113986985 B CN113986985 B CN 113986985B CN 202111592981 A CN202111592981 A CN 202111592981A CN 113986985 B CN113986985 B CN 113986985B
- Authority
- CN
- China
- Prior art keywords
- instruction
- data
- address data
- sending
- equipment
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- 238000003860 storage Methods 0.000 title claims abstract description 20
- 230000004913 activation Effects 0.000 claims abstract description 26
- 230000002452 interceptive effect Effects 0.000 claims abstract description 24
- 230000003993 interaction Effects 0.000 claims description 23
- 238000004573 interface analysis Methods 0.000 claims description 12
- 238000004891 communication Methods 0.000 claims description 10
- 238000004458 analytical method Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims 1
- 230000008569 process Effects 0.000 description 8
- 238000012545 processing Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000004146 energy storage Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009776 industrial production Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- Computational Linguistics (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Primary Health Care (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to the field of data reading, and discloses an IO reading method, system, equipment and storage medium for energy management. The IO reading method for energy management comprises the following steps: the energy management system receives the query instruction, reads the address data in the query instruction, and sends an information reading instruction corresponding to the address data to the IO interactive system; the IO interactive system receives the information reading instruction and judges whether IO equipment corresponding to the address data in the information reading instruction can read the data or not; if the data cannot be read, sending an activation instruction to IO equipment corresponding to the address data through the search port, and receiving result data fed back by the IO equipment; and according to the result data and the information reading instruction, sending the IO reading instruction to the IO equipment corresponding to the address data, receiving the information data fed back by the IO equipment, and sending the information data to the energy management system.
Description
Technical Field
The present invention relates to the field of data reading, and in particular, to an IO reading method, system, device, and storage medium for energy management.
Background
In the aspect of electric energy storage management, a core controls data of a plurality of regions, and the cross-region data transmission has no problem in technical implementation. However, a problem that the internet cannot meet occurs, which is because the TCP/IP protocol may continuously change the virtual addresses of some devices, but the actual spatial locations of the power scheduling devices may not change, and if the TCP/IP protocol is simply used to process data of power IO devices in different regions, address loss may be caused.
In order to solve the address missing problem, some changes applied in industrial scenes need to be made to the existing TCP/IP protocol to ensure that the IO device can still be read and found at any time on the core control management device, so that the position is not lost after a period of time, and large-scale searching is required, which not only wastes resources, but also has low efficiency and is an unacceptable defect in industrial production. Therefore, a technology is needed to solve the technical problem that the situation cannot be found in the intelligent IO device.
Disclosure of Invention
The invention mainly aims to solve the technical problem that the intelligent IO equipment cannot be searched.
The first aspect of the present invention provides an IO reading method for energy management, which is applied to an IO reading system for energy management, and the IO reading system for energy management includes: the energy management system comprises an energy management system and an IO interactive system, wherein the IO reading method of the energy management comprises the following steps:
the energy management system receives an input query instruction, reads address data in the query instruction, and sends an information reading instruction corresponding to the address data to the IO interactive system;
the IO interactive system receives the information reading instruction and judges whether IO equipment corresponding to address data in the information reading instruction can read data or not;
if the data cannot be read, sending an activation instruction to IO equipment corresponding to the address data through a preset search port, and receiving result data fed back by the IO equipment;
according to the result data and the information reading instruction, sending an IO reading instruction to IO equipment corresponding to the address data, receiving information data fed back by the IO equipment, and sending the information data to the energy management system;
wherein the determining whether the IO device corresponding to the address data in the information reading instruction can read data includes:
writing the address data into a preset DO analysis instruction frame to obtain a DO interface analysis instruction;
based on a preset search port, sending the DO interface analysis instruction to IO equipment corresponding to address data in the information reading instruction;
and receiving the state information fed back by the IO equipment, analyzing the state character string in the state information and judging whether the IO equipment has a closed route.
Optionally, in a first implementation manner of the first aspect of the present invention, the analyzing the status string in the status information to determine whether the IO device has a closed route includes:
reading the status string in the status information;
splitting the state character string to obtain a state character set, and judging whether preset closed characters exist in the state character set or not;
if yes, determining that the IO equipment has a closed circuit;
and if not, determining that the IO equipment does not have a closed line.
Optionally, in a second implementation manner of the first aspect of the present invention, the sending the activation instruction to the IO device corresponding to the address data through the preset search port includes:
writing the closed character into a command sending frame to obtain an activation command;
and sending the activation instruction to the IO equipment corresponding to the address data based on the search port.
Optionally, in a third implementation manner of the first aspect of the present invention, the sending an IO reading instruction to an IO device corresponding to the address data according to the result data and the information reading instruction, and receiving the result data fed back by the IO device includes:
extracting a closed route in the result data, extracting a head character string of the information reading instruction, and generating an IO reading instruction according to the closed route and the head character string;
sending the IO reading instruction to IO equipment corresponding to the address data;
and receiving information data fed back by the IO equipment.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the sending the activation instruction to the IO device corresponding to the address data through the preset search port includes:
inquiring a search port in a preset SQL database;
and based on a Modbus RTU communication protocol, sending an activation instruction to the IO equipment corresponding to the address data through the search port.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the sending the information reading instruction corresponding to the address data to the IO interaction system includes:
and sending an information reading instruction corresponding to the address data to the IO interactive system through a TCP/IP communication protocol.
A second aspect of the present invention provides an IO reading system for energy management, including:
an energy management system and an IO interactive system;
the energy management system is used for receiving an input query instruction, reading address data in the query instruction, and sending an information reading instruction corresponding to the address data to the IO interactive system;
the IO interactive system is used for receiving the information reading instruction and judging whether IO equipment corresponding to address data in the information reading instruction can read data or not;
if the data cannot be read, sending an activation instruction to IO equipment corresponding to the address data through a preset search port, and receiving result data fed back by the IO equipment;
according to the result data and the information reading instruction, sending an IO reading instruction to IO equipment corresponding to the address data, receiving information data fed back by the IO equipment, and sending the information data to the energy management system;
wherein, the IO interactive system includes:
the filling unit is used for writing the address data into a preset DO analysis instruction frame to obtain a DO interface analysis instruction;
the sending unit is used for sending the DO interface analysis instruction to IO equipment corresponding to address data in the information reading instruction based on a preset search port;
and the receiving and analyzing unit is used for receiving the state information fed back by the IO equipment, analyzing the state character string in the state information and judging whether the IO equipment has a closed route.
A third aspect of the present invention provides an IO reading device for energy management, including: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line; the at least one processor calls the instructions in the memory to cause the energy-managed IO read device to perform the energy-managed IO read method described above.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein instructions, which, when run on a computer, cause the computer to execute the above-mentioned IO reading method for energy management.
In this embodiment, the IO reading device and the IO interaction system perform address confirmation, and then the IO reading device confirmed by the IO interaction system is transmitted to the energy management system, so that the energy management system does not need to query the IO reading device circularly at every time, and the technical problem that the intelligent IO device cannot be searched is solved.
Drawings
Fig. 1 is a schematic diagram of an embodiment of an IO reading method for energy management according to an embodiment of the present invention;
FIG. 2 is a diagram of an embodiment of an IO read system for energy management in an embodiment of the invention;
fig. 3 is a schematic diagram of an embodiment of an IO reading device for energy management according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides an IO reading method, system, equipment and storage medium for energy management.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a detailed flow of an embodiment of the present invention is described below, and with reference to fig. 1, an embodiment of an IO reading method for energy management in an embodiment of the present invention is an IO reading method for energy management, where the IO reading method for energy management is applied to an IO reading system for energy management, and the IO reading system for energy management includes: the energy management system and the IO interactive system, the IO reading method of the energy management comprises the following steps:
101. the energy management system receives an input query instruction, reads address data in the query instruction, and sends an information reading instruction corresponding to the address data to the IO interactive system;
in this embodiment, the energy management system receives a query instruction input by a user, the user may only carry an IO device identifier when processing the query instruction, but the query is unlikely to be directly queried by the IO device identifier, address data of the IO device needs to be pulled from a data table of the identifier, the address data is written into an information reading instruction, then the information reading instruction is sent to the IO interaction system, the IO interaction system completes search and activation of the address data, abstraction is performed in the IO interaction system, the user cannot see a subsequent processing process, and the energy management system is not required to call the IO devices distributed in various places.
Further, "sending the information reading instruction corresponding to the address data to the IO interaction system" may perform the following steps:
1011. and sending an information reading instruction corresponding to the address data to the IO interactive system through a TCP/IP communication protocol.
In step 1011, the energy management system and the IO interactive system are at a longer distance, such distance is inappropriate as UDP protocol, etc., and TCP/IP protocol must be used to ensure the stability of data communication between the two systems.
102. The IO interactive system receives the information reading instruction and judges whether IO equipment corresponding to the address data in the information reading instruction can read the data or not;
in this embodiment, the IO interaction system is a system physically connected to the IO device, and the IO device has a plurality of interfaces, which are exemplified by 4 interfaces. If the four interfaces of the IO device are not opened, the IO interaction system reads from the data output interface (DO) only after the IO device interface is opened, and if the IO device cannot read data, the IO interaction system only has an electrical connection relationship with the IO device, and there is no way to read data from the electrical connection, so it is determined whether the IO device can read data first.
Further, at 102, the following steps may be performed:
1021. writing the address data into a preset DO analysis instruction frame to obtain a DO interface analysis instruction;
1022. analyzing a DO interface into IO equipment corresponding to address data in the information reading instruction based on a preset search port;
1023. and receiving the state information fed back by the IO equipment, analyzing the state character string in the state information and judging whether the IO equipment has a closed route.
In 1021-.
TABLE 1 DO interface analysis instruction example
And when the IO equipment receives the command data of 0X010100640004999C, data feedback is carried out, wherein the feedback data can be 0X010101001D59, and the information state of the DO interface can be obtained by analyzing the character string.
Preferably, at 1023 the following steps can be performed:
10231. reading the status string in the status information;
10232. splitting the state character string to obtain a state character set, and judging whether preset closed characters exist in the state character set or not;
10233. if yes, determining that the IO equipment has a closed circuit;
10234. and if not, determining that the IO device does not have a closed line.
In the 10231-10234 embodiments, the feedback data analysis of "0X 010101001D 59" may refer to the examples of feedback data of table 2.
Table 2 structure explanation example of feedback data
When the value "00" in "0X 010101001D 59" is converted into "0000" as a state character string, the state character string is split into {0, 0, 0, 0} as a state character set, and {0, 0, 0, 0} does not store a closed character. Of course, the feedback data can also be written directly by using 0000, so that conversion is not needed and judgment is directly carried out according to characters.
103. If the data cannot be read, sending an activation instruction to IO equipment corresponding to the address data through a preset search port, and receiving result data fed back by the IO equipment;
in this embodiment, the relay operation can be controlled by the register 0064, and the common terminal and the port indicating open are turned on after 0 is written, and the common terminal and the port indicating closed are turned on after 1 is written. And the written channel is a connected general channel, and the command is directly written after physical connection.
Further, "sending the activation instruction to the IO device corresponding to the address data through the preset search port" may perform the following steps:
1031. writing the closed character into a command sending frame to obtain an activation command;
1032. and sending the activation instruction to the IO equipment corresponding to the address data based on the search port.
In 1031-1032 embodiment, the issue instruction frame may be 0X () 09 () () 533A, where 01 device needs to be adjusted, the register is 0064, and the written state is closed 0100 binary conversion to 04, which results in 0X0109006401533A, and the activate instruction may refer to the activate instruction reference example of table 3.
TABLE 3 Activate Instructions reference example
Preferably, the "sending an activation instruction to the IO device corresponding to the address data through the preset search port" may perform the following steps:
1033. inquiring a search port in a preset SQL database;
1034. and based on a Modbus RTU communication protocol, the activation instruction is sent to the IO equipment corresponding to the address data through the search port.
In the step 1033 and 1034, the SQL database stores the information of the dedicated port for searching, another implementation process may use Access to capture the information of the search port, and the IO switching system and the IO device use the Modbus RTU communication protocol, so that the IO device may also connect SCADA software devices, PLC devices, HMI devices, and improve the actual interaction range of the IO device.
104. And according to the result data and the information reading instruction, sending the IO reading instruction to the IO equipment corresponding to the address data, receiving the information data fed back by the IO equipment, and sending the information data to the energy management system.
In this embodiment, the information reading instruction may be a reading filter parameter, a state of the reading data input port (DI), a state of the reading data input port (D0), and different instructions may be defined by themselves. If the result data is that a certain port is connected, the port address can be brought, the definition function code and the processing instruction are modified according to the format of the table 1, then the IO device feeds back the data, and the data is transmitted back to the energy management system, so that the state query processing process of a certain remote IO device can be completed.
Further, the following steps may be performed when "according to the result data and the information reading instruction, sending the IO reading instruction to the IO device corresponding to the address data, and receiving the information data fed back by the IO device:
1041. extracting a closed route in the result data, extracting a head character string of the information reading instruction, and generating an IO reading instruction according to the closed route and the head character string;
1042. sending an IO reading instruction to IO equipment corresponding to the address data;
1043. and receiving information data fed back by the IO equipment.
In the 1041-1043 step, the closed line is 0001, that is, the fourth line, the information reading instruction is to read the filter parameter of the IO device with the head character string of 0X0106, and 06 is the self-defined function code, so as to generate 0X0106012C00010004842B, where the IO reading instruction may refer to the IO reading instruction example in table 4.
TABLE 4 IO read instruction example
After the instruction is sent to the IO device, the data fed back by the IO device is as follows: 0X010608000100010001400014F9DC, where the feedback data may refer to the IO feedback data example of table 5.
TABLE 5 IO feedback data example
In this embodiment, the IO reading device and the IO interaction system perform address confirmation, and then the IO reading device confirmed by the IO interaction system is transmitted to the energy management system, so that the energy management system does not need to query the IO reading device circularly at every time, and the technical problem that the intelligent IO device cannot be searched is solved.
With reference to fig. 2, the above description is made on an IO reading method for energy management in an embodiment of the present invention, and an IO reading system for energy management in an embodiment of the present invention is described below, where the IO reading system for energy management in an embodiment of the present invention includes:
an energy management system 201 and an IO interaction system 202;
the energy management system 201 is configured to receive an input query instruction, read address data in the query instruction, and send an information reading instruction corresponding to the address data to the IO interaction system;
the IO interaction system 202 is configured to read the information reading instruction, and determine whether IO devices corresponding to address data in the information reading instruction can read data;
if the data cannot be read, sending an activation instruction to IO equipment corresponding to the address data through a preset search port, and receiving result data fed back by the IO equipment;
according to the result data and the information reading instruction, an IO reading instruction is sent to IO equipment corresponding to the address data, the information data fed back by the IO equipment is received, and the information data is sent to the energy management system.
Wherein, the IO interaction system 202 includes:
a filling unit 2021, configured to write the address data into a preset DO analysis instruction frame, so as to obtain a DO interface analysis instruction;
a sending unit 2022, configured to send the DO interface analysis instruction to the IO device corresponding to the address data in the information reading instruction based on a preset search port;
the receiving and analyzing unit 2023 is configured to receive the state information fed back by the IO device, analyze a state character string in the state information, and determine whether the IO device has a closed route.
The receiving and analyzing unit 2023 is specifically configured to:
reading the status string in the status information;
splitting the state character string to obtain a state character set, and judging whether preset closed characters exist in the state character set or not;
if yes, determining that the IO equipment has a closed circuit;
and if not, determining that the IO equipment does not have a closed line.
Wherein, the IO interaction system 202 is specifically configured to:
writing the closed character into a command sending frame to obtain an activation command;
and sending the activation instruction to the IO equipment corresponding to the address data based on the search port.
Wherein, the IO interaction system 202 may further specifically be configured to:
extracting a closed route in the result data, extracting a head character string of the information reading instruction, and generating an IO reading instruction according to the closed route and the head character string;
sending the IO reading instruction to IO equipment corresponding to the address data;
and receiving information data fed back by the IO equipment.
The energy management system 201 is specifically configured to:
and sending an information reading instruction corresponding to the address data to the IO interactive system through a TCP/IP communication protocol.
Wherein, the IO interaction system 202 may further specifically be configured to:
inquiring a search port in a preset SQL database;
and based on a Modbus RTU communication protocol, sending an activation instruction to the IO equipment corresponding to the address data through the search port.
In this embodiment, the IO reading device and the IO interaction system perform address confirmation, and then the IO reading device confirmed by the IO interaction system is transmitted to the energy management system, so that the energy management system does not need to query the IO reading device circularly at every time, and the technical problem that the intelligent IO device cannot be searched is solved.
Fig. 2 describes the IO reading system for energy management in the embodiment of the present invention in detail from the perspective of a modular functional entity, and the IO reading device for energy management in the embodiment of the present invention is described in detail from the perspective of hardware processing.
Fig. 3 is a schematic structural diagram of an energy-managed IO reading device according to an embodiment of the present invention, where the energy-managed IO reading device 300 may have a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 310 (e.g., one or more processors) and a memory 320, and one or more storage media 330 (e.g., one or more mass storage devices) storing applications 333 or data 332. Memory 320 and storage media 330 may be, among other things, transient or persistent storage. The program stored on the storage medium 330 may include one or more modules (not shown), each of which may include a series of instruction operations in the IO reading device 300 that can manage energy. Further, the processor 310 may be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the energy-managed IO reading device 300.
The energy management based IO reading device 300 may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input-output interfaces 360, and/or one or more operating systems 331, such as Windows server, Mac OS X, Unix, Linux, FreeBSD, and the like. Those skilled in the art will appreciate that the energy management IO reading device configuration illustrated in fig. 3 does not constitute a limitation of an energy management based IO reading device, and may include more or fewer components than those illustrated, or some components in combination, or a different arrangement of components.
The present invention also provides a computer readable storage medium, which may be a non-volatile computer readable storage medium, or a volatile computer readable storage medium, having stored therein instructions, which, when executed on a computer, cause the computer to perform the steps of the IO reading method for energy management.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described system or system and unit may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (9)
1. An energy management IO reading method is applied to an energy management IO reading system, and the energy management IO reading system comprises: the energy management system comprises an energy management system and an IO interactive system, wherein the IO reading method of the energy management comprises the following steps:
the energy management system receives an input query instruction, reads address data in the query instruction, and sends an information reading instruction corresponding to the address data to the IO interactive system;
the IO interactive system receives the information reading instruction and judges whether IO equipment corresponding to address data in the information reading instruction can read data or not;
if the data cannot be read, sending an activation instruction to IO equipment corresponding to the address data through a preset search port, and receiving result data fed back by the IO equipment;
according to the result data and the information reading instruction, sending an IO reading instruction to IO equipment corresponding to the address data, receiving information data fed back by the IO equipment, and sending the information data to the energy management system;
wherein the determining whether the IO device corresponding to the address data in the information reading instruction can read data includes:
writing the address data into a preset DO analysis instruction frame to obtain a DO interface analysis instruction;
based on a preset search port, sending the DO interface analysis instruction to IO equipment corresponding to address data in the information reading instruction;
and receiving the state information fed back by the IO equipment, analyzing the state character string in the state information and judging whether the IO equipment has a closed route.
2. The IO reading method for energy management according to claim 1, wherein the analyzing the status string in the status information to determine whether the IO device has a closed route includes:
reading a state character string in the state information;
splitting the state character string to obtain a state character set, and judging whether preset closed characters exist in the state character set or not;
if yes, determining that the IO equipment has a closed circuit;
and if not, determining that the IO equipment does not have a closed line.
3. The IO reading method for energy management according to claim 1, wherein the sending an activation instruction to the IO device corresponding to the address data through a preset search port includes:
writing the closed character into a command sending frame to obtain an activation command;
and sending the activation instruction to the IO equipment corresponding to the address data based on the search port.
4. The IO reading method for energy management according to claim 1, wherein the sending an IO reading instruction to an IO device corresponding to the address data according to the result data and the information reading instruction, and receiving information data fed back by the IO device includes:
extracting a closed route in the result data, extracting a head character string of the information reading instruction, and generating an IO reading instruction according to the closed route and the head character string;
sending the IO reading instruction to IO equipment corresponding to the address data;
and receiving information data fed back by the IO equipment.
5. The IO reading method for energy management according to claim 1, wherein the sending an activation instruction to the IO device corresponding to the address data through a preset search port includes:
inquiring a search port in a preset SQL database;
and based on a Modbus RTU communication protocol, sending an activation instruction to the IO equipment corresponding to the address data through the search port.
6. The IO reading method for energy management according to claim 1, wherein the sending the information reading instruction corresponding to the address data to the IO interaction system includes:
and sending an information reading instruction corresponding to the address data to the IO interactive system through a TCP/IP communication protocol.
7. An energy-managed IO read system, comprising:
an energy management system and an IO interactive system;
the energy management system is used for receiving an input query instruction, reading address data in the query instruction, and sending an information reading instruction corresponding to the address data to the IO interactive system;
the IO interactive system is used for receiving the information reading instruction and judging whether IO equipment corresponding to address data in the information reading instruction can read data or not;
if the data cannot be read, sending an activation instruction to IO equipment corresponding to the address data through a preset search port, and receiving result data fed back by the IO equipment;
according to the result data and the information reading instruction, sending an IO reading instruction to IO equipment corresponding to the address data, receiving information data fed back by the IO equipment, and sending the information data to the energy management system;
wherein, the IO interactive system includes:
the filling-in unit is used for writing the address data into a preset DO analysis instruction frame to obtain a DO interface analysis instruction;
the sending unit is used for sending the DO interface analysis instruction to IO equipment corresponding to address data in the information reading instruction based on a preset search port;
and the receiving and analyzing unit is used for receiving the state information fed back by the IO equipment, analyzing the state character string in the state information and judging whether the IO equipment has a closed route.
8. An energy managed IO read device, the energy managed IO read device comprising: a memory having instructions stored therein and at least one processor, the memory and the at least one processor interconnected by a line;
the at least one processor invoking the instructions in the memory to cause the energy-managed IO read device to perform the energy-managed IO read method of any of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the IO reading method for energy management according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111592981.XA CN113986985B (en) | 2021-12-24 | 2021-12-24 | IO reading method, system, equipment and storage medium for energy management |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111592981.XA CN113986985B (en) | 2021-12-24 | 2021-12-24 | IO reading method, system, equipment and storage medium for energy management |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113986985A CN113986985A (en) | 2022-01-28 |
CN113986985B true CN113986985B (en) | 2022-03-11 |
Family
ID=79734195
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111592981.XA Active CN113986985B (en) | 2021-12-24 | 2021-12-24 | IO reading method, system, equipment and storage medium for energy management |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113986985B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116344016B (en) * | 2023-04-23 | 2024-04-26 | 深圳作为科技有限公司 | Timing task execution method of networking nursing machine and related system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0421471A1 (en) * | 1989-10-06 | 1991-04-10 | Mütec Mikrotechnik Und Überwachungssysteme Gmbh | Communication method for a control device, consisting of a central unit and a plurality of peripheral units |
JPH06332696A (en) * | 1993-05-20 | 1994-12-02 | Matsushita Electric Ind Co Ltd | Microcomputer |
CN1928767A (en) * | 2005-09-07 | 2007-03-14 | 鸿富锦精密工业(深圳)有限公司 | Method for protecting computer input/output interfaces |
WO2012127599A1 (en) * | 2011-03-22 | 2012-09-27 | 富士通株式会社 | Input/output control device, information processing system, and log sampling program |
JP2012221373A (en) * | 2011-04-12 | 2012-11-12 | Digital Electronics Corp | Computer system |
CN107332726A (en) * | 2016-04-29 | 2017-11-07 | 华为技术有限公司 | A kind of detection method and device of communication link |
CN107948105A (en) * | 2018-01-02 | 2018-04-20 | 联想(北京)有限公司 | The method and system of the port status of control device |
CN111192611A (en) * | 2018-11-15 | 2020-05-22 | 爱思开海力士有限公司 | Semiconductor device with a plurality of transistors |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140143864A1 (en) * | 2012-11-21 | 2014-05-22 | Snoopwall Llc | System and method for detecting, alerting and blocking data leakage, eavesdropping and spyware |
-
2021
- 2021-12-24 CN CN202111592981.XA patent/CN113986985B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0421471A1 (en) * | 1989-10-06 | 1991-04-10 | Mütec Mikrotechnik Und Überwachungssysteme Gmbh | Communication method for a control device, consisting of a central unit and a plurality of peripheral units |
JPH06332696A (en) * | 1993-05-20 | 1994-12-02 | Matsushita Electric Ind Co Ltd | Microcomputer |
CN1928767A (en) * | 2005-09-07 | 2007-03-14 | 鸿富锦精密工业(深圳)有限公司 | Method for protecting computer input/output interfaces |
WO2012127599A1 (en) * | 2011-03-22 | 2012-09-27 | 富士通株式会社 | Input/output control device, information processing system, and log sampling program |
JP2012221373A (en) * | 2011-04-12 | 2012-11-12 | Digital Electronics Corp | Computer system |
CN107332726A (en) * | 2016-04-29 | 2017-11-07 | 华为技术有限公司 | A kind of detection method and device of communication link |
CN107948105A (en) * | 2018-01-02 | 2018-04-20 | 联想(北京)有限公司 | The method and system of the port status of control device |
CN111192611A (en) * | 2018-11-15 | 2020-05-22 | 爱思开海力士有限公司 | Semiconductor device with a plurality of transistors |
Non-Patent Citations (3)
Title |
---|
一种基于 MODBUS 协议的工业控制系统设计;程杨 等;《机械设计与制造》;20110108(第1期);第1-3页 * |
基于 C/S 架构的分布式电源监控系统的设计与实现;孔祥玥 等;《新能源进展》;20180508;第6卷(第2期);第151-156页 * |
基于Modbus协议的智能断路器通信模块设计与实现;罗轶峰 等;《计算机系统应用》;20100315;第19卷(第3期);第128-132页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113986985A (en) | 2022-01-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2460258B1 (en) | Method and device for auto-generating goose signal connection topology from substation level | |
CN101945013A (en) | System and method for implementing server configuration management | |
CN110008267B (en) | Data processing system and method | |
CN105082540A (en) | Method for controlling 3D printer through 3D slicing device | |
CN104253858B (en) | A kind of mobile data synchronization conflict pretreatment and digestion procedure based on packet | |
DE60316466T2 (en) | SUPPORTING MULTIPLE NATIVE NETWORK PROTOCOL IMPLEMENTATIONS IN A SINGLE SYSTEM | |
CN113986985B (en) | IO reading method, system, equipment and storage medium for energy management | |
CN113039498A (en) | Method for commissioning field devices in an industrial system network | |
CN110912782A (en) | Data acquisition method, device and storage medium | |
CN110851234A (en) | Log processing method and device based on docker container | |
CN115086379B (en) | Numerical control machine tool data acquisition method based on edge calculation and virtualization technology | |
CN107733716A (en) | Distributed file system log analysis method, system, equipment and storage medium | |
CN113395180B (en) | Industrial real-time big data acquisition and release method and industrial real-time big data platform | |
CN116743790B (en) | Device data acquisition, device data analysis method and device and computer device | |
CN112416998A (en) | System and method for processing data of electric power machine room equipment | |
CN110209722A (en) | A kind of data-interface for data exchange | |
CN112491596B (en) | Cloud-based fault processing method and device | |
CN115604343A (en) | Data transmission method, system, electronic equipment and storage medium | |
CN110134086B (en) | Data acquisition and control device for realizing middleware function in digital workshop | |
CN105630634A (en) | Application system disaster recovery backup switching method and device | |
CN113381907A (en) | Log collection method and device, electronic equipment and storage medium | |
CN106850345B (en) | Method for monitoring and inquiring network user state | |
CN117040963B (en) | Method and system for quick communication of distributed IO master and slave | |
CN102075452B (en) | Method, device and system for transmitting information | |
CN216623029U (en) | Auxiliary data processing device and system for programmable logic controller |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |