CN108594746B - Visual programming control system and method, apparatus - Google Patents

Visual programming control system and method, apparatus Download PDF

Info

Publication number
CN108594746B
CN108594746B CN201810235430.XA CN201810235430A CN108594746B CN 108594746 B CN108594746 B CN 108594746B CN 201810235430 A CN201810235430 A CN 201810235430A CN 108594746 B CN108594746 B CN 108594746B
Authority
CN
China
Prior art keywords
logic
visual
debugging
program file
mould group
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
Application number
CN201810235430.XA
Other languages
Chinese (zh)
Other versions
CN108594746A (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.)
Zhuhai Boka Cool Source Equipment Co Ltd
Zhuhai Unitech Power Technology Co Ltd
Original Assignee
Zhuhai Boka Cool Source Equipment Co Ltd
Zhuhai Unitech Power Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Boka Cool Source Equipment Co Ltd, Zhuhai Unitech Power Technology Co Ltd filed Critical Zhuhai Boka Cool Source Equipment Co Ltd
Priority to CN201810235430.XA priority Critical patent/CN108594746B/en
Publication of CN108594746A publication Critical patent/CN108594746A/en
Application granted granted Critical
Publication of CN108594746B publication Critical patent/CN108594746B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/056Programming the PLC

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Programmable Controllers (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of visual programming control system and method, apparatus.Wherein, which includes: to apply logical program file for generating according to preset control parameters, preset control parameters are used to indicate editor's target control strategy, wherein target control strategy is the program for controlling equipment using logic visual programming tools;Controller hardware platform connect with using logic visual programming tools, for parse using logical program file obtain can run program file, execution can run program file, wherein can run program file be used to generate target control strategy.The technical issues of present invention solves in the related technology when carrying out automation control, can not fast and accurately generate control strategy.

Description

Visual programming control system and method, apparatus
Technical field
The present invention relates to technical field of automatic control, in particular to a kind of visual programming control system and side Method, device.
Background technique
In the related art, the strategy in automation control area is customized, due to the complicated multiplicity of control environment, is needed The customization of control strategy is carried out according to different scenes and user demand, current main control device has PLC and dedicated unit. Wherein, PLC, also known as programmable logic control unit, it is complete with high reliablity, flexible in configuration, input/output module, still It is expensive, trapezoidal pattern programming mode is also required to certain program capability, and the extension of input/output module is limited to PLC producer Bus standard and its offer input/output module, flexibility and customizability are limited.And with the development of intelligence manufacture The control equipment needed with social progress industrial circle and non-industrial circle is more and more, and control scene is also more and more various Change, it is also more more and more intense to the low cost requirement of control equipment, while the modifiability of control strategy also proposed higher It is expected that.And for dedicated unit, dedicated control program mostly, which is developed, using single-chip microcontroller cooperation realizes, cost is lower compared with PLC, But its initial development period length, poor universality, the modification difficulty of control strategy are big, the extension of hardware is even more to be not easy to realize.
For above-mentioned in the related technology when carrying out automation control, control strategy can not be fast and accurately generated Technical problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of visual programming control system and method, apparatus, at least to solve related skill In art when carrying out automation control, the technical issues of can not fast and accurately generating control strategy.
According to an aspect of an embodiment of the present invention, a kind of visual programming control system is provided, comprising: apply logic Visual programming tools apply logical program file for generating according to preset control parameters, and the preset control parameters are used for Instruction editor's target control strategy, wherein the target control strategy is the program for controlling equipment;Controller hardware platform, with The application logic visual programming tools connection for parsing the application logical program file obtains that program text can be run Part, can run program file described in execution, wherein it is described can run program file for generating target control strategy.
Further, the controller hardware platform includes at least: the first application logic operation engine, online using logic Debug engine, using logic in-service monitoring engine, network interface, the first application logic operation engine and the application logic are online Debugging engine and the application logic in-service monitoring engine are separately connected, the network interface and the application logic on-line debugging engine It is separately connected with the application logic in-service monitoring engine, wherein described first applies logic operation engine, for according to Using logical program file generated performing environment, wherein it is described first application logic operation it is engine-operated when by workspace tune Degree interval is scheduled each workspace, preferentially grading by workspace when multiple workspaces require synchronization scheduled Row successively scheduling, the first application logic operation engine are carried out one by one when executing by the operation order of the logic chart in workspace Scheduling, the first application logic operation engine are executed when executing by the operation order of the element in logic chart one by one;Institute It states using logic on-line debugging engine, for downloading the element using in logical program file and the debugging logic chart, Wherein, the network interface using logic on-line debugging engine and hardware layer externally provides connection;The application logic in-service monitoring Engine is supported using operation result in-service monitoring when logic operation, and be sent in logic to using logic visual programming tools Operation result and change information during figure operation, the network interface execute debugging behaviour in the application logic on-line debugging engine When making, alternatively, when the application logic in-service monitoring engine executes monitoring operation, with the application logic visual programming tools Carry out data interaction.
Further, the controller hardware platform further include: IO driving, I/O hardware equipment, wherein the IO driving, Data interaction for the first application logic operation engine and the I/O hardware equipment provides support, the I/O hardware equipment, Including at least multiple IO mould groups, the IO mould group is connected with the core controller of the controller hardware platform by bus, institute The quantity for stating IO mould group carries out dynamic increase according to the preset control parameters, and the increased IO mould group is patrolled by the application The IO mould group configurator for collecting visual programming tools, which is matched, postpones participation programming in logic.
Further, each IO mould group have M On-off signal, N number of output switch parameter, P analog input, Q analog output, wherein M, N, P, Q are the integer not less than 0, and the external interface sequence of each IO mould group is successively The model of On-off signal, output switch parameter, analog input, analog output, each IO mould group uses MmNnPpQq It indicates, m, n, p, q are that the number of On-off signal, the number of output switch parameter, the number of analog input, analog quantity are defeated respectively Number out.
Further, the application logic visual programming tools include at least: IO mould group configurator, graphical programming editor Device, on-line debugging controller, off-line simulator, the IO mould group configurator are connect with the controller hardware platform, the figure Shape programming editing machine is connect with the IO mould group configurator, and the on-line debugging controller and the graphical programming editing machine connect It connects, the off-line simulator is connect with the graphical programming editing machine, wherein the IO mould group configurator, it is described for managing The IO mould group of controller hardware platform, to the controller hardware platform mould group quantity and the IO mould group complete configuration behaviour After work, the I/O element of visual programming is generated by the IO mould group configurator;The graphical programming editing machine, for providing volume The I/O element of journey obtains visual logic figure to carry out graphics edition;The on-line debugging controller includes at least the first debugging Simulation Control interface, connection manager, the first debugging emulation logic diagram generator, wherein the on-line debugging controller passes through The connection manager and the controller hardware platform establish connection, to carry out visual logic figure described in on-line debugging;Institute State off-line simulator, include at least: IO simulator, the second application logic operation engine, dummy connector, the second debugging emulation are patrolled Collect diagram generator, the second debugging emulation control interface, wherein the IO simulator is defeated come the input for simulating visual logic programming Correspondence hardware device out, to support the operation of the second application logic operation engine;The dummy connector is described Virtual link channel between two debugging emulation control interfaces and the second application logic operation engine.
Further, the application logic visual programming tools further include: component library, compiler and downloader, wherein The component library, the operational capability of the first application logic operation engine corresponding to the controller hardware platform, to generate fortune It calculates element to use for the graphical programming editing machine, and constructs operation and arithmetic element in the first application logic operation engine Mapping relations used for the compiler;The compiler, for obtaining in component library in the first application logic operation engine The visual logic of graphical programming editing machine is compiled as first and drawn using logic operation by the mapping relations of operation and arithmetic element Hold up the program file that can be run, alternatively, for by first application logic operation engine can run program file decompiling be figure Program the visual logic of editing machine;The downloader is used for the application logical program file download to the controller Hardware platform.
Further, the application logic visual programming tools further include: function monitor, wherein the operation prison Visual organ establishes connection with the controller hardware platform, for carrying out operation monitoring to the controller hardware platform, records institute State can the operation data of run program file after operation change information, wherein the change information include: operation data become Temporal information when data before change, the data after operation data variation and operation data change.
Another method according to the present invention, also a kind of visual programming control method, comprising: according to preset control parameters, The IO mould group of Configuration Control Unit hardware platform, wherein the IO mould group obtains visual logic figure for carrying out graphical programming; The visual logic figure is compiled, be applied logical program file;Extremely by the application logical program file download Controller hardware platform, wherein the application logical program file obtain can run program file, program can be run described in execution File, it is described can run program file for generating corresponding with preset control parameters target control strategy, the target Control strategy is the program for controlling equipment.
Further, the visual logic figure is compiled, the logical program file that is applied includes: that creation is more A workspace, wherein when creating the multiple workspace, the priority of each workspace is set, the workspace it is preferential The traffic control sequence of grade instruction workspace, wherein when creating the multiple workspace, each workspace is set at runtime Traffic control interval;Visual logic figure is created in the multiple workspace, wherein creating the visual logic figure When, the operation order of each visual logic figure is set, includes multiple visual logic figures, the same work in each workspace The operation order of visual logic figure under area uniquely determines;Graphics edition is carried out in each visual logic figure, is obtained To the application logical program file, wherein when carrying out graphics edition, indicate the element placed in each visual logic figure Connection relationship carry out graphics edition, the element includes at least: I/O element, arithmetic element, and the I/O element includes input Element and output element, the I/O element is generated according to the IO mould group access state of the controller hardware platform, described Arithmetic element is that the component library using logic visual programming tools provides.
Further, graphics edition is carried out in each visual logic figure, obtains the application logical program text After part, which comprises convert multiple visual logic figures, obtain multiple debugging emulation logic charts;Add Carry the multiple debugging emulation logic chart;On-line debugging is carried out to the multiple debugging emulation logic chart, obtains debugging result.
Further, on-line debugging is carried out to the multiple debugging emulation logic chart, obtaining debugging result includes: according to institute Multiple debugging emulation logic charts are stated, emulation logic figure to be debugged is selected;Obtain the member in the emulation logic figure to be debugged The parameter of part;According to the parameter of the element in the emulation logic figure to be debugged, execute in the emulation logic figure to be debugged Element obtains implementing result alternatively, executing the emulation logic figure to be debugged;According to the implementing result, determine that visualization is patrolled Whether correct collect figure.
Further, the visual logic figure is compiled, the logical program file that is applied include: to it is described can Off-line simulation debugging is carried out depending on changing logic chart, obtains artificial debugging result;According to the artificial debugging as a result, described in compiling generates Using logical program file.
It according to another aspect of an embodiment of the present invention, further include a kind of visual programming control device, comprising: configuration is single Member, for according to preset control parameters, the IO mould group of Configuration Control Unit hardware platform, wherein the IO mould group is for carrying out figure Shape programming, obtains visual logic figure;Compilation unit is applied for being compiled to the visual logic figure Logical program file;Download unit is used for the application logical program file download to controller hardware platform, wherein institute State using logical program file obtain can run program file, described in execution can run program file, it is described to run program text Part is the journey for controlling equipment for generating target control strategy corresponding with the preset control parameters, the target control strategy Sequence.
Further, the compilation unit includes: the first creation module, for creating multiple workspaces, wherein is being created When the multiple workspace, the priority of each workspace, the operation tune of the priority indication workspace of the workspace are set Degree sequence, wherein when creating the multiple workspace, the traffic control interval of each workspace at runtime is set;Second Creation module, for creating visual logic figure in the multiple workspace, wherein creating the visual logic figure When, the operation order of each visual logic figure is set, includes multiple visual logic figures, the same work in each workspace The operation order of visual logic figure under area uniquely determines;Graphics edition module, in each visual logic figure Interior carry out graphics edition obtains the application logical program file, wherein when carrying out graphics edition, indicate each visualization The connection relationship for the element placed in logic chart carries out graphics edition, and the element includes at least: I/O element, arithmetic element, The I/O element includes input element and output element, and the I/O element is connect according to the IO mould group of the controller hardware platform Enter state generation, the arithmetic element is that the component library using logic visual programming tools provides.
Further, above-mentioned control device further include: converting unit, in each visual logic figure into Row graphics edition after obtaining the application logical program file, multiple visual logic figures is converted, are obtained more A debugging emulation logic chart;Loading unit, for loading the multiple debugging emulation logic chart;Debugging unit, for described Multiple debugging emulation logic charts carry out on-line debugging, obtain debugging result.
Further, the debugging unit includes: selecting module, for according to the multiple debugging emulation logic Figure, selects emulation logic figure to be debugged;Module is obtained, for obtaining the parameter of the element in the emulation logic figure to be debugged; Execution module executes the emulation logic figure to be debugged for the parameter according to the element in the emulation logic figure to be debugged In element obtain implementing result alternatively, executing the emulation logic figure to be debugged;Determining module, for according to the execution As a result, determining whether visual logic figure is correct.
Further, the compilation unit further include: simulation debugging module, for the visual logic figure carry out from Line artificial debugging obtains artificial debugging result;Collector, for being answered described in generation according to the artificial debugging as a result, compiling With logical program file.
According to another aspect of the present invention, a kind of terminal is further comprised, comprising: memory is coupled with the memory Processor, the memory and the processor are communicated by bus system;The memory is for storing program, wherein Equipment where described program controls the memory when being executed by processor executes the volume of visualization described in above-mentioned any one Process control method, the processor is for running program, wherein described program executes when running can described in above-mentioned any one Depending on changing programmable control method.
In embodiments of the present invention, application is generated according to preset control parameters using application logic visual programming tools to patrol Volume program file, and by controller hardware platform parse this using logical program file obtain can run program file, execution Can run program file, to generate target control strategy.Can be quickly generated by the embodiment can run journey accordingly Preface part, to obtain corresponding target control strategy, compared with dedicated unit and PLC in the related technology, have it is at low cost, open Period short effect is sent out, so that customization control strategy is eased, efficient, solves carrying out automation control in the related technology When, the technical issues of can not fast and accurately generating control strategy.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of visual programming control system according to an embodiment of the present invention;
Fig. 2 is the schematic diagram of another visualization control programming Control system according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of off-line simulator according to embodiments of the present invention;
Fig. 4 is a kind of schematic diagram of on-line debugging controller according to an embodiment of the present invention;
Fig. 5 is the flow chart of visual programming control method according to an embodiment of the present invention;
Fig. 6 is the flow chart of another visual programming control method according to an embodiment of the present invention;
Fig. 7 is a kind of schematic diagram of visual programming control device according to an embodiment of the present invention;
Fig. 8 is a kind of schematic diagram of terminal according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Visual programming tools involved in following embodiments can be programming tool corresponding to various programming languages, And controller hardware platform can be I/O controller hardware platform, it, can be according to control after having new control strategy demand Policy requirement is programmed by visual programming tools, with the logical program file that is applied, to control relevant set It is standby, and after the logical program file that is applied, it can use controller hardware platform to run the program file, to transporting After row, debugger file, while the case where running using execution can also be monitored after logical program file, occur it is different Chang Shi sends a warning in time.
Embodiment one
Fig. 1 is a kind of schematic diagram of visual programming control system according to an embodiment of the present invention, as shown in Figure 1, the control System processed may include:
Using logic visual programming tools 11, logical program file is applied for generating according to preset control parameters, in advance If control parameter is used to indicate editor's target control strategy, wherein target control strategy is the program for controlling equipment;
Controller hardware platform 12 is connect with using logic visual programming tools, for parsing using logical program text Part obtain can run program file, execution can run program file, wherein can run program file for generating target control plan Slightly.
Wherein, above-mentioned preset control parameters can be the parameter of terminal input terminal input, it can be understood as control strategy Demand parameter, can be instructed to customize out target control strategy according to the preset control parameters.And controller hardware platform is at this It can be I/O controller in application, the type of hardware platform do not limited in certain the application, can also be other types of hard Part platform.
By above-mentioned control system, can use using logic visual programming tools 11 according to preset control parameters It generates and applies logical program file, and this is parsed by controller hardware platform 12 and obtains to run using logical program file Program file, execution can run program file, to generate target control strategy.Phase can be quickly generated by the embodiment Answer can run program file, to obtain corresponding target control strategy, compared with dedicated unit and PLC in the related technology, Have the effect of that at low cost, the development cycle is short so that customization control strategy it is eased, efficient, solve in the related technology into When row automation control, the technical issues of can not fast and accurately generating control strategy.
In above-described embodiment, it can use using logic visual programming tools and programming Control be provided, Fig. 2 is according to this The schematic diagram of another visualization control programming Control system of inventive embodiments, as shown in Fig. 2, control system includes application Logic visual programming tools and controller hardware platform, wherein controller hardware platform includes at least: the first application logic is transported Row engine, using logic on-line debugging engine, using logic in-service monitoring engine, network interface, the first application logic operation engine with It is separately connected using logic on-line debugging engine and application logic in-service monitoring engine, network interface and application logic on-line debugging engine It is separately connected with using logic in-service monitoring engine, wherein first applies logic operation engine, for according to using logical program File generated performing environment, wherein by the scheduling interval of workspace to each work when the first application logic operation is engine-operated Area is scheduled, and when multiple workspaces require synchronization scheduled, is successively dispatched by workspace priority, first answers It is dispatched one by one when being executed with logic operation engine by the operation order of the logic chart in workspace, first applies logic operation Engine is executed when executing by the operation order of the element in logic chart one by one;Using logic on-line debugging engine, it is used for down It carries using logical program file and debugs the element in logic chart, wherein using the net of logic on-line debugging engine and hardware layer Mouth externally provides connection;It using logic in-service monitoring engine, supports using operation result in-service monitoring when logic operation, and to answering Operation result and change information during being sent in logic chart operation with logic visual programming tools, in addition, network interface is to answer When executing debugging operations with logic on-line debugging engine, alternatively, executing monitoring operation Shi Yuying using logic in-service monitoring engine Data interaction is carried out with logic visual programming tools.
It can star the controller hardware platform after the logical program file that is applied and run the program, lead to It crosses the first engine-operated this of application logic operation and applies logical program file, generating performing environment can be basis at runtime Workspace is scheduled execution, and when being dispatched in a workspace, it can be scheduled and be held according to the operation order of logic chart Row can be dispatched according to the operation order of each element in each logic chart and be executed in the scheduling of the same logic chart.This hair In bright embodiment, multiple logic charts of each workspace can be generated after generating using logical program file, it is each generating Logic chart can be the connection relationship established between element and element, and that determines each element executes sequence.Optionally, After executing using logical program file, after obtaining performing environment, each logic chart can be run, at runtime, can use The element in logic chart is debugged using logic on-line debugging engine, and using application logic in-service monitoring engine come watchdog logic Operation result in figure, and determine operation result and change information during logic chart operation.
It should be noted that above-mentioned controller hardware platform further include: IO driving, I/O hardware equipment, wherein IO drives It is dynamic, support is provided for the data interaction of the first application logic operation engine and I/O hardware equipment, I/O hardware equipment includes at least more A IO mould group, IO mould group are connected with the core controller of controller hardware platform by bus, and the quantity of IO mould group is according to default Control parameter carries out dynamic increase, and increased IO mould group using the IO mould group configurator of logic visual programming tools by configuring After participate in programming in logic.
In above embodiment, IO driving can use to provide the data interaction with I/O hardware equipment, for example, to mouse The input/output interfaces such as mark, keyboard provide driving.In addition, in the present invention, for each I/O hardware equipment, can establish pair The IO mould group answered, to provide corresponding IO mould group to each I/O hardware equipment.Wherein, IO mould group can be adjusted dynamically according to demand It is whole, in adjustment, it can be according to the quantity of I/O hardware equipment and to reasonably adjust.Preferably, there are each IO mould group M to be opened Input, N number of output switch parameter, P analog input, Q analog output are measured in pass, and wherein M, N, P, Q are whole not less than 0 The external interface sequence of number, each IO mould group is successively On-off signal, output switch parameter, analog input, analog output, The model of each IO mould group indicates that m, n, p, q are of the number of On-off signal, output switch parameter respectively using MmNnPpQq Number, the number of analog input, the number of analog output.
Optionally, above-mentioned M, N, P, Q can be constant mark, in the On-off signal output and simulation for determining IO mould group After measuring input and output, IO mould group corresponding to the model of each I/O hardware equipment, the IO for the IO mould group determined can be determined Quantity and arrangement mode uniquely determine.
Wherein, above-mentioned controller hardware platform, can also include network driver block, which can be The driver of network interface card, for using the data interaction of logic on-line debugging engine or application program operation monitoring engine and network interface It provides and supports.In addition, the physics of data interaction when can be on-line debugging and operation monitoring is logical for the network interface of hardware layer Road, it can by the network interface, allow and carry out data transmission using logic on-line debugging engine and application logic operation monitoring engine.
Application logic visual programming tools in the above embodiment of the present invention include at least: IO mould group configurator, figure Editing machine, on-line debugging controller, off-line simulator are programmed, IO mould group configurator is connect with controller hardware platform, and figure is compiled Journey editing machine is connect with IO mould group configurator, and on-line debugging controller is connect with graphical programming editing machine, off-line simulator and figure Shape programs editing machine connection, wherein IO mould group configurator, for the IO mould group of Management Controller hardware platform, to controller After the mould group quantity and IO mould group of hardware platform complete configuration operation, the IO member of visual programming is generated by IO mould group configurator Part;Graphical programming editing machine, the I/O element for providing programming obtain visual logic figure to carry out graphics edition;It is online to adjust Controller is tried, the first debugging emulation control interface, connection manager, the first debugging emulation logic diagram generator are included at least, In, on-line debugging controller establishes connection by connection manager and controller hardware platform, to carry out on-line debugging visualization Logic chart;Off-line simulator includes at least: IO simulator, the second application logic operation engine, dummy connector, the second debugging Emulation logic diagram generator, the second debugging emulation control interface, wherein IO simulator come simulate visual logic programming input The correspondence hardware device of output, to support the operation of the second application logic operation engine;Dummy connector is the second debugging emulation Virtual link channel between control interface and the second application logic operation engine.
Each IO mould group can be managed using IO mould group configurator, can be generated visually by the IO mould group configurator The I/O element for changing programming can use IO mould group configurator that is, after obtaining preset control parameters and relevant I/O hardware equipment I/O element is generated, may include multiple I/O elements in each logic chart, and I/O element is carried out using graphical programming editing machine Graphics edition, so that it is determined that each visual logic figure out, it can after obtaining each I/O element, generate and correspond to I/O element With the visual logic figure of connection relationship.
Optionally, when establishing visual logic figure by graphical programming editing machine, following step can be respectively included:
Step 11, creation workspace, are arranged the running priority grade of workspace, when creating workspace, each work are arranged The traffic control interval of area at runtime.
Step 12 creates logic chart in workspace, its operation order is arranged.Wherein, a logic chart is one opposite Independent logic function block can have multiple logic charts under one workspace, and the operation of the logic chart under the same workspace is suitable Sequence uniquely determines.
Step 13 carries out programming in logic in logic chart, and programming in logic is by interior placing element, specifies its connection relationship It completes.Element includes I/O element, arithmetic element;I/O element includes input element, output element again;Element by input, output, Operation three parts composition;When programming input element be connected with the input of arithmetic element or output element, the output of arithmetic element with The input of another operating element or output element are connected, and the N number of input thus constituted is defeated through operation generation P of M element Logic out, wherein N is integer greater than 0, M is that integer, P not less than 0 is integer greater than 0.Wherein I/O element is basis The IO mould group access situation of I/O controller hardware platform has IO mould group configurator to generate;Arithmetic element is that component library is provided and managed Reason.
Fig. 3 is a kind of schematic diagram of off-line simulator according to embodiments of the present invention, as shown in figure 3, the off-line simulator packet Debugging emulation control interface, debugging emulation logic diagram generator have been included, virtually connected machine, simulated using logic operation engine, IO Device, wherein IO simulator simulates the correspondence hardware device of the input and output of visual logic programming by software, to support to answer With the operation of logic operation engine;Logic is applied using described in logic operation engine and application logic operation environment exploitation tool Runtime engine is identical;Dummy connector is the virtual link channel between debugging emulation control circle and application logic operation engine, Play the role of playing again similar to the connection function of on-line debugging using logic on-line debugging engine;Debugging emulation is patrolled It is identical as debugging emulation logic diagram generator described in on-line debugging controller to collect diagram generator;Debugging emulation control interface and online Debugging emulation control interface described in debugging control device is identical.
Optionally, which can also include: using logic visual programming tools, as shown in Fig. 2, the application is patrolled Volume visual programming tools include on-line debugging controller, off-line simulator, IO mould group configurator, graphical programming editing machine, Component library, compiler and downloader, wherein generated by IO mould group configurator visual programming I/O element (can be from Chosen in component library and obtain the corresponding element for applying logic operation engine), programmed element is used using graphical programming editing machine (corresponding I/O element) carries out programming in logic, can use after obtaining visual logic figure with obtaining each visual logic figure On-line debugging controller carries out on-line debugging visual logic figure, and is that application is patrolled by visual logic schema compiler using compiler Program file is collected, finally utilizes downloader by file download to I/O controller hardware platform.
Optionally, after obtaining visual logic figure by graphical programming editing machine, it can use on-line debugging controller Connection is established with controller hardware platform, to carry out on-line debugging.Fig. 4 is a kind of on-line debugging according to an embodiment of the present invention The schematic diagram of controller, as shown in Figure 4, wherein the on-line debugging controller may include debugging emulation control interface, connecting tube Device and debugging emulation logic generator are managed, debugging process may include following step:
21, the connection type and debugged I/O controller hardware platform specified by connection manager by user, which are established, connects It connects, connection enters step 22 after being successfully established;
22, the visual logic that graphical programming editing machine generates is converted to by debugging by debugging emulation logic diagram generator Emulation logic figure.Enter step 23 after converting successfully.
23, debugging emulation logic chart is loaded by debugging emulation control interface and enters on-line debugging state.
Debugging emulation control interface can be the control interface debugged to visual programming file, debugging emulation step It suddenly can be with are as follows:
2301, the logic chart to be debugged is selected;
2302, the value of input element or the value of specified element input are set;
2303, discrete component or execution full figure are executed by specified;
2304, operation result, decision logic correctness are observed.
Wherein, using logic visual programming tools further include: component library, compiler and downloader, wherein component library, The operational capability of the first application logic operation engine corresponding to controller hardware platform, to generate arithmetic element for graphical programming Editing machine uses, and constructs the mapping relations of operation and arithmetic element in the first application logic operation engine and use for compiler; Compiler, for obtaining the mapping relations of operation and arithmetic element in the first application logic operation engine in component library, by figure The visual logic of programming editing machine is compiled as the first program file that can be run using logic operation engine, alternatively, for will First application logic operation engine can run program file decompiling be graphical programming editing machine visual logic;Downloader, For logical program file download will to be applied to controller hardware platform.
I.e. above-mentioned component library can provide the element in editor's visual logic figure.And it will be visualized using editing machine Logic (such as program human window perhaps above-mentioned visual logic figure) compiling using logical program file or passes through the compiling Device will be compiled as visual logic using logical program file reverse.
Preferably, using logic visual programming tools further include: function monitor, wherein function monitor, with control Device hardware platform establishes connection, for controller hardware platform carry out operation monitoring, record can run program file running The change information of operation data afterwards, wherein change information includes: after data, the operation data before operation data variation change Data and operation data change when temporal information.Optionally, which may include visual logic besel Change record window with operation data, wherein visual logic besel can be the visualization generated by graphical programming editing machine Logical transition, and the display of its value is increased in the input and output position of each element, which is from I/O controller hardware What platform interior obtained.Its corresponding visualization of current record, switching for changing record window by tracking operation data of operation monitoring Logic monitors window is current window;Newest data variation is recorded as current record, can make non-current number by mouse selection Current record is recorded as according to variation.
Embodiment two
According to embodiments of the present invention, a kind of embodiment of the method for visual programming control is provided, it should be noted that In The step of process of attached drawing illustrates can execute in a computer system such as a set of computer executable instructions, also, It, in some cases, can be to be different from shown in sequence execution herein although logical order is shown in flow charts The step of out or describing.
Fig. 5 is the flow chart of visual programming control method according to an embodiment of the present invention, as shown in figure 5, this method packet Include following steps:
Step S102, according to preset control parameters, the IO mould group of Configuration Control Unit hardware platform, wherein IO mould group is used for Graphical programming is carried out, visual logic figure is obtained.
Wherein, each IO mould group has M On-off signal, N number of output switch parameter, P analog input, Q simulation Amount output, wherein M, N, P, Q are the integer not less than 0, and they the sum of be greater than 0;The external interface sequence of one mould group according to Secondary is On-off signal, output switch parameter, analog input, analog output.Optionally, the model of each IO mould group uses MmNnPpQq indicates that wherein M, N, P, Q are constant mark, and m, n, p, q are On-off signal, output switch parameter, analog quantity respectively It inputs, the number of analog output.
Step S104 is compiled visual logic figure, and be applied logical program file.
Step S106, will be using logical program file download to controller hardware platform, wherein apply logical program file Obtain can run program file, execution can run program file, can run program file for generate with preset control parameters pair The target control strategy answered, target control strategy are the programs for controlling equipment.
Through the above steps, IO mould group can be corresponded to according to preset control parameters, Configuration Control Unit hardware platform, passes through IO The each arithmetic element of mould group editor, then carries out graphical programming, obtains visual logic figure, then can be to visual logic figure Be compiled, thus the logical program file that is applied, finally will using logical program file download to controller hardware platform, Using the controller hardware platform execute can run program file, to realize the customization of target control strategy.It can pass through The embodiment is quickly generated using logical program file, special in the related technology to obtain corresponding target control strategy It is compared with device with PLC, has the effect of that at low cost, the development cycle is short, so that customization control strategy is eased, efficient, solution Certainly in the related technology when carrying out automation control, the technical issues of can not fast and accurately generating control strategy.
Optionally, visual logic figure is compiled, the logical program file that is applied includes: the multiple work of creation Area, wherein when creating multiple workspaces, the priority of each workspace is set, the priority indication workspace of workspace Traffic control sequence, wherein when creating multiple workspaces, the traffic control interval of each workspace at runtime is set.It should Workspace can be the working region of setting, may include multiple workspaces in each program file at runtime.And for work Make the priority in area, the priority of each workspace can be determined by setting identification information.
Visual logic figure is created in multiple workspaces, wherein when creating visual logic figure, be arranged each visual Change the operation order of logic chart, includes multiple visual logic figures in each workspace.Wherein, the fortune of visual logic figure is set Row sequence, can be the precedence for indicating each visual logic figure, thus indicate how logic chart runs, the same work The operation order of visual logic figure under area uniquely determines.
Graphics edition is carried out in each visual logic figure, be applied logical program file, wherein carrying out figure When editor, the connection relationship for the element placed in each visual logic figure is indicated to carry out graphics edition, element includes at least: I/O element, arithmetic element, I/O element include input element and output element, and I/O element is the IO mould according to controller hardware platform Group access state generates, and arithmetic element is provided using the component library of logic visual programming tools.
Above-mentioned embodiment can be and carry out visualized graphs edit operation, visual logic figure obtained, in workspace It can establish the operation order of logic chart, a logic chart is a relatively independent logic function block, can under a workspace To there is multiple logic charts, the operation order of the logic chart under the same workspace is uniquely determined.It, can after determining each logic chart To carry out graphics edition to each logic chart, when carrying out graphics edition, it can be through interior placing element, its connection specified to close What system completed.Element includes I/O element, arithmetic element;I/O element includes input element, output element again;Element by input, it is defeated Out, operation three parts form;When programming input element be connected with the input of arithmetic element or output element, the output of arithmetic element It is connected with the input of another operating element or output element, the N number of input thus constituted generates P through the operation of M element The logic of output, wherein N is integer greater than 0, M is that integer, P not less than 0 is integer greater than 0.Wherein I/O element is root There is IO mould group configurator to generate according to the IO mould group access situation of I/O controller hardware platform;Arithmetic element be component library provide and Management.
It can be by indicating the connection relationship of each element and the input/output relation of element, to indicate in logic chart The method of operation of element can be each element in operation visual logic figure, obtain in this way, in run program file To the output parameter of each element, to obtain controlling the control parameter of each equipment, to customize target control strategy.
Preferably, graphics edition is carried out in each visual logic figure, be applied after logical program file, the reality Apply mode further include: multiple visual logic figures are converted, multiple debugging emulation logic charts are obtained;It is imitative to load multiple debugging True logic chart;On-line debugging is carried out to multiple debugging emulation logic charts, obtains debugging result.
It is to illustrate to debug visual logic figure, wherein the debud mode can be applied in above-mentioned embodiment In on-line debugging controller, which may include debugging emulation control interface, connection manager, debugs and imitate True logic diagram generator can establish connection, In by connection manager and debugged I/O controller hardware platform in debugging After establishing connection, it can use debugging emulation logic diagram generator and be converted to the visual logic that graphical programming editing machine generates Then debugging emulation logic chart loads debugging emulation logic chart by debugging emulation control interface and enters on-line debugging state.
Optionally, it when debugging emulation control interface load debugging emulation logic chart enters on-line debugging state, can wrap It includes: the visual logic figure to be debugged of selection;The value of input element or the value of specified element input are set;It is executed individually by specified Element executes full figure;Observe operation result, decision logic correctness.Can be carried out to multiple debugging emulation logic charts On-line debugging, obtaining debugging result is, according to multiple debugging emulation logic charts, selects emulation logic figure to be debugged;It obtains wait adjust Try the parameter of the element in emulation logic figure;According to the parameter of the element in emulation logic figure to be debugged, emulation to be debugged is executed Element in logic chart obtains implementing result alternatively, executing emulation logic figure to be debugged;According to implementing result, visualization is determined Whether logic chart is correct.Visual logic figure can be determined by executing discrete component or executing visual logic full figure Operation logic it is whether correct, and occur mistake or it is abnormal when, adjust, if all correct, can export correct in time As a result, and exporting the visual logic figure.
In addition, be compiled to visual logic figure, be applied logical program file when, may include: to visual Change logic chart and carry out off-line simulation debugging, obtains artificial debugging result;According to artificial debugging as a result, compiling, which generates, applies logic journey Preface part.
Wherein, above-mentioned embodiment can be applied in off-line simulator, offline by carrying out to visual logic figure Artificial debugging obtains artificial debugging as a result, being applied logical program file to compile generation.
Fig. 6 is the flow chart of another visual programming control method according to an embodiment of the present invention, and this method can answer For in visual programming platform (corresponding to above-mentioned visual programming system), which to include applying logic Visual programming tools and I/O controller hardware platform, as shown in fig. 6, this method may include:
201, it is selected by I/O controller hardware platform and connects Hardware I/O mould group.
202, by configuring IO mould group using logic visual programming tools.
203, by carrying out graphical programming using logic visual programming tools.It is available after carrying out graphical programming Visual logic figure.
204, by carrying out off-line simulation debugging using logic visual programming tools.
205, it is compiled and is generated using logical program file by application logic visual programming tools.
It 206, will be using logical program file download into I/O controller hardware platform.
207, I/O controller hardware platform receives and saves the application logical program file of downloading.
208, logic operation engine is applied in starting.After starting using logical program runtime engine, program text can be generated The performing environment of part, and each visual logic figure can be run, it, can be in logic chart when running visual logic figure Each element successively executed one by one according to the operation order of element.
209, logic on-line debugging engine is applied in starting.Wherein, after starting the on-line debugging engine, can to element into Row single-step debug, in debugging, can join the input and output of element so that it is determined that whether the operation logic of each element is correct Number is adjusted.
210, starting monitors engine using logic operation.It wherein, can be to element operation knot after starting the monitoring engine Fruit carries out in-service monitoring, and is sent out the operation result of each element of visual logic figure during operation and variation letter Breath.
211, on-line debugging is carried out by visual programming tools.Can after band visual logic figure, can be with On-line debugging is carried out by visual programming tools, wherein in debugging, can be specified by connection manager by user Connection type and debugged I/O controller hardware platform establish connection;Graphical programming is compiled by debugging emulation logic diagram generator It collects the visual logic that device generates and is converted to debugging emulation logic chart.Debugging emulation logic is loaded by debugging emulation control interface Figure enters on-line debugging state.
212, in-service monitoring work is carried out by visual programming tools.Each element can executed or entirely may be used When depending on changing logic chart, the operation result of monitoring element, and judge the correctness of arithmetic logic.
By the above embodiments, it can use visual programming tools editor using logical program file, then utilize I/O controller hardware platform carrys out run program file, and at runtime, supports the debugging of each element and logic chart, with obtain with The corresponding target control strategy of user demand.Compared with dedicated unit and PLC in the related technology, there is at low cost, exploitation Period short effect can quickly generate control strategy so that visual logic figure generating mode is eased, efficient, solve In the related technology when carrying out automation control, the technical issues of can not fast and accurately generating control strategy.
Embodiment three
Fig. 7 is a kind of schematic diagram of visual programming control device according to an embodiment of the present invention, as shown in fig. 7, the dress Setting may include: configuration unit 71, for according to preset control parameters, the IO mould group of Configuration Control Unit hardware platform, wherein IO Mould group obtains visual logic figure for carrying out graphical programming;Compilation unit 73, for being compiled to visual logic figure It translates, be applied logical program file;Download unit 75, for logical program file download to controller hardware will to be applied to put down Platform, wherein using logical program file obtain can run program file, execution can run program file, can run program file For generating target control strategy corresponding with preset control parameters, target control strategy is the program for controlling equipment.
It, can be by configuration unit 71 according to preset control parameters, Configuration Control Unit hardware in above-mentioned control device Platform corresponds to IO mould group, by each arithmetic element of IO mould group editor, then carries out graphical programming, obtains visual logic figure, It may then pass through compilation unit 73 to be compiled visual logic figure, so that the logical program file that is applied, finally may be used Will be held using logical program file download to controller hardware platform using the controller hardware platform by download unit 75 Row can run program file, to realize the customization of target control strategy.Application can be quickly generated by the embodiment Logical program file, to obtain corresponding target control strategy, compared with dedicated unit and PLC in the related technology, have at The effect that this is low, the development cycle is short solves carrying out automatically in the related technology so that customization control strategy is eased, efficient When changing control, the technical issues of can not fast and accurately generating control strategy.
Optionally, compilation unit 73 may include: the first creation module, for creating multiple workspaces, wherein create When multiple workspaces, the priority of each workspace is set, the traffic control sequence of the priority indication workspace of workspace, In, when creating the multiple workspace, the traffic control interval of each workspace at runtime is set;Second creation module, For creating visual logic figure in multiple workspaces, wherein when creating visual logic figure, each visualization is arranged and patrols The operation order of figure is collected, includes multiple visual logic figures in each workspace, the visual logic figure under the same workspace Operation order uniquely determine;Graphics edition module is applied for carrying out graphics edition in each visual logic figure Logical program file, wherein when carrying out graphics edition, indicate the connection relationship for the element placed in each visual logic figure Graphics edition is carried out, element includes at least: I/O element, arithmetic element, and I/O element includes input element and output element, IO member Part is generated according to the IO mould group access state of controller hardware platform, and arithmetic element is using logic visual programming tools Component library provide.
In addition, above-mentioned control device further include: converting unit, for carrying out figure volume in each visual logic figure Volume, it is applied after logical program file, multiple visual logic figures is converted, obtain multiple debugging emulation logics Figure;Loading unit, for loading multiple debugging emulation logic charts;Debugging unit, for being carried out to multiple debugging emulation logic charts On-line debugging obtains debugging result.
It should be noted that debugging unit may include: selecting module, for according to multiple debugging emulation logic charts, choosing Select emulation logic figure to be debugged;Module is obtained, for obtaining the parameter of the element in emulation logic figure to be debugged;Execution module, For the parameter according to the element in emulation logic figure to be debugged, the element in emulation logic figure to be debugged is executed, alternatively, executing Emulation logic figure to be debugged, obtains implementing result;Determining module, for whether determining visual logic figure according to implementing result Correctly.
Preferably, compilation unit 73 further include: simulation debugging module, for carrying out off-line simulation tune to visual logic figure Examination, obtains artificial debugging result;Collector, for applying logical program file as a result, compiling and generating according to artificial debugging.
Fig. 8 is a kind of schematic diagram of terminal according to an embodiment of the present invention, as shown in figure 8, the terminal may include: storage Device 81, the processor 83 coupled with memory, memory and processor are communicated by bus system;Memory is for storing journey Sequence, wherein equipment where program controls memory when being executed by processor executes the visual programming control of above-mentioned any one Method processed, processor is for running program, wherein program executes the visual programming controlling party of above-mentioned any one when running Method.
Optionally, processor is adapted for carrying out the program of following method and step: being joined according to default control when running program Number, the IO mould group of Configuration Control Unit hardware platform, wherein IO mould group obtains visual logic figure for carrying out graphical programming;It is right Visual logic figure is compiled, and be applied logical program file;It will be using logical program file download to controller hardware Platform, wherein using logical program file obtain can run program file, execution can run program file, can run program text Part is the program for controlling equipment for generating target control strategy corresponding with preset control parameters, target control strategy.
Optionally, when processor runs program, multiple workspaces can also be created, wherein creating multiple workspaces When, the priority of each workspace, the traffic control sequence of the priority indication workspace of workspace, wherein creating are set When the multiple workspace, the traffic control interval of each workspace at runtime is set;It is created in multiple workspaces visual Change logic chart, wherein when creating visual logic figure, the operation order of each visual logic figure, each workspace are set In include multiple visual logic figures, the operation order of the visual logic figure under the same workspace uniquely determines;Each Graphics edition is carried out in visual logic figure, be applied logical program file, wherein when carrying out graphics edition, instruction is every The connection relationship for the element placed in a visual logic figure carries out graphics edition, and element includes at least: I/O element, operand Part, I/O element include input element and output element, and I/O element is raw according to the IO mould group access state of controller hardware platform At, arithmetic element is provided using the component library of logic visual programming tools.
Optionally, when processor runs program, graphics edition can also be carried out in each visual logic figure, obtained After logical program file, multiple visual logic figures are converted, obtain multiple debugging emulation logic charts;It loads more A debugging emulation logic chart;On-line debugging is carried out to multiple debugging emulation logic charts, obtains debugging result.
Optionally, when processor runs program, emulation to be debugged can also be selected according to multiple debugging emulation logic charts Logic chart;Obtain the parameter of the element in emulation logic figure to be debugged;According to the parameter of the element in emulation logic figure to be debugged, The element in emulation logic figure to be debugged is executed, alternatively, executing emulation logic figure to be debugged, obtains implementing result;According to execution As a result, determining whether visual logic figure is correct.
Optionally, when processor runs program, off-line simulation debugging can also be carried out to visual logic figure, is imitated True debugging result;According to artificial debugging as a result, compiling, which generates, applies logical program file.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of unit, can be one kind Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of unit or module, It can be electrical or other forms.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple units On.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
It, can if integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product To be stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products Out, which is stored in a storage medium, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of step of each embodiment method of the present invention Suddenly.And storage medium above-mentioned includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (12)

1. a kind of visual programming control system characterized by comprising
Using logic visual programming tools, logical program file is applied for generating according to preset control parameters, it is described default Control parameter is used to indicate editor's target control strategy, wherein the target control strategy is the program for controlling equipment;
Controller hardware platform is connect with the application logic visual programming tools, described using logical program for parsing File obtain can run program file, can run program file described in execution, wherein it is described can run program file for generating Target control strategy,
Wherein, the controller hardware platform includes at least: the first application logic operation engine draws using logic on-line debugging It holds up, draw using logic operation engine with the application logic on-line debugging using logic in-service monitoring engine, network interface, described first It holds up and is separately connected with the application logic in-service monitoring engine, the network interface and the application logic on-line debugging engine and described It is separately connected using logic in-service monitoring engine, wherein
Described first applies logic operation engine, for according to the application logical program file generated performing environment, wherein institute State first application logic operation it is engine-operated when each workspace is scheduled by the scheduling interval of workspace, in multiple work It when area requires synchronization scheduled, is successively dispatched by workspace priority, described first holds using logic operation engine It is dispatched one by one when row by the operation order of the logic chart in workspace, the first application logic operation engine is pressed when executing The operation order of element in logic chart is executed one by one;
The application logic on-line debugging engine, it is described using in logical program file and the debugging logic chart for downloading Element, wherein the network interface using logic on-line debugging engine and hardware layer externally provides connection;
The application logic in-service monitoring engine, supports operation result in-service monitoring when using logic operation, and to the application Logic visual programming tools are sent in operation result and change information during logic chart operation,
The network interface, when the application logic on-line debugging engine executes debugging operations, alternatively, the application logic is supervised online When executing monitoring operation depending on engine, data interaction is carried out with the application logic visual programming tools.
2. control system according to claim 1, which is characterized in that the controller hardware platform further include: IO driving, I/O hardware equipment, wherein
The IO driving, the data interaction for the first application the logic operation engine and the I/O hardware equipment provide support,
The I/O hardware equipment includes at least multiple IO mould groups, the core control of the IO mould group and the controller hardware platform Device processed is connected by bus, and the quantity of the IO mould group carries out dynamic increase according to the preset control parameters, increased described IO mould group is matched by the IO mould group configurator using logic visual programming tools postpones participation programming in logic.
3. control system according to claim 2, which is characterized in that each IO mould group have M On-off signal, N number of output switch parameter, P analog input, Q analog output, wherein M, N, P, Q are the integer not less than 0, Mei Gesuo The external interface sequence for stating IO mould group is successively On-off signal, output switch parameter, analog input, analog output, each The model of the IO mould group indicates that m, n, p, q are of the number of On-off signal, output switch parameter respectively using MmNnPpQq Number, the number of analog input, the number of analog output.
4. control system according to claim 1, which is characterized in that the application logic visual programming tools are at least wrapped It includes: IO mould group configurator, graphical programming editing machine, on-line debugging controller, off-line simulator, the IO mould group configurator and institute The connection of controller hardware platform is stated, the graphical programming editing machine is connect with the IO mould group configurator, the on-line debugging control Device processed is connect with the graphical programming editing machine, and the off-line simulator is connect with the graphical programming editing machine, wherein
The IO mould group configurator, for managing the IO mould group of the controller hardware platform, flat to the controller hardware After the mould group quantity of platform and the IO mould group complete configuration operation, the IO of visual programming is generated by the IO mould group configurator Element;
The graphical programming editing machine, the I/O element for providing programming obtain visual logic figure to carry out graphics edition;
The on-line debugging controller is patrolled including at least the first debugging emulation control interface, connection manager, the first debugging emulation Collect diagram generator, wherein the on-line debugging controller is established by the connection manager and the controller hardware platform Connection, to carry out visual logic figure described in on-line debugging;
The off-line simulator, includes at least: IO simulator, the second application logic operation engine, dummy connector, the second debugging Emulation logic diagram generator, the second debugging emulation control interface, wherein what the IO simulator programmed to simulate visual logic The correspondence hardware device of input and output, to support the operation of the second application logic operation engine;The dummy connector is Virtual link channel between the second debugging emulation control interface and the second application logic operation engine.
5. control system according to claim 4, which is characterized in that the application logic visual programming tools are also wrapped It includes: component library, compiler and downloader, wherein
The component library, the operational capability of the first application logic operation engine corresponding to the controller hardware platform, with life It is used at arithmetic element for the graphical programming editing machine, and constructs operation and operation in the first application logic operation engine The mapping relations of element are used for the compiler;
The compiler, for obtaining, operation and the mapping of arithmetic element are closed in the first application logic operation engine in component library The visual logic of graphical programming editing machine is compiled as the first program file that can be run using logic operation engine by system, or Person, for by first application logic operation engine can run program file decompiling be graphical programming editing machine visualization patrol Volume;
The downloader is used for the application logical program file download to the controller hardware platform.
6. control system according to claim 4, which is characterized in that the application logic visual programming tools are also wrapped It includes: function monitor, wherein
The function monitor establishes connection with the controller hardware platform, for carrying out to the controller hardware platform Operation monitoring, described in record can the operation data of run program file after operation change information, wherein the change information It include: the temporal information when data before operation data changes, the data after operation data variation and operation data change.
7. a kind of visual programming control method characterized by comprising
According to preset control parameters, the IO mould group of Configuration Control Unit hardware platform, wherein the IO mould group is for carrying out figure volume Journey obtains visual logic figure;
The visual logic figure is compiled, be applied logical program file;
By the application logical program file download to controller hardware platform, wherein the application logical program file obtains Can run program file, described in execution can run program file, it is described can run program file for generating and the default control The corresponding target control strategy of parameter processed, the target control strategy are the programs for controlling equipment,
Wherein, the visual logic figure is compiled, the logical program file that is applied includes:
Create multiple workspaces, wherein when creating the multiple workspace, the priority of each workspace, the work are set Make the traffic control sequence of the priority indication workspace in area, wherein when creating the multiple workspace, each work is set The traffic control interval of area at runtime;
Visual logic figure is created in the multiple workspace, wherein when creating the visual logic figure, setting is each The operation order of visual logic figure includes multiple visual logic figures in each workspace, visual under the same workspace The operation order for changing logic chart uniquely determines;
Graphics edition is carried out in each visual logic figure, obtains the application logical program file, wherein carrying out When graphics edition, the connection relationship for the element placed in each visual logic figure is indicated to carry out graphics edition, the element Include at least: I/O element, arithmetic element, the I/O element include input element and output element, and the I/O element is according to institute The IO mould group access state generation of controller hardware platform is stated, the arithmetic element is the application logic visual programming work The component library of tool provides.
8. control method according to claim 7, which is characterized in that carry out figure in each visual logic figure Editor, after obtaining the application logical program file, which comprises
Multiple visual logic figures are converted, multiple debugging emulation logic charts are obtained;
Load the multiple debugging emulation logic chart;
On-line debugging is carried out to the multiple debugging emulation logic chart, obtains debugging result.
9. control method according to claim 8, which is characterized in that carried out to the multiple debugging emulation logic chart online Debugging, obtaining debugging result includes:
According to the multiple debugging emulation logic chart, emulation logic figure to be debugged is selected;
Obtain the parameter of the element in the emulation logic figure to be debugged;
According to the parameter of the element in the emulation logic figure to be debugged, the element in the emulation logic figure to be debugged is executed, Alternatively, executing the emulation logic figure to be debugged, implementing result is obtained;
According to the implementing result, determine whether visual logic figure is correct.
10. control method according to claim 7, which is characterized in that be compiled, obtain to the visual logic figure Include: using logical program file
Off-line simulation debugging is carried out to the visual logic figure, obtains artificial debugging result;
According to the artificial debugging as a result, compiling generates the application logical program file.
11. a kind of visual programming control device characterized by comprising
Configuration unit, for according to preset control parameters, the IO mould group of Configuration Control Unit hardware platform, wherein the IO mould group For carrying out graphical programming, visual logic figure is obtained;
Compilation unit, for being compiled to the visual logic figure, be applied logical program file;
Download unit is used for the application logical program file download to controller hardware platform, wherein described to apply logic Program file obtain can run program file, described in execution can run program file, it is described can run program file for generating Target control strategy corresponding with the preset control parameters, the target control strategy are the programs for controlling equipment,
The compilation unit is also used to create multiple workspaces, wherein when creating the multiple workspace, each work is arranged The priority in area, the traffic control sequence of the priority indication workspace of the workspace, wherein creating the multiple work The traffic control interval of each workspace at runtime is arranged in Qu Shi;Visual logic figure is created in the multiple workspace, Wherein, when creating the visual logic figure, the operation order of each visual logic figure is set, includes in each workspace The operation order of multiple visual logic figures, the visual logic figure under the same workspace uniquely determines;It is each it is described can Graphics edition is carried out in logic chart depending on changing, and obtains the application logical program file, wherein when carrying out graphics edition, instruction The connection relationship for the element placed in each visual logic figure carries out graphics edition, and the element includes at least: I/O element, Arithmetic element, the I/O element include input element and output element, and the I/O element is according to the controller hardware platform IO mould group access state generate, the arithmetic element is that the component library using logic visual programming provides.
12. a kind of terminal characterized by comprising
Memory, the processor coupled with the memory, the memory and the processor are communicated by bus system;
The memory is for storing program, wherein described program is set where controlling the memory when being executed by processor Visual programming control method described in any one of standby perform claim requirement 7 to 10,
The processor is for running program, wherein perform claim requires described in any one of 7 to 10 when described program is run Visual programming control method.
CN201810235430.XA 2018-03-21 2018-03-21 Visual programming control system and method, apparatus Active CN108594746B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810235430.XA CN108594746B (en) 2018-03-21 2018-03-21 Visual programming control system and method, apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810235430.XA CN108594746B (en) 2018-03-21 2018-03-21 Visual programming control system and method, apparatus

Publications (2)

Publication Number Publication Date
CN108594746A CN108594746A (en) 2018-09-28
CN108594746B true CN108594746B (en) 2019-11-12

Family

ID=63627159

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810235430.XA Active CN108594746B (en) 2018-03-21 2018-03-21 Visual programming control system and method, apparatus

Country Status (1)

Country Link
CN (1) CN108594746B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362299B (en) * 2019-06-14 2020-06-26 杭州古德微机器人有限公司 Online graphical programming system based on block and raspberry pie and using method thereof
CN110471803B (en) * 2019-07-05 2021-01-29 华为技术有限公司 Physical hardware operation method, electronic equipment, storage medium and chip
CN110488741A (en) * 2019-08-16 2019-11-22 广东鑫光智能系统有限公司 It is a kind of based on the controller system visually programmed
CN110673874B (en) * 2019-09-11 2023-06-13 苏州德创测控科技有限公司 Method, storage medium, and apparatus for changing configuration of wizard programming software
CN111597686A (en) * 2020-04-15 2020-08-28 北京仿真中心 Loosely-coupled visual simulation resource integration and encapsulation method and system
CN112527256A (en) * 2020-12-16 2021-03-19 北京中水科水电科技开发有限公司 Integrated hydropower station model development system and method
CN112685059A (en) * 2020-12-24 2021-04-20 上海荣泰健康科技股份有限公司 Online generation method and system of massage chair control data and server
CN113094282B (en) * 2021-04-28 2023-08-01 腾讯科技(深圳)有限公司 Program block running method, device, equipment and storage medium
CN114003209A (en) * 2021-10-27 2022-02-01 江苏徐工工程机械研究院有限公司 Equipment control system construction method and device
CN114114957A (en) * 2021-11-15 2022-03-01 北京赋智工创科技有限公司 Simulation method and system of webpage programmable controller
CN117421839A (en) * 2023-11-06 2024-01-19 上海同星智能科技有限公司 Method and system for realizing program step visualization in automobile simulation test process

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203728A (en) * 2008-11-03 2011-09-28 引擎实验室公司 System and method of dynamically building a behavior model on a hardware system
CN102722142A (en) * 2011-12-09 2012-10-10 绍兴文理学院 Special control system of bearing cutting automation production line based on graphic programming
CN103649855A (en) * 2011-07-12 2014-03-19 菲尼克斯电气公司 Method and system for the dynamic distribution of program functions in distributed control systems
CN103814333A (en) * 2011-07-06 2014-05-21 Abb股份公司 Method and device for the programming and configuration of programmable logic controller

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7836426B2 (en) * 2004-05-06 2010-11-16 National Instruments Corporation Automatic generation of application domain specific graphical programs

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102203728A (en) * 2008-11-03 2011-09-28 引擎实验室公司 System and method of dynamically building a behavior model on a hardware system
CN103814333A (en) * 2011-07-06 2014-05-21 Abb股份公司 Method and device for the programming and configuration of programmable logic controller
CN103649855A (en) * 2011-07-12 2014-03-19 菲尼克斯电气公司 Method and system for the dynamic distribution of program functions in distributed control systems
CN102722142A (en) * 2011-12-09 2012-10-10 绍兴文理学院 Special control system of bearing cutting automation production line based on graphic programming

Also Published As

Publication number Publication date
CN108594746A (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN108594746B (en) Visual programming control system and method, apparatus
CN108345265B (en) Programming method of hardware device, visual programming platform, memory and processor
CN107831757B (en) dSPACE-based motor controller hardware-in-loop automatic test system and method
CN104898633B (en) A kind of non-security grade DCS configurable test method and system of nuclear power plant
CN109472061B (en) Reusable simulation verification platform and simulation verification method
US20120208153A1 (en) Systems and Methods Providing Distributed Training Simulations
CN108020742A (en) The live Auto-Test System and method of distribution feeder automation
CN105808432B (en) Rail traffic Traction Drive control unit software automated testing system and method
CN107943707B (en) Behavior tree testing method and device, storage medium and terminal
CN104615541A (en) Simulation testing modeling system and method based on flow chart
CN102955882B (en) Automatic detection simulation analog system of ultra-large intelligent electric energy meter
CN110674049B (en) Intelligent form verification method oriented to PLC logic programming
CN104503771B (en) A kind of train network control system integrating and developing platform
WO1999006906A1 (en) Control program tracking and display system
CN108499107A (en) The control method of virtual role, device and storage medium in virtual reality
CN109522229B (en) Testing method of efficient automatic testing system
CN109614321A (en) For the continuous integrating of ATS software and the system of delivery
CN110673585B (en) Test method, test device and test system for train air conditioning system
CN110362486A (en) Cycle tests construction method and device and automated testing method and system
CN111460640B (en) Power system simulation method, device, equipment and computer storage medium
CN111652760A (en) Power grid operation and maintenance virtual reality simulation system and simulation method
CN107807631A (en) A kind of Auto-Test System based on AUTOSAR network management mechanisms
CN107908393B (en) Method for designing SCADA real-time model picture
CN109101424A (en) A kind of method and device for realizing data stimuli
CN100562822C (en) The modeling and simulating method of numerically-controlled machine tool rest

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