CN113110315A - Upper computer system for dynamically loading control based on WPF and control method thereof - Google Patents

Upper computer system for dynamically loading control based on WPF and control method thereof Download PDF

Info

Publication number
CN113110315A
CN113110315A CN202110347489.XA CN202110347489A CN113110315A CN 113110315 A CN113110315 A CN 113110315A CN 202110347489 A CN202110347489 A CN 202110347489A CN 113110315 A CN113110315 A CN 113110315A
Authority
CN
China
Prior art keywords
lower computer
control
detailed information
list
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.)
Pending
Application number
CN202110347489.XA
Other languages
Chinese (zh)
Inventor
姜富文
李�浩
张伟
刘家洋
杨坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Faraday Electric Drive Co ltd
Original Assignee
Shenzhen Faraday Electric Drive 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 Shenzhen Faraday Electric Drive Co ltd filed Critical Shenzhen Faraday Electric Drive Co ltd
Priority to CN202110347489.XA priority Critical patent/CN113110315A/en
Publication of CN113110315A publication Critical patent/CN113110315A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by the network communication
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/31From computer integrated manufacturing till monitoring
    • G05B2219/31088Network communication between supervisor and cell, machine group
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a WPF-based upper computer system for dynamically loading controls and a control method thereof, wherein the system consists of a detailed information list module, a display module and a communication module, wherein the detailed information list module comprises the following components: storing a preset detailed information list of the lower computer; a display module: initializing a control by equipment loading information of a lower computer, and displaying the control on an equipment page; a communication module: the system is responsible for communicating with the lower computers, sending corresponding data to a certain lower computer or carrying out broadcast commands, receiving the data of all the lower computers, dividing the data according to the IDs of the lower computers and storing the data into corresponding objects. The method dynamically adds various controls by loading the detailed information list of the lower computer equipment, avoids the condition that software needs to be modified when new equipment is added, has good adaptability, and can meet the use requirements of various process flows.

Description

Upper computer system for dynamically loading control based on WPF and control method thereof
Technical Field
The invention relates to the technical field of new energy automobiles, in particular to an upper computer system for dynamically loading controls based on WPF and a control method thereof.
Background
The upper computer software of industrial control type on the market generally only displays the connected number of the connected lower computers, does not display the page of the detailed information of the lower computers, or updates the display information and the monitoring information according to the loaded lower computers, but the types of various information are single, the templates are fixed, and the monitored information is similar.
However, a complete working system is usually composed of various devices, and the functions of the different devices in the system are different, so that the emphasis points are not consistent, which means that the information to be monitored is also inconsistent. However, the templated display causes that each device displays the same information, the displayed and monitored information cannot be optimized according to the characteristics of each device, the button controls equipped with the devices are already well established when the button controls are generated by software, and when a new device is added, the software needs to be modified, so that the adaptability is poor.
For example, an air compressor device, a DCDC device, an electric heating device, an alternating current power supply device, a cylinder device and a hydraulic system device are required to be used in a certain process manufacturing flow.
After a general upper computer is connected with the lower computers, only online equipment is usually displayed, a loading page specialized according to the type of the loading equipment is not provided, and the operation of each machine is quite troublesome.
Disclosure of Invention
The technical problem to be solved by the embodiment of the invention is to provide a WPF-based upper computer system for dynamically loading controls and a control method thereof, so as to meet the use requirements of various process flows.
In order to solve the above technical problems, an embodiment of the present invention provides a WPF-based upper computer system for dynamically loading controls, which includes a detailed information list module, a display module, and a communication module, wherein,
the detailed information list module: storing a preset detailed information list of the lower computer; the information list comprises detailed information of the lower computer, function codes of the lower computer and equipment loading information of the lower computer;
a display module: initializing a control by equipment loading information of a lower computer, and displaying the control on an equipment page;
a communication module: the system is responsible for communicating with the lower computers, sending corresponding data to a certain lower computer or carrying out broadcast commands, receiving the data of all the lower computers, dividing the data according to the IDs of the lower computers and storing the data into corresponding objects.
Correspondingly, the embodiment of the invention also provides a control method of the upper computer system for dynamically loading the control based on the WPF, which comprises the following steps:
step 1: the upper computer is connected with the lower computer, and reads the detailed information list of the lower computer according to the connected lower computer;
step 2: if the list is read successfully, initializing a lower computer device page according to the parameters of the lower computer device page in the list;
and step 3: the display module loads the monitoring parameters in the list to the monitoring data display control and loads the button parameter button control in the list;
and 4, step 4: waiting for the next operation of the user, reading the monitoring data by the upper computer and updating the monitoring data of the display module;
and 5: and if the user executes the operation, executing the operation control callback function according to the user operation.
The invention has the beneficial effects that: the method dynamically adds various controls by loading the detailed information list of the lower computer equipment, avoids the condition that software needs to be modified when new equipment is added, has good adaptability, and can meet the use requirements of various process flows.
Drawings
Fig. 1 is a schematic structural diagram of an upper computer system for dynamically loading a control based on WPF according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a control method of an upper computer system for dynamically loading a control based on WPF according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of the operation of an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application can be combined with each other without conflict, and the present invention is further described in detail with reference to the drawings and specific embodiments.
If directional indications (such as up, down, left, right, front, and rear … …) are provided in the embodiment of the present invention, the directional indications are only used to explain the relative position relationship between the components, the movement, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are only used for descriptive purposes and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Referring to fig. 1, the upper computer system for dynamically loading a control based on WPF according to the embodiment of the present invention includes a detailed information list module, a display module, and a communication module.
The detailed information list module: storing a preset detailed information list of lower computer equipment; the information list comprises detailed information of the lower computer, function codes of the lower computer and equipment loading information of the lower computer.
A display module: and initializing the control by equipment loading information of the lower computer, and displaying the control on an equipment page.
A communication module: the system is responsible for communicating with the lower computers, sending corresponding data to a certain lower computer or carrying out broadcast commands, receiving the data of all the lower computers, dividing the data according to the IDs of the lower computers and storing the data into corresponding objects.
The user firstly customizes a detailed information list, and the content of the list comprises various detailed information, such as a serial number of a machine, a function code parameter and the like, wherein the most important information is information needing to be loaded by a device page, a monitoring parameter of the device page and a dynamic button of the device page. When the upper computer loads the equipment, the equipment page is initialized according to the parameters of the equipment page in the list, and each type of lower computer has a respective detailed information list, so that different monitoring data can be displayed and different operation controls can be initialized to meet the requirements of emphasizing different characteristics of different equipment when different equipment is loaded.
In the upper computer system for dynamically loading the controls based on the WPF, a detailed control list can be added, operation controls which are possibly used by all equipment are stored in the detailed control list, a control library is added in software, a user can select which control needs to be added when the equipment is loaded, and a highly customized equipment page endows the software with extremely high flexibility.
Referring to fig. 2 to 3, a method for controlling an upper computer system of a WPF-based dynamic load control according to an embodiment of the present invention includes:
step 1: the upper computer is connected with the lower computer, and reads the detailed information list of the lower computer according to the connected lower computer;
step 2: if the list is read successfully, initializing a lower computer device page according to the parameters of the lower computer device page in the list;
and step 3: the display module loads the monitoring parameters in the list to the monitoring data display control and loads the button parameter button control in the list;
and 4, step 4: waiting for the next operation of the user, reading the monitoring data by the upper computer and updating the monitoring data of the display module;
and 5: and if the user executes the operation, executing the operation control callback function according to the user operation.
In specific implementation, the flow of the control method for the upper computer system based on the WPF dynamic loading control according to the embodiment of the present invention is as follows:
1. the upper computer creates corresponding objects according to the number of the lower computers;
2. the upper computer reads the feature code/product code of the lower computer (distinguishing the type of the lower computer);
3. searching the same type in the equipment list library according to the read product code;
4. loading a detailed information list of the same type of equipment, and transmitting monitoring parameters and dynamic button information to a display module interface;
5. initializing a monitoring data display control according to the monitoring parameters;
6. initializing a button control according to the dynamic button information, and binding a read-write value and a read-write address of the button action with a value button;
7. completing initialization of the display module;
8. waiting for the next operation of the user;
9. the upper computer reads the monitoring data and updates the monitoring data of the display module;
10. a user clicks a button;
11. triggering a button action, and executing a button callback function;
12. waiting for the next operation of the user;
13. the upper computer reads the monitoring data and updates the monitoring data of the display module;
… … … (repeat step 12-step 13 with user action to perform step 11).
The invention can specifically display according to the type of loaded equipment, such as DCDC equipment and alternating current power supply equipment, belonging to power supply equipment, according to a detailed information list of the power supply equipment, the monitoring parameters of a loading page of the power supply equipment are the current input/output voltage and the current input/output current, the dynamic button initializes operation controls according to a communication protocol and a communication address, such as a start button and a stop button, and the initialized start button executes a callback function of the start button when being clicked, and writes a start significance value of the corresponding communication protocol into the address of the communication stored in the list. The air compressor equipment and the hydraulic system equipment have the requirements for controlling the motor, a detailed information list is provided, and monitoring parameters of the equipment are bus voltage, bus current, current rotating speed, current torque, output voltage and output current. And the dynamic button loads an operation button, a stop button, a forward inching button and a reverse inching button. Or if the user has special needs and needs to additionally add a quick discharge button to the air compressor equipment, the detailed information list of the air compressor is directly modified, and the quick discharge button can be additionally added during initialization.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (2)

1. An upper computer system of a dynamic loading control based on WPF is characterized by comprising a detailed information list module, a display module and a communication module, wherein,
the detailed information list module: storing a preset detailed information list of the lower computer; the information list comprises detailed information of the lower computer, function codes of the lower computer and equipment loading information of the lower computer;
a display module: initializing a control by equipment loading information of a lower computer, and displaying the control on an equipment page;
a communication module: the system is responsible for communicating with the lower computers, sending corresponding data to a certain lower computer or carrying out broadcast commands, receiving the data of all the lower computers, dividing the data according to the IDs of the lower computers and storing the data into corresponding objects.
2. A control method of an upper computer system of a dynamic loading control based on WPF is characterized by comprising the following steps:
step 1: the upper computer is connected with the lower computer, and reads the detailed information list of the lower computer according to the connected lower computer;
step 2: if the list is read successfully, initializing a lower computer device page according to the parameters of the lower computer device page in the list;
and step 3: the display module loads the monitoring parameters in the list to the monitoring data display control and loads the button parameter button control in the list;
and 4, step 4: waiting for the next operation of the user, reading the monitoring data by the upper computer and updating the monitoring data of the display module;
and 5: and if the user executes the operation, executing the operation control callback function according to the user operation.
CN202110347489.XA 2021-03-31 2021-03-31 Upper computer system for dynamically loading control based on WPF and control method thereof Pending CN113110315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110347489.XA CN113110315A (en) 2021-03-31 2021-03-31 Upper computer system for dynamically loading control based on WPF and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110347489.XA CN113110315A (en) 2021-03-31 2021-03-31 Upper computer system for dynamically loading control based on WPF and control method thereof

Publications (1)

Publication Number Publication Date
CN113110315A true CN113110315A (en) 2021-07-13

Family

ID=76713249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110347489.XA Pending CN113110315A (en) 2021-03-31 2021-03-31 Upper computer system for dynamically loading control based on WPF and control method thereof

Country Status (1)

Country Link
CN (1) CN113110315A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115482633A (en) * 2022-09-13 2022-12-16 珠海市新德汇信息技术有限公司 Method, system, storage medium and device compatible with communication interaction of different devices

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110098858A1 (en) * 2003-02-26 2011-04-28 Silverbrook Research Pty Ltd System for moving mobile robots in accordance with predetermined algorithm
CN102478797A (en) * 2010-11-22 2012-05-30 中国科学院空间科学与应用研究中心 Monitoring system with configurable communication protocol
CN103942311A (en) * 2014-04-21 2014-07-23 湖南深拓智能设备股份有限公司 Multiplexing method of monitoring system variables
CN107203595A (en) * 2017-05-03 2017-09-26 北京海顿中科技术有限公司 A kind of method of the dynamic generation web interface based on flexible form
CN112486504A (en) * 2019-09-11 2021-03-12 深圳市汇顶科技股份有限公司 Interaction method, upper computer and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110098858A1 (en) * 2003-02-26 2011-04-28 Silverbrook Research Pty Ltd System for moving mobile robots in accordance with predetermined algorithm
CN102478797A (en) * 2010-11-22 2012-05-30 中国科学院空间科学与应用研究中心 Monitoring system with configurable communication protocol
CN103942311A (en) * 2014-04-21 2014-07-23 湖南深拓智能设备股份有限公司 Multiplexing method of monitoring system variables
CN107203595A (en) * 2017-05-03 2017-09-26 北京海顿中科技术有限公司 A kind of method of the dynamic generation web interface based on flexible form
CN112486504A (en) * 2019-09-11 2021-03-12 深圳市汇顶科技股份有限公司 Interaction method, upper computer and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115482633A (en) * 2022-09-13 2022-12-16 珠海市新德汇信息技术有限公司 Method, system, storage medium and device compatible with communication interaction of different devices

Similar Documents

Publication Publication Date Title
US6832271B1 (en) Systems and methods for monitoring and displaying I/O data for plurality of I/O devices
EP1394676A2 (en) Mobile terminal
US9584452B2 (en) Method, apparatus, and system for adding electronic mail attachment
CN103728518A (en) System and method for debugging frequency converter
US20110055537A1 (en) Electronic device and booting method therefor
US6055631A (en) Method and apparatus for booting a portable computing device
CN102880488A (en) Method, equipment and system for restoring drive program
CN105739866A (en) Application management method and apparatus, and terminal
CN113110315A (en) Upper computer system for dynamically loading control based on WPF and control method thereof
CN110442287A (en) Page navigation method and device
US20140007007A1 (en) Terminal device and method of controlling the same
US20040267973A1 (en) Device and host machine
CN109189486A (en) Loading method, device, terminal and the storage medium of display screen driving
CN103440334A (en) Driver matching method and device of mobile terminal
CN111966376A (en) Data flashing method and related equipment
CN111823863A (en) Vehicle-mounted play source switching method, system and equipment
JPH05257669A (en) Data processor
CN106406666A (en) A processing method and device for application program icons
CN110874085A (en) Numerical controller
CN102591839B (en) USB (universal serial bus) multiprotocol self-adaptive method
JPH07248809A (en) Programming device
CN113032043A (en) Method, system, device and storage medium for processing configuration value
US6490678B1 (en) Combination editable and fixed entry input menu field used in a menu for a computer system prior to execution of an operating system
CN110968535A (en) Control instruction processing method and device, processor and electronic device
CN113869841A (en) Workflow control method, system and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210713

RJ01 Rejection of invention patent application after publication