The graphical Configuration Design system and method for a kind of PLC
Technical field
The present invention relates to PLC technology field, more particularly, relate to the graphical Configuration Design system and method for a kind of PLC.
Background technology
Current medium-and-large-sized PLC product host computer programming software majority all only has the configuration interface of tree structure, and user configures the modules such as IO expansion module mainly through tree structure.Referring to Fig. 1, is existing a kind of PLC product host computer programming software surface chart.As shown in Figure 1, give tree structure 101 in the left side at this programming software interface, user needs by this tree structure 101 configure IO expansion module and communication and other special module.
This PLC programming software has following tripartite's planar defect.The first, effect of visualization is poor; User is difficult to the topology identifying whole system according to programming software, and more loaded down with trivial details when need change equipment.The second, ease for use is poor; During programming, associative perception is not strong, and user is difficult to grasp fast and causes the technical requirement of programming personnel to this software higher.Three, on-line monitoring weak effect; The running status demonstrating current block and system by interface image and diagnostic message is difficult to during system cloud gray model.
Summary of the invention
The technical problem to be solved in the present invention is, for the defect of the ease for use difference of existing PLC programming software, provides the graphical Configuration Design system and method for the PLC that a kind of ease for use is strong.
The technical solution adopted for the present invention to solve the technical problems is: construct the graphical Configuration Design system of a kind of PLC, comprising: hardware configuration unit, dispensing unit and storage unit, wherein:
Described hardware configuration unit for graphically showing PLC machine frame on main interface, and described PLC machine frame is made up of CPU module, I/O module and communication expansion module;
Described dispensing unit is used for based on .NET platform, and the figure of CPU module, I/O module or communication expansion module on described main interface selected time generate corresponding allocation window, and automatically generate corresponding block code according to the configuration information that described allocation window inputs, and described block code is stored into described storage unit.
According in the graphical Configuration Design system of PLC of the present invention, described hardware configuration unit comprises mainframe and extension frame at the PLC machine frame of main interface display, and described mainframe comprises CPU module and multiple I/O module, described extension frame comprises the I/O module of communication expansion module and expansion, and has connecting line between described communication expansion module and described CPU module.
According in the graphical Configuration Design system of PLC of the present invention, described system also comprises the network configuration unit for graphically showing network configuration on described main interface, and described network configuration comprises the network topology of multiple network equipment and LA Management Room.
According in the graphical Configuration Design system of PLC of the present invention, the bus form of described network topology comprises MODBUS, MODBUS-TCP, CANOpen, PROFIBUS-DP and EtherCAT.
According in the graphical Configuration Design system of PLC of the present invention, described system also comprises the tree-like display unit for forming with tree structure display PLC and network topology, and described hardware configuration unit or network configuration unit highlight in tree structure in the part that the figure of main interface display is corresponding by this tree-like display unit.
According in the graphical Configuration Design system of PLC of the present invention, described network configuration unit is also for carrying out the parameter configuration of main website and slave station to the network topology of often kind of bus form.
According in the graphical Configuration Design system of PLC of the present invention, described system also comprises Condition Monitoring Unit, for obtaining status information and the real-time diagnosis information of each several part from PLC when PLC runs, and adjust PLC machine frame or network configuration that main interface shows according to described status information and real-time diagnosis information.
Present invention also offers the graphical configuration design method of a kind of PLC, comprise the following steps:
A () graphically shows PLC machine frame on main interface, described PLC machine frame is made up of CPU module, I/O module and communication expansion module;
B () is based on .NET platform, corresponding allocation window is generated when the figure of the CPU module on described main interface, I/O module or communication expansion module is selected, and automatically generate corresponding block code according to the configuration information that described allocation window inputs, and described block code is stored.
According in the graphical configuration design method of PLC of the present invention, in described step (a), mainframe and extension frame is comprised at the PLC machine frame of main interface display, and described mainframe comprises CPU module and multiple I/O module, described extension frame comprises the I/O module of communication expansion module and expansion, and has connecting line between described communication expansion module and described CPU module.
According in the graphical configuration design method of PLC of the present invention, the method also comprises: on described main interface, graphically show network configuration, described network configuration comprises the network topology of multiple network equipment and LA Management Room.
Implement the graphical Configuration Design system and method for PLC of the present invention, there is following beneficial effect: the present invention by graphically showing PLC machine frame on main interface, the modules configuration of PLC is shown visually, improves the visual of system and ease for use.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is existing a kind of PLC product host computer programming software surface chart;
Fig. 2 is the module frame chart of the graphical Configuration Design system of PLC according to the preferred embodiment of the invention;
Fig. 3 is the main interface schematic diagram of PLC graphical Configuration Design system according to the preferred embodiment of the invention;
Fig. 4 is the bus selection schematic diagram of the graphical Configuration Design system of PLC according to the present invention;
Fig. 5 is the network configuration schematic diagram of the graphical Configuration Design system of PLC according to the preferred embodiment of the invention;
Fig. 6 is the process flow diagram of the graphical configuration design method of PLC according to the preferred embodiment of the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.
Referring to Fig. 2, is the module frame chart of the graphical Configuration Design system of PLC according to the preferred embodiment of the invention.As shown in Figure 2, the graphical Configuration Design system of PLC that this embodiment provides comprises: hardware configuration unit 10, dispensing unit 20 and storage unit 30.
Incorporated by reference to consulting Fig. 3, it is the main interface schematic diagram of PLC graphical Configuration Design system according to the preferred embodiment of the invention.Hardware configuration unit 10 for graphically showing PLC machine frame on main interface, and this PLC machine frame is made up of CPU module 201, I/O module 202 and communication expansion module 203.In the main interface of Fig. 3, these functional modules of PLC are such as shown with figure.The present invention is applicable to the Medium PLC product belonging to modular type infrastructure product, the Medium PLC product that such as Hui Chuan company produces.This PLC product is divided into CPU module, I/O module and communication expansion module.Hardware configuration unit 10 comprises mainframe and extension frame at the PLC machine frame of main interface display, and mainframe comprises CPU module and multiple I/O module, extension frame comprises the I/O module of communication expansion module and expansion, and has connecting line between communication expansion module and CPU module.As shown CPU module 201 and multiple I/O module 202 with figure in Fig. 3 in mainframe 210.Such as controlling extendible 16 I/O module 202 at mainframe 210 by CPU module 201, can extension frame be increased, as the first extension frame 220 and the second extension frame 230 as needed more expansion.Each extension frame comprises communication expansion module 203 and multiple I/O module 202, and is connected with CPU module 201 by communication expansion module 203.Extension frame can expand 16 I/O module 202 equally, can set up at most 125 extension frames.
Dispensing unit 20 is based on .NET platform, corresponding allocation window is generated when the figure of CPU module 201, I/O module 202 or communication expansion module 203 is selected on main interface, and automatically generate corresponding block code according to the configuration information of allocation window input, and this block code is stored in storage unit 30.These codes will be used for the function being configured to realize expection to PLC.Refer to Fig. 4, the graphical Configuration Design system of PLC of the present invention can also select which kind of communication bus to carry out frame expansion by when extension frame.In allocation window 206, communication bus is selected to carry out frame expansion as passed through in Fig. 4.
In a preferred embodiment of the invention, the graphical Configuration Design system of PLC also comprises network configuration unit, for graphically showing network configuration on main interface.These network configurations comprise the network topology of multiple network equipment and LA Management Room, and the whole network of main display includes but not limited to the network topology of several bus of MODBUS, MODBUS-TCP, CANOpen, PROFIBUS-DP and EtherCAT.Referring to Fig. 5, is the network configuration schematic diagram of PLC programming interface according to the preferred embodiment of the invention.Shown in Fig. 5, being aligned to the network topology image of this several bus form in main interface that network configuration unit can be vivid.Whether user can select this several bus to apply, but also can carry out the parameter configuration of main website and slave station to the network topology of often kind of bus form.In Fig. 5 except the network configuration of each main website, also show the network configuration of slave station, such as PROFIBUS-DP slave station 207 and EtherCAT slave station 208.
In a preferred embodiment of the invention, this system also comprises the tree-like display unit for forming with tree structure display PLC and network topology.Hardware configuration unit 10 or network configuration unit highlight in tree structure in the part that the figure of main interface display is corresponding by this tree-like display unit.Such as, also provide tree structure 204 in Fig. 3 and Fig. 5 in the left side at main interface, meeting auto arrangement goes out current alternative and selects module, and alternate modular only need be dragged to assigned address with mouse by user, and operation is very easy for it.Also provide modeling block message in the below at main interface in Fig. 3, as shown in square frame 205, it corresponds to current selected module information.
In a preferred embodiment of the invention, the graphical Configuration Design system of this PLC also comprises Condition Monitoring Unit, for obtaining status information and the real-time diagnosis information of each several part from PLC when PLC runs, and adjust PLC machine frame or network configuration that main interface shows according to this status information and real-time diagnosis information.
Referring to Fig. 6, is the process flow diagram of the graphical configuration design method of PLC according to the preferred embodiment of the invention.As shown in Figure 6, the graphical configuration design method of PLC that this embodiment provides comprises the following steps:
First, in step sl, graphically on main interface, show PLC machine frame, this PLC machine frame is made up of CPU module, I/O module and communication expansion module, as shown in Figure 3.In a preferred embodiment of the invention, in step S1, mainframe and extension frame is comprised at the PLC machine frame of main interface display, and mainframe comprises CPU module and multiple I/O module, extension frame comprises the I/O module of communication expansion module and expansion, and has connecting line between communication expansion module and CPU module.
Subsequently, in step s 2, based on .NET platform, corresponding allocation window is generated when the figure of the CPU module on main interface, I/O module or communication expansion module is selected, and automatically generate corresponding block code according to the configuration information that this allocation window inputs, and this block code is stored.These codes will be used for the function being configured to realize expection to PLC.
In preferred embodiments more of the present invention, the method also comprises: on main interface, graphically show network configuration, and this network configuration comprises the network topology of multiple network equipment and LA Management Room.
The graphical Configuration Design system of PLC provided by the invention is that Automation Platform (robotization platform) instrument of application Codesys (Industry Control) software is developed on .NET platform, it on main interface that industrial products topology table of user's reality can be programmed now of image, and can be configured each commercial unit by this system.Running status and the diagnostic message of whole system can also be monitored when the system is operated.The visual software of this image is by the visual experience sense of the ease for use and user that improve product greatly.
It should be appreciated that, the principle of PLC provided by the invention graphical Configuration Design system and method is identical with implementation, is therefore also applicable to the graphical configuration design method of PLC of the present invention to the specific descriptions of the embodiment of PLC of the present invention graphical Configuration Design system.
The present invention is described according to specific embodiment, but it will be understood by those skilled in the art that when not departing from the scope of the invention, can carry out various change and equivalent replacement.In addition, for adapting to specific occasion or the material of the technology of the present invention, can many amendments be carried out to the present invention and not depart from its protection domain.Therefore, the present invention is not limited to specific embodiment disclosed herein, and comprises all embodiments dropping into claims.