CN113590106A - Industrial control graphical programming environment operation state data monitoring system and method - Google Patents

Industrial control graphical programming environment operation state data monitoring system and method Download PDF

Info

Publication number
CN113590106A
CN113590106A CN202110709531.8A CN202110709531A CN113590106A CN 113590106 A CN113590106 A CN 113590106A CN 202110709531 A CN202110709531 A CN 202110709531A CN 113590106 A CN113590106 A CN 113590106A
Authority
CN
China
Prior art keywords
data
monitoring
upper computer
memory
linked list
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.)
Granted
Application number
CN202110709531.8A
Other languages
Chinese (zh)
Other versions
CN113590106B (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.)
Xuji Group Co Ltd
XJ Electric Co Ltd
Original Assignee
Xuji Group Co Ltd
XJ Electric 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 Xuji Group Co Ltd, XJ Electric Co Ltd filed Critical Xuji Group Co Ltd
Priority to CN202110709531.8A priority Critical patent/CN113590106B/en
Publication of CN113590106A publication Critical patent/CN113590106A/en
Application granted granted Critical
Publication of CN113590106B publication Critical patent/CN113590106B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to a system and a method for monitoring running state data of an industrial control graphical programming environment.A graphical program is built in an upper computer, a memory distribution linked list is formed according to a storage structure of the graphical program, and an execution code and the memory distribution linked list are downloaded to a target machine after compiling; the target machine creates a main thread and a background thread, the main thread initializes the interpreter and periodically executes the execution code, and the background thread is responsible for data interaction with the upper computer; the upper computer sends a dynamic monitoring command message to the corresponding target machine according to the configuration information; and the target machine is switched to the background thread to receive the dynamic monitoring command message after the execution period of the main thread code is finished, analyzes the command message, collects monitoring data, packages the data and sends the data to the upper computer, and dynamically refreshes and displays the data in real time. The invention realizes real-time dynamic refreshing of monitoring data in the program running process, and the dynamic refreshing monitoring function does not influence the execution function of the control program.

Description

Industrial control graphical programming environment operation state data monitoring system and method
Technical Field
The invention relates to the technical field of data processing, in particular to a system and a method for monitoring operation state data of an industrial control graphical programming environment.
Background
Compared with the traditional programming language, the graphical programming adopts the concept of 'data flow' in the graphical programming, so that the programming is completed while the program design is completed in a flow chart, and a user does not need to be familiar with the hardware implementation and the rules of a specific text type programming language, only needs to know the function realized by each graphical programming component, and can complete the complex application programming design by configuring, arranging and connecting and locking the graphical programming components according to the design requirements of a target object, so that a simple and intuitive graphical programming mode is more and more favored by the user in the field of industrial automation control.
Most of the existing graphical programming software is mature in programming use and has an efficient graphical component editing function and an anti-collision wiring algorithm, but the functions of debugging, analyzing, running and the like of a graphical program are that a user cannot directly observe real-time running state data of each graphical programming component, so that the debugging of the function of the whole software is not facilitated; for a complex graphical programming design, if only from the view of an execution result, the method cannot effectively help a user to determine the correctness of program execution; once the program execution result does not meet the expected requirements, the reason is difficult to analyze from the design level; in some control domains, once the program is normally run, it is not allowed to be modified or recompiled, and it is difficult to process if the output of part of the variables needs to be checked at this time.
The general graphical programming software can only judge whether the program is executed correctly according to the execution result. If the execution result cannot reach the expectation, it is difficult to judge that the link has a problem.
The graphical programming software with the display component can dynamically view components and variables, but the components to be displayed need to be recompiled when being replaced, so that the graphical program development efficiency is reduced; and after the industrial automation program runs normally, recompilation is not allowed.
Special debugging means such as serial port printing, simulator debugging and the like are generally used only in the early design and development, and field operators often do not have the professional debugging skills.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides an industrial control graphical programming environment operation state data monitoring system and method, which can dynamically refresh monitoring data in an operation state of a graphical program, can interact with software of a user, and greatly improves the development experience and the development efficiency of the user.
In order to achieve the above object, the present invention provides a method for monitoring data of an industrial control graphical programming environment operating state, comprising:
completing graphical program construction in the upper computer, forming a memory distribution linked list according to a storage structure of the graphical program, and downloading an execution code and the memory distribution linked list to a target machine which correspondingly executes industrial control after compiling;
the target machine manages the memory according to the memory allocation linked list, and creates a main thread and a background thread, wherein the main thread initializes the interpreter and periodically executes the execution code, and the background thread is responsible for data interaction with the upper computer;
the upper computer sends a dynamic monitoring command message to a corresponding target machine according to the configuration information;
the target machine is switched into the background thread to receive the dynamic monitoring command message after the execution period of the main thread code is finished, analyzes the command message, collects monitoring data, packages the data and sends the data to the upper computer;
and after receiving the monitoring data, the upper computer dynamically refreshes and displays the monitoring data in real time.
Further, forming a memory allocation linked list according to the storage structure of the graphical program, including:
the upper computer obtains a storage structure of the graphical program, traverses a tree structure in the graphical program, forms components according to tree nodes, and forms a memory distribution linked list containing memory distribution information of each component.
Further, the memory allocation information includes a thread number of the component, an execution sequence number in the thread, a virtual page number of the component, a unique data segment number, and an occupied data space.
Further, the target machine managing the memory according to the memory allocation linked list includes:
and the target machine analyzes the memory allocation linked list, allocates memories for the components in the memory one by one according to the memory allocation linked list, associates the data segment numbers with the memory addresses in the target machine and stores the data segment numbers in the memory allocation linked list, and the size of the allocated memories meets the requirement of data space.
Further, the sending, by the upper computer, the dynamic monitoring command message according to the configuration information includes:
dividing the virtual page according to the position of the component in the virtual map and the proportion;
configuring single-page dynamic monitoring of virtual pages or simultaneous dynamic monitoring of multiple virtual pages;
respectively counting the components in the virtual pages, combining the number of the virtual pages and the number of the data segment corresponding to the component in each virtual page, adding a custom command frame header, combining into an online monitoring command message and sending the online monitoring command message to a target machine.
Further, collect monitoring data and send the host computer after data package to, include:
receiving a dynamic monitoring command message in a background thread, obtaining a memory address from a memory allocation linked list according to a graphical component data segment number in the dynamic monitoring command, reading current component data stored in the memory address, combining the component data according to virtual pages, adding a custom response frame header, and combining the component data into a dynamic monitoring response message to be sent to an upper computer.
Further, the upper computer receives the returned dynamic monitoring response message, extracts the monitoring data of the corresponding virtual page, loads the monitoring data of the corresponding components one by one according to the data segment number of the component attribute, and refreshes and displays the monitoring data in real time on the upper computer.
On the other hand, the system for monitoring the running state data of the industrial control graphical programming environment comprises an upper computer and a plurality of target machines for executing industrial control:
after the graphical program is built in the upper computer, a memory distribution linked list is formed according to a storage structure of the graphical program, and an execution code and the memory distribution linked list are downloaded to a target computer after compiling; the upper computer sends a dynamic monitoring command message to a corresponding target machine according to the configuration information; after receiving monitoring data sent by a target machine, dynamically refreshing and displaying in real time;
the target machine manages the memory according to the memory allocation linked list, and creates a main thread and a background thread, wherein the main thread initializes the interpreter and periodically executes the execution code, and the background thread is responsible for data interaction with the upper computer; and after the execution period of the main thread code is finished, switching to the background thread to receive the dynamic monitoring command message, analyzing the command message, collecting monitoring data, packaging the data and sending the data to an upper computer.
Further, the upper computer forms a memory allocation linked list according to the storage structure of the graphical program, and the method comprises the following steps:
the upper computer obtains a storage structure of the graphical program, traverses a tree structure in the graphical program, forms components according to tree nodes, and forms a memory distribution linked list containing memory distribution information of each component.
Further, the memory allocation information includes a thread number of the component, an execution sequence number in the thread, a virtual page number of the component, a data segment number of the unique number, and an occupied data space.
Further, the target machine receiving the memory management according to the memory allocation linked list includes:
and the target machine analyzes the memory allocation linked list, allocates memories for the components in the memory one by one according to the memory allocation linked list, associates the segment numbers of the data with the memory addresses in the target machine and stores the segment numbers in the memory allocation linked list, and the size of the allocated memories meets the requirement of data space.
Further, the sending, by the upper computer, the dynamic monitoring command message according to the configuration information includes:
dividing the virtual page according to the position of the component in the virtual map and the proportion;
configuring single-page dynamic monitoring of virtual pages or simultaneous dynamic monitoring of multiple virtual pages;
respectively counting the components in the virtual pages, combining the number of the virtual pages and the number of the data segment corresponding to the component in each virtual page, adding a custom command frame header, combining into an online monitoring command message and sending the online monitoring command message to a target machine.
Further, the target machine collects monitoring data and packages the data and sends the data to the upper computer, and the method comprises the following steps:
receiving a dynamic monitoring command message in a background thread, obtaining a memory address from a memory allocation linked list according to a graphical component data segment number in the dynamic monitoring command, reading current component data stored in the memory address, combining the component data according to virtual pages, adding a custom response frame header, and combining the component data into a dynamic monitoring response message to be sent to an upper computer.
Further, the upper computer receives the returned dynamic monitoring response message, extracts the monitoring data of the corresponding virtual page, loads the monitoring data of the corresponding components one by one according to the data segment number of the component attribute, and refreshes and displays the monitoring data in real time on the upper computer.
The technical scheme of the invention has the following beneficial technical effects:
(1) the user can freely select the graphical program area or page to perform dynamic refreshing monitoring instead of indiscriminately performing dynamic refreshing monitoring on all graphical programs; the monitoring system can simultaneously support monitoring of a plurality of areas or a plurality of pages, and is convenient for users to debug and analyze.
(2) The graphical platform can dynamically refresh monitoring data in real time in the program running process, and is not checked under the condition that the program is suspended; the related functions of the graphical platform are designed in a modularized mode, weak coupling is achieved among different modules, when a graphical program display area or a page is switched, a recompilation program is not needed to download, and namely the dynamic refreshing monitoring function does not affect the execution function of the control program.
(3) The graphical platform uses a simple design method and a simple compiling method to associate different graphical components in a program with actual memory data in a target machine, so that a dynamic refreshing monitoring function is facilitated to obtain corresponding data; meanwhile, the size of an interactive data message between the upper computer and the target computer is limited, the communication data volume is reduced, and the response time of the dynamic monitoring function is prolonged.
(4) The invention reduces the difficulty of the user in the graphical program design and debugging process; after the equipment runs, different graphical components are switched and monitored, and a user can know the running state of the equipment at any time through a monitoring function without modifying and compiling a graphical program; the user can divide the display area according to the requirement and monitor a plurality of different components simultaneously; the monitoring function does not affect the execution of the control program, and the separation of the control and the monitoring function is realized.
Drawings
FIG. 1 is a flow chart of a method for monitoring data in an operating state of a graphical programming environment;
FIG. 2 is a schematic diagram of a memory allocation chain table;
FIG. 3 is a schematic diagram of a 4 virtual page display;
FIG. 4 is a diagram illustrating a dynamic monitor command message;
fig. 5 is a diagram illustrating the composition of a response message.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
The invention relates to the technical field of industrial automation control, and provides a method for monitoring operation state data of an industrial control graphical programming environment. With reference to fig. 1, the method comprises the following steps:
(1) and finishing the construction of a graphical program in the upper computer, forming a memory distribution linked list according to the storage structure of the graphical program, and downloading an execution code and the memory distribution linked list to a target machine which correspondingly executes industrial control after compiling. The target machine can be one or more.
The upper computer acquires a storage structure of the graphical program, traverses a tree structure in the graphical program and acquires a component model according to tree nodes; writing data space according to the size of the memory corresponding to the model parameter allocation, recording the data space in a memory allocation linked list, recording the thread number of the component, the execution sequence number in the thread and the virtual page number of the component, and allocating a unique data segment number to the component, as shown in fig. 2.
The target machine has an independent IP address, and the upper computer searches the target machine through the IP address to establish contact.
The upper computer can monitor one target machine at a time and also can monitor a plurality of target machines, display switching is carried out, and real-time dynamic data of the target machines are obtained.
(2) And the target machine manages the memory according to the memory allocation linked list, creates a main thread and a background thread, the main thread initializes the interpreter and periodically executes the execution code, and the background thread is responsible for data interaction with the upper computer.
And the target machine runs an embedded operating system and receives an execution code compiled by the upper computer through the Ethernet. After receiving the execution code, the target machine analyzes the memory allocation linked list, allocates memories to the graphical components one by one in the memories according to the memory allocation linked list, associates the data segment numbers in the component attributes with the actual memory addresses, stores the data segment numbers in the memory allocation linked list, and updates the content of the data space. The memory allocation linked list can be searched through the unique data segment number to obtain the memory address reading data, and finally the management and operation of the target machine on the memory are met.
After the initialization operation of other functional modules is completed, a main thread and a background thread are created, the main thread is responsible for initializing and loading the interpreter and the management program data, the high-efficiency periodic execution code meets the real-time requirement of a control system, and the background thread is responsible for interacting data with an upper computer.
(3) And the upper computer sends a dynamic monitoring command message to the corresponding target machine according to the configuration information.
When the upper computer displays the graphical component, the virtual page can be divided according to the position of the component in the virtual map and the proportion. The user selects the single-page dynamic monitoring of the virtual page or the simultaneous dynamic monitoring configuration of multiple pages of the virtual page at the upper computer according to the requirement, as shown in fig. 3. After the configuration is completed, the upper computer respectively counts the components in the virtual pages, combines the number of the virtual pages and the number of the data segment corresponding to the component in each virtual page, adds a custom command frame header, combines the data segment into an online monitoring command message, and sends the online monitoring command message to the target computer through the Ethernet, as shown in FIG. 4.
(4) And the target machine is switched to the background thread to receive the dynamic monitoring command message after the execution period of the main thread code is finished, analyzes the command message, collects monitoring data, packages the data and sends the data to the upper computer.
The target machine finishes the execution cycle of the main thread code, the thread scheduling is switched to the background thread, the dynamic monitoring command message is received in the background thread, the memory address recorded in the memory allocation linked list is searched according to the segment number of the graphical component data in the dynamic monitoring command, the current component data is read, the component data is combined according to the virtual page, the custom response frame header is added, and the dynamic monitoring response message is combined and sent to the upper computer, as shown in fig. 5.
(5) And after receiving the monitoring data, the upper computer dynamically refreshes and displays the monitoring data in real time.
And the upper computer receives the dynamic monitoring data message returned by the target computer, extracts the data of the corresponding virtual page, loads the data of the corresponding components one by one according to the data segment number of the component attribute, and refreshes and displays the data in real time on the upper computer.
On the other hand, the system for monitoring the running state data of the industrial control graphical programming environment comprises an upper computer and a plurality of target machines for executing industrial control:
after the graphical program is built in the upper computer, a memory distribution linked list is formed according to a storage structure of the graphical program, and an execution code and the memory distribution linked list are downloaded to a target computer after compiling; the upper computer sends a dynamic monitoring command message to a corresponding target machine according to the configuration information; after receiving monitoring data sent by a target machine, dynamically refreshing and displaying in real time;
the target machine manages the memory according to the memory allocation linked list, and creates a main thread and a background thread, wherein the main thread initializes the interpreter and periodically executes the execution code, and the background thread is responsible for data interaction with the upper computer; and after the execution period of the main thread code is finished, switching to the background thread to receive the dynamic monitoring command message, analyzing the command message, collecting monitoring data, packaging the data and sending the data to an upper computer.
Further, the upper computer forms a memory allocation linked list according to the storage structure of the graphical program, and the method comprises the following steps:
the upper computer obtains a storage structure of the graphical program, traverses a tree structure in the graphical program, forms components according to tree nodes, and forms a memory distribution linked list containing memory distribution information of each component.
Further, the memory allocation information includes a thread number of the component, an execution sequence number in the thread, a virtual page number of the component, a data segment number of the unique number, and an occupied data space.
Further, the target machine receiving the memory management according to the memory allocation linked list includes:
and the target machine analyzes the memory allocation linked list, allocates memories for the components in the memory one by one according to the memory allocation linked list, associates the segment numbers of the data with the memory addresses in the target machine and stores the segment numbers in the memory allocation linked list, and the size of the allocated memories meets the requirement of data space.
Further, the sending, by the upper computer, the dynamic monitoring command message according to the configuration information includes:
dividing the virtual page according to the position of the component in the virtual map and the proportion;
configuring single-page dynamic monitoring of virtual pages or simultaneous dynamic monitoring of multiple virtual pages;
respectively counting the components in the virtual pages, combining the number of the virtual pages and the number of the data segment corresponding to the component in each virtual page, adding a custom command frame header, combining into an online monitoring command message and sending the online monitoring command message to a target machine.
Further, the target machine collects monitoring data and packages the data and sends the data to the upper computer, and the method comprises the following steps:
receiving a dynamic monitoring command message in a background thread, obtaining a memory address from a memory allocation linked list according to a graphical component data segment number in the dynamic monitoring command, reading current component data stored in the memory address, combining the component data according to virtual pages, adding a custom response frame header, and combining the component data into a dynamic monitoring response message to be sent to an upper computer.
Further, the upper computer receives the returned dynamic monitoring response message, extracts the monitoring data of the corresponding virtual page, loads the monitoring data of the corresponding components one by one according to the data segment number of the component attribute, and refreshes and displays the monitoring data in real time on the upper computer.
In summary, the present invention relates to a system and a method for monitoring data of an operating state of an industrial control graphical programming environment, wherein an upper computer completes the construction of a graphical program, forms a memory allocation linked list according to a storage structure of the graphical program, and downloads an execution code and the memory allocation linked list into a target machine after compiling; the target machine creates a main thread and a background thread, the main thread initializes the interpreter and periodically executes the execution code, and the background thread is responsible for data interaction with the upper computer; the upper computer sends a dynamic monitoring command message to the corresponding target machine according to the configuration information; and the target machine is switched to the background thread to receive the dynamic monitoring command message after the execution period of the main thread code is finished, analyzes the command message, collects monitoring data, packages the data and sends the data to the upper computer, and dynamically refreshes and displays the data in real time. The invention realizes real-time dynamic refreshing of monitoring data in the program running process, and the dynamic refreshing monitoring function does not influence the execution function of the control program.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.

Claims (10)

1. A method for monitoring operation state data of an industrial control graphical programming environment is characterized by comprising the following steps:
completing graphical program construction in the upper computer, forming a memory distribution linked list according to a storage structure of the graphical program, and downloading an execution code and the memory distribution linked list to a target machine which correspondingly executes industrial control after compiling;
the target machine manages the memory according to the memory allocation linked list, and creates a main thread and a background thread, wherein the main thread initializes the interpreter and periodically executes the execution code, and the background thread is responsible for data interaction with the upper computer;
the upper computer sends a dynamic monitoring command message to a corresponding target machine according to the configuration information;
the target machine is switched into the background thread to receive the dynamic monitoring command message after the execution period of the main thread code is finished, analyzes the command message, collects monitoring data, packages the data and sends the data to the upper computer;
and after receiving the monitoring data, the upper computer dynamically refreshes and displays the monitoring data in real time.
2. The method for monitoring the operational state data of the industrial control graphical programming environment according to claim 1, wherein forming a memory allocation linked list according to the storage structure of the graphical program comprises:
the upper computer obtains a storage structure of the graphical program, traverses a tree structure in the graphical program, forms components according to tree nodes, and forms a memory distribution linked list containing memory distribution information of each component.
Further, the memory allocation information includes a thread number of the component, an execution sequence number in the thread, a virtual page number of the component, a unique data segment number, and an occupied data space.
3. The method for monitoring the operational state data of the industrial control graphical programming environment according to claim 2, wherein the step of managing the memory by the target machine according to the memory allocation linked list comprises the steps of:
and the target machine analyzes the memory allocation linked list, allocates memories for the components in the memory one by one according to the memory allocation linked list, associates the data segment numbers with the memory addresses in the target machine and stores the data segment numbers in the memory allocation linked list, and the size of the allocated memories meets the requirement of data space.
4. The method for monitoring the operational state data of the industrial control graphical programming environment according to claim 2, wherein the sending of the dynamic monitoring command message by the upper computer according to the configuration information comprises:
dividing the virtual page according to the position of the component in the virtual map and the proportion;
configuring single-page dynamic monitoring of virtual pages or simultaneous dynamic monitoring of multiple virtual pages;
respectively counting the components in the virtual pages, combining the number of the virtual pages and the number of the data segment corresponding to the component in each virtual page, adding a custom command frame header, combining into an online monitoring command message and sending the online monitoring command message to a target machine.
5. The method for monitoring the operational state data of the industrial control graphical programming environment according to claim 4, wherein the collecting and the packaging of the monitoring data are carried out on the upper computer, and the method comprises the following steps:
receiving a dynamic monitoring command message in a background thread, obtaining a memory address from a memory allocation linked list according to a graphical component data segment number in the dynamic monitoring command, reading current component data stored in the memory address, combining the component data according to virtual pages, adding a custom response frame header, and combining the component data into a dynamic monitoring response message to be sent to an upper computer.
Further, the upper computer receives the returned dynamic monitoring response message, extracts the monitoring data of the corresponding virtual page, loads the monitoring data of the corresponding components one by one according to the data segment number of the component attribute, and refreshes and displays the monitoring data in real time on the upper computer.
6. The utility model provides an industrial control graphical programming environment operation state data monitoring system which characterized in that, includes host computer and a plurality of target machines of carrying out industrial control:
after the graphical program is built in the upper computer, a memory distribution linked list is formed according to a storage structure of the graphical program, and an execution code and the memory distribution linked list are downloaded to a target computer after compiling; the upper computer sends a dynamic monitoring command message to a corresponding target machine according to the configuration information; after receiving monitoring data sent by a target machine, dynamically refreshing and displaying in real time;
the target machine manages the memory according to the memory allocation linked list, and creates a main thread and a background thread, wherein the main thread initializes the interpreter and periodically executes the execution code, and the background thread is responsible for data interaction with the upper computer; and after the execution period of the main thread code is finished, switching to the background thread to receive the dynamic monitoring command message, analyzing the command message, collecting monitoring data, packaging the data and sending the data to an upper computer.
7. The system for monitoring the operational state data of the industrial control graphical programming environment according to claim 6, wherein the upper computer forms a memory allocation linked list according to the storage structure of the graphical program, and the system comprises:
the upper computer obtains a storage structure of the graphical program, traverses a tree structure in the graphical program, forms components according to tree nodes, and forms a memory distribution linked list containing memory distribution information of each component.
Further, the memory allocation information includes a thread number of the component, an execution sequence number in the thread, a virtual page number of the component, a data segment number of the unique number, and an occupied data space.
8. The system for monitoring the operational state data of the industrial control graphical programming environment according to claim 7, wherein the target machine managing the memory according to the memory allocation chain table comprises:
and the target machine analyzes the memory allocation linked list, allocates memories for the components in the memory one by one according to the memory allocation linked list, associates the segment numbers of the data with the memory addresses in the target machine and stores the segment numbers in the memory allocation linked list, and the size of the allocated memories meets the requirement of data space.
9. The system for monitoring the operational state data of the industrial control graphical programming environment according to claim 8, wherein the upper computer issuing the dynamic monitoring command message according to the configuration information comprises:
dividing the virtual page according to the position of the component in the virtual map and the proportion;
configuring single-page dynamic monitoring of virtual pages or simultaneous dynamic monitoring of multiple virtual pages;
respectively counting the components in the virtual pages, combining the number of the virtual pages and the number of the data segment corresponding to the component in each virtual page, adding a custom command frame header, combining into an online monitoring command message and sending the online monitoring command message to a target machine.
10. The system for monitoring the operational state data of the industrial control graphical programming environment according to claim 9, wherein the target machine collects the monitoring data and packages the data into packets to be sent to the upper computer, comprising:
receiving a dynamic monitoring command message in a background thread, obtaining a memory address from a memory allocation linked list according to a graphical component data segment number in the dynamic monitoring command, reading current component data stored in the memory address, combining the component data according to virtual pages, adding a custom response frame header, and combining the component data into a dynamic monitoring response message to be sent to an upper computer.
Further, the upper computer receives the returned dynamic monitoring response message, extracts the monitoring data of the corresponding virtual page, loads the monitoring data of the corresponding components one by one according to the data segment number of the component attribute, and refreshes and displays the monitoring data in real time on the upper computer.
CN202110709531.8A 2021-06-25 2021-06-25 Industrial control graphical programming environment operation state data monitoring system and method Active CN113590106B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110709531.8A CN113590106B (en) 2021-06-25 2021-06-25 Industrial control graphical programming environment operation state data monitoring system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110709531.8A CN113590106B (en) 2021-06-25 2021-06-25 Industrial control graphical programming environment operation state data monitoring system and method

Publications (2)

Publication Number Publication Date
CN113590106A true CN113590106A (en) 2021-11-02
CN113590106B CN113590106B (en) 2022-04-08

Family

ID=78244454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110709531.8A Active CN113590106B (en) 2021-06-25 2021-06-25 Industrial control graphical programming environment operation state data monitoring system and method

Country Status (1)

Country Link
CN (1) CN113590106B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425224A (en) * 2007-10-30 2009-05-06 比亚迪股份有限公司 Data acquisition method for real time monitoring system
CN103376772A (en) * 2012-04-27 2013-10-30 沈阳高精数控技术有限公司 Method for monitoring performance of embedded type numerical control system
CN103684917A (en) * 2013-12-14 2014-03-26 中国航空工业集团公司第六三一研究所 Multi-target-machine system monitoring system and method
CN104021344A (en) * 2014-05-14 2014-09-03 南京大学 Honey pot mechanism and method used for collecting and intercepting internal storage behaviors of computer
US20150089415A1 (en) * 2013-09-24 2015-03-26 Lg Cns Co., Ltd. Method of processing big data, apparatus performing the same and storage media storing the same
CN107066390A (en) * 2017-04-24 2017-08-18 许继集团有限公司 A kind of Dram leakage detection method and system
CN107168698A (en) * 2017-04-24 2017-09-15 华南理工大学 The automatic Compilation Method of graphic programming
US10999164B1 (en) * 2020-04-30 2021-05-04 Splunk Inc. Securely executing custom playbook code in a hybrid execution environment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425224A (en) * 2007-10-30 2009-05-06 比亚迪股份有限公司 Data acquisition method for real time monitoring system
CN103376772A (en) * 2012-04-27 2013-10-30 沈阳高精数控技术有限公司 Method for monitoring performance of embedded type numerical control system
US20150089415A1 (en) * 2013-09-24 2015-03-26 Lg Cns Co., Ltd. Method of processing big data, apparatus performing the same and storage media storing the same
CN103684917A (en) * 2013-12-14 2014-03-26 中国航空工业集团公司第六三一研究所 Multi-target-machine system monitoring system and method
CN104021344A (en) * 2014-05-14 2014-09-03 南京大学 Honey pot mechanism and method used for collecting and intercepting internal storage behaviors of computer
CN107066390A (en) * 2017-04-24 2017-08-18 许继集团有限公司 A kind of Dram leakage detection method and system
CN107168698A (en) * 2017-04-24 2017-09-15 华南理工大学 The automatic Compilation Method of graphic programming
US10999164B1 (en) * 2020-04-30 2021-05-04 Splunk Inc. Securely executing custom playbook code in a hybrid execution environment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JAVA我人生: "JProfiler的详细使用介绍(JVM对象内存线程监测工具)", 《HTTPS://BLOG.CSDN.NET/CHENLEIXING/ARTICLE/DETAILS/44227327/》 *
NI: "Monitor Execution Time and Memory Usage in LabVIEW Vis", 《HTTPS://KNOWLEDGE.NI.COM/KNOWLEDGEARTICLEDETAILS?ID=KA00Z0000019LT1SAM》 *

Also Published As

Publication number Publication date
CN113590106B (en) 2022-04-08

Similar Documents

Publication Publication Date Title
CN104067186B (en) Assisting system, record have record medium and the method for generation executable program of support program
US9405653B1 (en) Filtering data frames using program instrumentation
CN103544103A (en) Method and system for test, simulation and concurrence of software performance
CN104486255A (en) Service resource dispatching method and device
JPH07109585B2 (en) Scope command change processing method and device
CN103634154A (en) Simulation system and simulation method for network state
CN114064152B (en) Embedded multi-core debugging system based on dynamic loading and debugging method thereof
CN108664380A (en) Software debugging system and adjustment method after a kind of execution shown with performance
CN101256599B (en) System for gathering data of distributing simulation platform based on grid
CN106294169B (en) A kind of data contention detection and playback method based on semiology analysis virtual machine
CN113722020A (en) Interface calling method, device and computer readable storage medium
US20150039285A1 (en) Methods and systems for scalable session emulation
CN105229617A (en) For the chart of navigation application code
CN113590106B (en) Industrial control graphical programming environment operation state data monitoring system and method
KR20090081749A (en) The device and method of resource monitoring for application
CN106651650A (en) Joint debugging measurement and control device and electric power Internet of things joint debugging measurement and control system applying same
CN103092156A (en) Device replaceable automatic test system and method
CN114610597A (en) Pressure testing method, device, equipment and storage medium
CN114780188B (en) Webpage 3D model top display method, system, terminal and storage medium
CN113688141B (en) Application function design method and software development platform
CN109828901A (en) Build method and device, Linux server and readable storage medium storing program for executing that pressure surveys environment
CN113672222A (en) Application program interface management device and construction method thereof
CN113626244B (en) ANR abnormal data collection method, display method, device and equipment
CN116775038B (en) Runtime system supporting simultaneous or independent operation of IEC and C++ tasks
CN116578413B (en) Signal-level simulation model clouding method based on cloud+end architecture

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