CN105900025A - Control device, development device, and development program - Google Patents
Control device, development device, and development program Download PDFInfo
- Publication number
- CN105900025A CN105900025A CN201480072488.7A CN201480072488A CN105900025A CN 105900025 A CN105900025 A CN 105900025A CN 201480072488 A CN201480072488 A CN 201480072488A CN 105900025 A CN105900025 A CN 105900025A
- Authority
- CN
- China
- Prior art keywords
- event
- task
- priority
- transfused
- execution
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0426—Programming the control sequence
Abstract
The invention discloses a control device, a development device and a development program. In order to process desired events before other events, this control device is provided with a storage device that stores a control program and a computation device that, on the basis of said control program, implements the following: a plurality of tasks, a task priority being set for each of said tasks, that perform processing in accordance with events; and task management in which each of the plurality of tasks is transitioned to an execution state on the basis of the task priority therefor. Event priorities are set in advance for the aforementioned events, and for each task, if that task is in the aforementioned execution state when a plurality of events are inputted, said task performs processing in accordance with the inputted events in an order based on the event priorities of said events (S35, S36).
Description
Technical field
The present invention relates to a kind of controlled device is controlled control device, make control fill
Put development device and the exploitation program of the control program carrying out action.
Background technology
The control device being controlled controlled device is used in various situation.Such as,
In FA field, use PLC (Programmable Logic Controller) as to life
Produce the control device that line is controlled.It addition, for instrument (the such as building to remote site
Or the air-conditioning instrument in station, security instrument, illumination instrument, the composition instrument of elevator) enter
Row controls and uses control device.It addition, in order to monitor or control to electric power, combustion gas, from
The infrastructure such as water provide the instrument supported to use control device.Fill for above-mentioned control
Put, it is desirable to improve the real-time of event handling.
Such as Patent Document 1 discloses following real-time processing software control device and
Control method, i.e. in distinguishing the upstream design operation before the detailed execution moment, it is possible to
Carry out state transfer and the design of task priority real-time taken into account.
Patent documentation 1: Japanese Unexamined Patent Publication 2012-173948 publication
Summary of the invention
But, according to the technology of above-mentioned patent documentation 1, although can shift corresponding to state
And carry out the priority level initializing of task, but there is the problem that can not realize controlling as follows, i.e.
Prior to other events, desired event is processed.
The present invention is exactly to propose in view of the foregoing, and its object is to obtain one can
Process desired event prior to other events controls device, to controlling program
Exploitation carries out development device and the exploitation program assisted, and wherein, this control program is used for making
This control device carries out action.
In order to solve above-mentioned problem, it is achieved purpose, it is a feature of the present invention that and have: deposit
Storage device, control program is stored by it;And arithmetic unit, it is based on described control journey
Sequence and realize multiple task and task management, the plurality of tasks carrying is corresponding with event to be located
Reason, the plurality of task is set task priority respectively, and this task management task based access control is preferential
Level makes the plurality of task each carry out state transfer and be transferred to execution state, described event quilt
Presetting Event Priority, each task is in the case of being transfused to multiple event, at this
Business is when being in execution state, suitable according to Event Priority based on the described each event being transfused to
Sequence and perform corresponding with the described each event being transfused to respectively to process.
The effect of invention
For control device involved in the present invention, owing to presetting for each event
Event Priority, each task performs corresponding to each event according to order based on Event Priority
Each process, therefore, it is possible to desired event is processed prior to other events.
Accompanying drawing explanation
Fig. 1 is to represent the device that controls of embodiment 1 is used in the figure of system therein.
Fig. 2 is the figure representing the hardware configuration example controlling device.
Fig. 3 is the figure representing the software configuration example controlling device.
Fig. 4 is the figure of the task management carried out by OS for explanation.
Fig. 5 is the figure of the functional structure representing task.
Fig. 6 is the figure of the data configuration example representing event handling form.
Fig. 7 is the figure of the data configuration example representing priority level initializing form.
The flow chart that the action of task when Fig. 8 is that task receives event illustrates.
Fig. 9 is that the action that the event stored by event storage part is processed by task is described
Flow chart.
Figure 10 is the figure that the setting storage part to embodiment 2 illustrates.
Figure 11 is flow chart task being described to the action that priority level initializing form switches over.
Figure 12 is the figure of the hardware configuration example representing development device.
Figure 13 is the figure that the functional structure to development device illustrates.
Figure 14 is the figure of the example representing setting screen.
Detailed description of the invention
Below, based on accompanying drawing, to the control device of embodiment involved in the present invention, open
Transmitting apparatus and exploitation program are described in detail.Additionally, the present invention is not limited to this enforcement
Mode.
Embodiment 1
Fig. 1 is to represent the control device of embodiments of the present invention 1 is used in system therein
Figure.Control device 1 to be connected with by control system 4 and development device 5.
By control system 4, be there is sensor 2 and driving means 3.Sensor 2 is to being controlled
The action of system 4 carries out the device detected.The action that sensor 2 is detected such as refer to temperature,
Speed or position etc..Driving means 3 is to by the device of control system 4 by power supply.
Such as motor or actuator are equivalent to driving means 3.
Control device 1 based on the input from sensor 2 computing for driving means 3
Driving instruction.Control device 1 to supply the driving instruction calculated to driving means 3.Additionally,
Control device 1 and carry out action based on control program 14.
Development device 5 is that the establishment to control program 14 assists or will be created
Control program 14 is set in the device controlling device 1.Perform to be controlled to be controlling device 1
During the control of system 4, development device 5 can not also be connected with controlling device 1.
Fig. 2 is the figure representing the hardware configuration example controlling device 1.Control device 1 and there is fortune
Calculate device 10, main storage means 11, auxilary unit 12 and I/O 13.Computing
Device 10, main storage means 11, auxilary unit 12 and I/O 13 each other by
Bus connects.
Arithmetic unit 10 is the device being able to carry out computing based on program.Arithmetic unit 10
E.g. CPU (Central Processing Unit).As arithmetic unit 10, it is possible to should
With single core processor or polycaryon processor.Can also be to control device 1 to possess multiple computing dress
Putting 10, multiple arithmetic units 10 are configured to carry out concurrently action.
Main storage means 11 is the memorizer worked in the working region as arithmetic unit 10.
Main storage means 11 is such as by the storage carrying out action compared with auxilary unit 12 at high speed
Device is constituted.Main storage means 11 is such as by RAM (Random Access Memory) structure
Become.
Auxilary unit 12 is as bin (storage) and to controlling program 14
The storage device carrying out storing works.Auxilary unit 12 is such as by ROM (Read
Only Memory), hard disk drive, SSD (Solid State Drive), removably
Memory devices or combinations thereof are constituted.
I/O 13 is for carrying out with sensor 2, driving means 3 and development device 5
The connection interface of communication.As sensor 2, driving means 3 and development device 5 and control
Connection standard between device 1 processed, it is possible to use arbitrary standards.
Control program 14 comprises user program and operating system (OS) program.Control program
14 are read out from auxilary unit 12, via bus to the work of main storage means 11
Make region to be loaded into.Arithmetic unit 10 generates multiple based on the OS being loaded on working region
Task.Then, multiple tasks are switched over by arithmetic unit 10, while performing these
Task.The control by control system 4 carried out by control device 1 is (such as based on carrying out self-sensing
The input of device 2 and generate the action of the driving instruction for driving means 3) be by multiple
Business co-operating and realize.
The entity of task is that the program module making control program 14 be comprised has corresponding to control
And the program module after the value changed.Each program module is stored in working region, arithmetic unit
10 under the task management carried out by OS, to each program mould being stored in working region
Block switches over, and performs these program modules.At arithmetic unit 10 by single core processor
In the case of composition, arithmetic unit 10 the most only performs 1 task.At arithmetic unit 10
In the case of being made up of polycaryon processor, arithmetic unit 10 can perform multiple task simultaneously.
Can receive and send messages between task.Information by input to task or from task output is denoted as thing
Part.
Fig. 3 is the figure representing the software configuration example controlling device 1.Multiple task (tasks
100a~100e) under the task management carried out by OS 110, carry out action respectively.Sometimes
Task 100a~100e are referred to as task 100.OS 110 is between task 100 and hardware 120
Between, so that task 100 can use hardware 120.Hardware 120 refer to arithmetic unit 10,
Main storage means 11, auxilary unit 12 and I/O 13 carry out the concept summarized.
Each task 100 is able to receive that the input of event or generation event and exports.
Task 100a~100e constitute stratum's structure.Additionally, task 100a~100e can also
Do not constitute stratum's structure.Here, task 100a and task 100e belong to away from OS 110
Near stratum (the 1st stratum).Task 100c belongs to away from stratum the (the 3rd farthest for OS 110
Stratum).Task 100b and task 100d belong between the 1st stratum and the 3rd stratum
Stratum (the 2nd stratum).
From the sensor signal of sensor 2 by task 100a of the 1st stratum as event
101a imports.Task 100a event 101a imported is processed or directly as
Event 101b and input to task 100b.Task 100c is defeated based on from sensor 2
Enter and computing is for the task of the driving instruction of driving means 3, be to undertake by control system 4
The task of major part of control.The sensing that task 100b will input as event 101b
Device signal abstraction (carrying out the Filtering Processing of the regulations such as smoothing) can profit to task 100c
Degree, the sensor signal after abstract is inputted to task as event 101c
100c.Task 100c is based on the sensor signal after the abstract inputted as event 101c
And the driving instruction after abstract is carried out computing, the driving after abstract computing obtained refers to
Order inputs to task 100d as event 101d.Task 100d will be as event 101d
Driving instruction after the abstract of input is transformed to the form that can export to outside, after converting
Driving instruction input to task 100e as event 101e.Task 100e will be as thing
Part 101e and driving instruction after the conversion that inputs input extremely via OS 110 and hardware 120
Driving means 3.
Fig. 4 is the figure of the task management carried out by OS 110 for explanation.OS 110 can
Generation task 100, and the task 100 generated can be set priority (priority of task
Level) (S1).The state (task status) of the task 100 generated is executable state
(S2).OS 110 makes arithmetic unit 10 perform the task 100 (S3) of executable state.
It is denoted as this situation of task 100 making arithmetic unit 10 perform executable state filling computing
Put 10 and distribute to task 100.Here, the task 100 in executable state exists multiple
In the case of, OS 110 corresponding to task priority selected as the distribution of arithmetic unit 10
The task 100 of target.The distribution method of task 100 corresponding with task priority is arbitrary.
Such as, OS 110 has been set the task 100 of peak selected as task priority,
Arithmetic unit 10 is distributed to selected task 100.OS 110 can also be to the time of execution
Limits value is set and arithmetic unit 10 is distributed to task 100, upon execution between exceed restriction
After value, the distribution target of arithmetic unit 10 is changed (switch) is other tasks 100.
The task 100 that arithmetic unit 10 is assigned is performed (S4) by arithmetic unit 10.
Would indicate that the task status performed by arithmetic unit 10 is denoted as execution state.That is, OS 110
Can task based access control priority and make task 100 carry out state transfer, from executable state shift
To performing state.
It addition, OS 110 can by making to perform interruption, thus by perform state task 100
Revert to executable state (S5).Such as, appointing compared with the task 100 of the state of execution
When the task 100 that business priority is higher becomes executable state, OS 110 can make execution shape
The task 100 of state perform interruption.It addition, the execution time of the task 100 in the state of execution
When having exceeded limits value, what OS 110 can make the task 100 of execution state performs interruption.
When the task 100 of the state of execution completes execution, OS 110 terminates to perform state
Task 100 to the distribution of arithmetic unit 10 so that task status carries out state transfer,
It is transferred to waiting state (S6) from execution state.The task 100 of waiting state is able to receive that
The input (S7) of event.The task 100 receiving the waiting state after the input of event is entered
Row state shifts, and is transferred to executable state (S2).Additionally, OS 110 can also hold
When the task 100 of row state completes execution, this task 100 is eliminated (S8).
Fig. 5 is the figure of the functional structure representing task 100.Task 100 has incident management
Portion 101, input unit 102, output unit 103, event storage part 104, processing execution unit 105,
Resume storage part 106, condition managing portion 107 and setting storage part 108.Incident Management Division
101 have priority detection unit 109.
Input unit 102 receives the event being enter to.Event storage part 104 is to enter event
The buffer of row storage.Event is stored in event storage part 104 by Incident Management Division 101.Thing
Part management department 101 obtains the event stored by event storage part 104, by with acquired event
Corresponding process (event handling) hands to processing execution unit 105.Processing execution unit 105 is held
The event handling that row is delivered.
Typically for task 100, it is desirable to if being transfused to event, perform thing the most as soon as possible
Part processes.According to embodiment, task 100 is in the event that should process as early as possible and can also
In the case of both events processed the most as early as possible become untreated state, it is possible to first to the former
Event processes.
Specifically, priority (Event Priority) is set for each event.Then,
In the case of event storage part 104 stores multiple event, priority detection unit 109 is to often
The priority (Event Priority) of individual event judges, selects event storage part 104 to be stored up
The event that in the multiple events deposited, Event Priority is the highest is as processing object.
Additionally, it is assumed herein that task 100 can perform multiple thing for each event
Part processes.As for performing in the multiple event handlings that can be performed by 1 task 100
Which, it assumes that is for determining based on controlled state at that time.Controlled state refers to perform shape
The state that state more carefully is classified, is to represent that task 100 is carrying out the shape which kind of controls
State.In addition it is also possible to be configured to perform 1 event handling respectively for each event.
Set storage part 108 (excellent to event handling form 108a, priority level initializing form in advance
First level information) 108b and set information 108c could be performed store.Event handling
Form 108a, priority level initializing form 108b and set information 108c could be performed can
It is set by development device 5 or edits.
Fig. 6 is the figure of the data configuration example representing event handling form 108a.Event handling table
Lattice 108a has the form can retrieved event handling based on event and controlled state
Structure.According to the example that figure 6 illustrates, it is set with R bus synchronous as event and leads to
The kinds such as the communication of letter, Q bus synchronous and asynchronous low speed bus synchronous communication.As control
State processed and be set with the free time (idle), send in and wait the kinds such as transmission again.And
And, it is set with event handling for each event and each controlled state.
It addition, here, being further configured to Event Priority can be corresponding to controlled state
And change.It addition, be configured to based on whether meet correcting condition and make Event Priority become
Dynamic.The setting of Event Priority and correcting condition is described in priority level initializing form 108b.?
Here, suppose that correcting condition is time conditions and performs times condition.Each correcting condition is by aftermentioned.
Fig. 7 is the figure of the data configuration example representing priority level initializing form 108b.Priority sets
Determine form 108b to have and based on event and controlled state, Event Priority can be retrieved
Form structure.
Here, in the figure 7, " T0 " express time condition and the correction of Event Priority
Amount.Time conditions refers to the decision condition for determining whether to carry out the correction of Event Priority,
Here, threshold value (time threshold) is used as an example.By time threshold and control
State is transferred to the elapsed time that the controlled state shown in the row of priority level initializing form 108b rises
Compare.Such as, in the case of elapsed time overtime threshold value, Event Priority is entered
Row correction, the elapsed time not less than time threshold in the case of Event Priority is not carried out school
Just.Can also the elapsed time not less than time threshold in the case of Event Priority is carried out school
Just, Event Priority is not corrected in the case of elapsed time overtime threshold value.That is,
Time conditions comprises the judgement in elapsed time.
It addition, in the figure 7, " C0 " represents execution times condition and the school of Event Priority
Positive quantity.Perform times condition and refer to the judgement for determining whether to carry out the correction of Event Priority
Condition, here, uses threshold value (execution frequency threshold value) as an example.To perform
Frequency threshold value and the number of times (execution number of times) performing event handling compare.Such as, holding
Event Priority is corrected in the case of exceeding execution frequency threshold value by places number, in execution time
Event Priority is not corrected by number not less than in the case of performing frequency threshold value.Can also be
Perform number of times not less than in the case of performing frequency threshold value, Event Priority to be corrected, holding
Event Priority is not corrected in the case of exceeding execution frequency threshold value by places number.That is, hold
Places said conditions comprises the judgement performing number of times of event handling.
Whether could perform set information 108c is to processing in thing corresponding to Event Priority
The information that the event stored at part storage part 104 is set.Will correspond to Event Priority and
The action processing the event stored at event storage part 104 is denoted as two priority classes.
Controlled state is managed by condition managing portion 107.Condition managing portion 107 is except controlling
Beyond the management of state, also by the reception resume (hereinafter simply referred to as receiving resume) of event
It is recorded in resume storage part 106.
Processing execution unit 105 performs event handling.Processing execution unit 105 is whenever the event of execution
During process, the execution resume (hereinafter simply referred to as performing resume) of event handling are recorded in
Resume storage part 106.The record performing moment when resume comprise execution of event handling.?
Due to the execution of event handling in the case of newly-generated event, Incident Management Division 101 will be new
The event generated exports via output unit 103.
Below, the action to task 100 illustrates.
The action of the task 100 when Fig. 8 is that task 100 is received event illustrates
Flow chart.If input unit 102 receives event (S11), then Incident Management Division 101 will
Event received by input unit 102 is stored in event storage part 104 (S12).At S12
Process after again perform the process of S11.
Fig. 9 is to illustrate that the event stored by event storage part 104 is processed by task 100
The flow chart of action.
Incident Management Division 101 first processing execution unit 105 is not carried out event handling or
It is carrying out carrying out judging (S21).It is carrying out event handling in processing execution unit 105
In the case of (S21, No), Incident Management Division 101 performs the action of S21 again.
(S21, Yes), thing in the case of processing execution unit 105 is not carried out event handling
Part management department 101 could perform set information stored by storage part 108 by referring to setting
108c, thus whether the execution of two priority classes is set to " can perform " and judges
(S22)。
In the case of the execution of two priority classes is not set to " can perform " (S22, No),
Incident Management Division 101 obtains event (S23) from event storage part 104.Here, in thing
In the case of part storage part 104 stores multiple event, the process of S23 obtains thing
Which in multiple events stored by part storage part 104 is arbitrary.Such as, incident management
Portion 101 can also rule based on FIFO and obtain event.It addition, Incident Management Division 101
Can also rule based on FILO and obtain event.
After the process of S23, Incident Management Division 101 by inquiry condition managing portion 107,
So that it is determined that go out current controlled state (S24).Then, Incident Management Division 101 is by inciting somebody to action
Event and current controlled state be used as key word (key) and to setting storage part 108 institute
The event handling form 108a stored carries out reference, so that it is determined that outgoing event processes (S25).
Then, the event handling determined is delivered to processing execution unit 105 by Incident Management Division 101,
Processing execution unit 105 is made to perform (S26).Then, Incident Management Division 101 performs S21 again
Action.Additionally, processing execution unit 105 by the action of S26 newly-generated event
In the case of, the event generated is exported by Incident Management Division 101 via output unit 103.
In the case of the execution of two priority classes is set to " can perform " (S22, Yes),
Priority detection unit 109 obtains event (S27) from event storage part 104.Place at S27
In reason, the acquisition methods of event is also arbitrary.Then, priority detection unit 109 is by asking
Ask condition managing portion 107, so that it is determined that go out current controlled state (S28).Then, excellent
First level detection unit 109 by event and current controlled state are used as key word and to setting
Event handling form 108a stored by storage part 108 carries out reference, so that it is determined that outgoing event
Process (S29).Then, priority detection unit 109 is by being used as event and controlled state
Key word and the priority level initializing form 108b set stored by storage part 108 is carried out reference,
So that it is determined that outgoing event priority (S30).Each condition it is being set with together with Event Priority
In the case of (time conditions or execution times condition), priority detection unit 109 is by each bar
Part and correcting value are determined together with Event Priority.
Then, priority detection unit 109 is by referring to connecing stored by resume storage part 106
Receive resume, thus whether the elapsed time from receiving event is exceeded and sets in time conditions
Fixed threshold value carries out judging (S31).Additionally, in the case of not setting time conditions, jump
Cross the action of S31.In the elapsed time from receiving event not less than in time conditions
In the case of the threshold value set (S31, No), priority detection unit 109 is by referring to resume
Execution resume stored by storage part 106, thus whether the execution number of times of event handling is exceeded
The threshold value set in performing times condition carries out judging (S32).Additionally, when not setting
Between in the case of condition, skip the action of S32.
The threshold value of setting in time conditions is exceeded in the elapsed time from receiving event
In the case of (S31, Yes) or exceed at the execution number of times of event handling and performing number of times
In the case of the threshold value set in condition (S32, Yes), priority detection unit 109 uses
Correcting value is corrected (S33) to acquired Event Priority.
Number of times is performed not less than in the threshold value performing to set in times condition in event handling
In the case of (S32, No) or after the action of S33, priority detection unit 109 is right
Whether there are other events at event storage part 104, be i.e. not determined by the event of Event Priority
Carry out judging (S34).In the case of there are other events (S34, Yes), priority
Detection unit 109 performs the action of S27 again.In the case of there are not other events (S34,
No), priority detection unit 109 selects at the event of the event the highest for Event Priority
Reason (S35).Selected event handling is delivered to processing execution unit by Incident Management Division 101
105, make processing execution unit 105 perform (S36).Then, Incident Management Division 101 is again
Perform the action of S21.
Additionally, Incident Management Division 101 can also not store event with event storage part 104
State when receiving event, perform the process of S24~S26, and the event that will not received
Store to event storage part 104.
Additionally, in the above description, it is assumed that priority level initializing form 108b is stored in task
It is illustrated in 100, but priority level initializing form 108b is stored in task 100
Outside.In this case, priority detection unit 109 can also be configured to, and appoints to being stored in
Business priority level initializing form 108b outside 100 inquires Event Priority.
Such as PLC, control program comprises user program.User program is by controlling device
1 periodically carries out.The output of the execution result of user program and the input warp to user program
Periodically transmitted between by control system 4 by I/O 13.By to via I/
O 13 and to property information cycle the event handling that transmits set than the fault processing transmitted
High Event Priority such that it is able to first carry out and via I/O 13, property information cycle is entered
The event handling that row transmits.
As it has been described above, according to the embodiment of the present invention 1, owing to event is preset event
Priority, each task 100 is in the case of being transfused to multiple event, in this task 100
When being in execution state, hold according to the order of Event Priority based on each event inputted
Row each event handling corresponding with each event inputted, therefore controlling device 1 can be prior to it
His event and desired event is processed.It addition, user is by the thing to each event
Part priority is adjusted subtly such that it is able to shorten pitch time.Further, since can
Event Priority is changed and does not change task priority, therefore, it is possible to be adjusted, and
The load balance controlling device 1 will not be destroyed.
It addition, preset Event Priority for each event and each controlled state,
Each task 100 controlled state based on this task 100 and each event of being inputted and determine
The Event Priority of each event.Defeated to first carrying out corresponding to controlled state owing to implementing
Which in each event entered carries out changing such control, and therefore user can carry out more smart
Carefully and more flexible adjustment.
It addition, be configured to, correcting condition is set, preferential to event when meeting correcting condition
Level is corrected.Thereby, it is possible to Event Priority is changed corresponding to condition.
It addition, correcting condition comprise such as from event be transfused to the judgement in elapsed time.
Thereby, it is possible to carry out making Event Priority become corresponding to the elapsed time being transfused to from event
Dynamic such precise controlling.
It addition, correcting condition comprises the judgement performing number of times of such as event handling.Thus,
In the case of the event handling being such as transmitted event performs unsuccessfully the most for several times, it is possible to enter
The Event Priority of event handling being about to be transmitted event is changed to less value so
Precise controlling.
Embodiment 2
Can also be configured to, set multiple priority level initializing form, the most right
Use in multiple priority level initializing form which switch over.Here, illustrate at 2 excellent
First level set between form based on the judging the switching condition by foundation of moment to being used
The example that switches over of priority level initializing form.
Figure 10 is the figure that the setting storage part to embodiment 2 illustrates.1st priority
Set form 108d and the 2nd priority level initializing form 108e and be stored in setting storage part 108.
Here, omit event handling form 108a and the diagram of set information 108c could be performed.
1st priority level initializing form 108d is the priority level initializing form used on weekdays.2nd
Priority level initializing form 108e is the priority level initializing form used in festivals or holidays.
Figure 11 is flow process task 100 being described to the action that priority level initializing form switches over
Figure.Whether first priority detection unit 109 obtains current time, to being currently to carry out working day
Judge (S41).Be judged to be currently workaday in the case of (S41, Yes), preferentially
Level detection unit 109 uses the 1st priority level initializing form 108d (S42), again performs S41
Action.Be judged to be currently not workaday in the case of (S41, No), priority is sentenced
Determine portion 109 and use the 2nd priority level initializing form 108e (S43), again perform the dynamic of S41
Make.
In addition it is also possible to the action being set to S41 was only performed once in 1 day.It addition,
It is assumed here that 2 priority level initializing forms are implemented switching and are illustrated but it also may with
The mode switched over more than or equal to 3 priority level initializing forms constitutes priority judge
Portion 109.It addition, whether the benchmark of the switching of priority level initializing form is not limited to be working day.
For example, it is also possible to whether be contained in the scope from 9 o'clock to 17 o'clock and to excellent according to current time
First level sets form and switches over.It addition, be not only the moment, it is also possible to corresponding to being controlled
The state of system 4 or priority level initializing form is switched over from outside input.
As it has been described above, according to the embodiment of the present invention 2, each task 100 is based on switching condition
And select the priority level initializing as use object in priority level initializing form 108d, 108e
Form.Thereby, it is possible to Event Priority is set more subtly and for greater flexibility.
It addition, switching condition comprises the judgement in moment.Thereby, it is possible to corresponding to the moment certainly
Event Priority is switched over by dynamic ground.
Embodiment 3
Figure 12 is the figure of the hardware configuration example representing development device 5.Development device 5 has fortune
Calculate device 50, main storage means 51, auxilary unit 52, I/O 53, input equipment
54 and output device 55.Arithmetic unit 50, main storage means 51, auxilary unit
52, I/O 53, input equipment 54 and output device 55 connect each other by bus.
Arithmetic unit 50 is the device being able to carry out computing based on program.Arithmetic unit 50
E.g. CPU.Main storage means 51 is to work in the working region as arithmetic unit 50
Memorizer.Main storage means 51 is such as carried out at high speed by compared with auxilary unit 52
The memorizer of action is constituted.Main storage means 51 is such as made up of RAM.Auxiliary storage dress
Put 52 as bin and to prestore the record medium of exploitation program 56 and work.Auxiliary
Storage device 52 is helped such as to be set by ROM, hard disk drive, SSD, removably memorizer
Standby or combinations thereof is constituted.I/O 53 is for communicating with control device 1
Connect interface.As the connection standard between development device 5 and control device 1, it is possible to use
Arbitrary standard.
Input equipment 54 is the dress receiving the input for development device 5 carried out by user
Put.Input equipment 54 is such as made up of keyboard and pointer device.Input is to input equipment 54
Information be sent to arithmetic unit 50 via bus.Display device 55 is by arithmetic unit
50 information exported are can carry out the dress shown in the way of being carried out visual identity by user
Put.Display device 55 is such as made up of liquid crystal display.
Arithmetic unit 50 the exploitation program 56 stored by auxilary unit 52 is read out and
It is expanded to working region.Then, arithmetic unit 50 can be by performing exhibition in working region
The exploitation program 56 opened, thus realize being used for the establishment to control program 14 and being set for auxiliary
The various functions helped.
Figure 13 is to the exploitation dress realized by being performed exploitation program 56 by arithmetic unit 50
Put the figure that the functional structure of 5 illustrates.Arithmetic unit 50 have display and editorial office 57,
With simulation part 60.
The editing pictures of control program 14 is shown in display device 55 by display and editorial office 57.
Editing pictures is the picture for the control program 14 in editor is shown in editing pictures.Compile
Collect picture and such as there is GUI (Graphical User Interface) function.Display and editor
Portion 57 when having carried out inputting for the editor of the control program 14 being just shown in editing pictures,
Input content is reflected the control program 14 in editor, and display picture is updated.
Simulation part 60 can perform control program 14 virtually.Illustrate according to Fig. 3, mould
Plan portion 60 generates hardware 120 in development device 5 virtually.Then, simulation part 60 is in void
OS 110 is performed on the hardware 120 intended, generate under the task management carried out by OS 110,
Execution task 100a~100e.Task 100 has the structure being illustrated in Figure 5.Each task
Various resume are stored in resume storage part 106 by 100.
Display and editorial office 57 have Event Priority configuration part 58 and resume display part 59.
Event Priority configuration part 58 can be used for the setting being set Event Priority
Picture is shown in editing pictures.Figure 14 is the figure of the example representing setting screen.Such as figure
Shown in, editing pictures 61 shows setting screen 62.Setting screen 62 is to Fig. 7 institute
The priority level initializing form 108b shown is patterned display.User is by using pointer
(pointer) any part in 63 pairs of forms is specified, and carries out at specified position
Numerical value inputs such that it is able to each event and the Event Priority of each controlled state, time
Between condition and perform times condition be set.Can be to the kind of event and controlled state
Kind carry out adding or deleting.Event Priority configuration part 58 receives via setting screen 62
And the content inputted.Then, the content inputted can be entered by Event Priority configuration part 58
Row arranges and is embedded in control program 14.Control program 14, will when such as having obtained execution
The Event Priority embedded by Event Priority configuration part 58 is as priority level initializing form
108b, 108d, 108e and be stored in each task 100.
Resume display part 59 is when simulation part 60 performs control program 14 virtually, from each
The resume storage part 106 of business 100 collects various resume.Then, resume display part 59 can
Collected various resume are shown in editing pictures 61.User can be while reference be being compiled
Collect the various resume of display on picture 61, via setting screen 62, Event Priority is entered
Row sum-equal matrix.
As it has been described above, according to the embodiment of the present invention 3, development device 5 can be by can be to thing
The setting screen 62 that part priority carries out inputting is shown in display device 55, the thing that will be inputted
Part priority level initializing is to controlling program 14.Thus, user can be simply to each event
Event Priority is set.
It addition, development device 5 can perform control program 14 virtually, by event handling
Perform resume and be shown in display device 55.Thus, user can be based on performing resume to event
Priority is adjusted subtly.
The explanation of label
1 controls device, 2 sensors, 3 driving means, and 4 by control system, 5 exploitations
Device, 10,50 arithmetic units, 11,51 main storage means, 12,52 auxiliary storage dresses
Putting, 13,53I/O, 14 control programs, and 54 input equipment, 55 display devices, 56 open
The program of sending out, 57 display and editorial offices, 58 Event Priority configuration parts, 59 resume display parts,
60 simulation parts, 61 editing pictures, 62 setting screens, 63 pointers, 100,100a~100e
Task, 101 Incident Management Divisions, 101a~101e event, 102 input units, 103 outputs
Portion, 104 event storage parts, 105 processing execution units, 106 resume storage parts, 107 shapes
State management department, 108 set storage part, 108a event handling form, 108b, 108d, 108e
Priority level initializing form, 108c could perform set information, 109 priority detection units, and 120
Hardware.
Claims (12)
1. one kind controls device, it is characterised in that have:
Storage device, control program is stored by it;And
Arithmetic unit, it realizes multiple task and task management based on described control program,
The plurality of tasks carrying is corresponding with event to be processed, and the plurality of task is set task respectively
Priority, this task management task based access control priority makes the plurality of task each carry out state to turn
Move and be transferred to execution state,
Described event is preset Event Priority,
Each task, in the case of being transfused to multiple event, is in execution state in this task
Time, perform with described according to the order of Event Priority based on the described each event being transfused to
The each event being transfused to respectively processes.
Control device the most according to claim 1, it is characterised in that
Event Priority is preset for each event and each controlled state,
Each task controlled state based on this task and the described each event being transfused to and determine institute
State the Event Priority of each event being transfused to.
Control device the most according to claim 2, it is characterised in that
Preset for each event and each controlled state as the place performing object
Reason,
Each task controlled state based on this task and the described each event being transfused to and determine with
The described each event being transfused to processes accordingly.
Control device the most according to any one of claim 1 to 3, it is characterised in that
Preset correcting condition,
Each task is based on whether meet described correcting condition and to the described each event being transfused to
Event Priority is corrected or is not corrected.
Control device the most according to claim 4, it is characterised in that
Described correcting condition comprise from each event be transfused to elapsed time judgement or
The judgement that perform number of times that process corresponding with each event.
Control device the most according to any one of claim 1 to 3, it is characterised in that
Each task is deposited by the precedence information that Event Priority is associated with each event
Storage,
Each task determine based on described precedence information described in the event of each event that is transfused to
Priority.
Control device the most according to claim 6, it is characterised in that
Each task stores multiple described precedence informations, and stores described precedence information
Switching condition, select based on described switching condition in the plurality of precedence information in order to really
The Event Priority of fixed each event and the precedence information that uses.
Control device the most according to claim 7, it is characterised in that
Described switching condition comprises the judgement in moment.
9. a development device, it is to control described any one of claim 1 to 8
In the described storage device that device processed is had, the exploitation of the described control program of storage carries out auxiliary
Help,
This development device is characterised by having:
Display device;And
Event Priority configuration part, setting screen is shown in described display device by it, will be through
The Event Priority of each event inputted by described setting screen is set in described control journey
Sequence, wherein, this setting screen is for receiving the input of Event Priority for each event.
Development device the most according to claim 9, it is characterised in that
The execution resume processed are stored by each task,
Described development device also has:
Simulation part, it performs described control program virtually;And
Resume display part, it is after described simulation part performs described control program virtually, from
The execution resume processed are collected and are shown in described display device by each task.
Developing programs for 11. 1 kinds, it makes computer perform the auxiliary to the exploitation controlling program,
Described control program is stored in control device described any one of claim 1 to 8 to be had
In the described storage device having,
Described exploitation program is characterised by,
Described computer is made to perform following steps, it may be assumed that
Setting screen is shown in display device, and this setting screen is for for each event
Receive the input of Event Priority;
The input of the Event Priority for each event is received via described setting screen;
And
The Event Priority of each event of described reception is set in described control program.
12. exploitation programs according to claim 11, it is characterised in that
The execution resume processed are stored by each task,
Described exploitation program makes described computer also execute the following steps, it may be assumed that
Perform described control program virtually;
After performing described control program virtually, from each task, the execution resume processed are entered
Row is collected;And
The execution resume of the process of described collection are shown in described display device.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/JP2014/050065 WO2015104790A1 (en) | 2014-01-07 | 2014-01-07 | Control device, development device, and development program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105900025A true CN105900025A (en) | 2016-08-24 |
Family
ID=52573829
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201480072488.7A Pending CN105900025A (en) | 2014-01-07 | 2014-01-07 | Control device, development device, and development program |
Country Status (4)
Country | Link |
---|---|
JP (1) | JP5669987B1 (en) |
CN (1) | CN105900025A (en) |
TW (1) | TWI534569B (en) |
WO (1) | WO2015104790A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109891376A (en) * | 2016-11-01 | 2019-06-14 | 雅马哈株式会社 | Information display device, information display method and program |
CN110402430A (en) * | 2017-04-07 | 2019-11-01 | 欧姆龙株式会社 | Control device, control method and control program |
CN111698135A (en) * | 2020-06-12 | 2020-09-22 | 宁波奥克斯电气股份有限公司 | Air conditioner network control method and device, network interconnection equipment and storage medium |
CN112198839A (en) * | 2019-07-08 | 2021-01-08 | 发那科株式会社 | PLC device |
CN112638144A (en) * | 2020-12-21 | 2021-04-09 | 合肥安迅精密技术有限公司 | Chip mounter control method adopting hierarchical state machine |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111630493A (en) * | 2017-09-26 | 2020-09-04 | 深圳传音通讯有限公司 | Terminal intelligent control method, device, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002099434A (en) * | 2000-09-25 | 2002-04-05 | Matsushita Electric Ind Co Ltd | Control apparatus |
JP2012173948A (en) * | 2011-02-21 | 2012-09-10 | Denso Corp | Control device |
CN102710972A (en) * | 2011-03-21 | 2012-10-03 | 索尼公司 | User notification |
CN103399798A (en) * | 2013-07-29 | 2013-11-20 | 深圳市汇川控制技术有限公司 | Multitask control method and multitask control device of PLC (programmable logic controller) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3578082B2 (en) * | 2000-12-20 | 2004-10-20 | 株式会社デンソー | Processing execution device and recording medium |
-
2014
- 2014-01-07 CN CN201480072488.7A patent/CN105900025A/en active Pending
- 2014-01-07 JP JP2014527414A patent/JP5669987B1/en not_active Expired - Fee Related
- 2014-01-07 WO PCT/JP2014/050065 patent/WO2015104790A1/en active Application Filing
- 2014-05-23 TW TW103118030A patent/TWI534569B/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002099434A (en) * | 2000-09-25 | 2002-04-05 | Matsushita Electric Ind Co Ltd | Control apparatus |
JP2012173948A (en) * | 2011-02-21 | 2012-09-10 | Denso Corp | Control device |
CN102710972A (en) * | 2011-03-21 | 2012-10-03 | 索尼公司 | User notification |
CN103399798A (en) * | 2013-07-29 | 2013-11-20 | 深圳市汇川控制技术有限公司 | Multitask control method and multitask control device of PLC (programmable logic controller) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109891376A (en) * | 2016-11-01 | 2019-06-14 | 雅马哈株式会社 | Information display device, information display method and program |
CN109891376B (en) * | 2016-11-01 | 2022-08-23 | 雅马哈株式会社 | Information display device, information display method, and computer-readable recording medium |
CN110402430A (en) * | 2017-04-07 | 2019-11-01 | 欧姆龙株式会社 | Control device, control method and control program |
CN110402430B (en) * | 2017-04-07 | 2023-01-10 | 欧姆龙株式会社 | Control device, control method, and recording medium |
CN112198839A (en) * | 2019-07-08 | 2021-01-08 | 发那科株式会社 | PLC device |
CN112198839B (en) * | 2019-07-08 | 2024-03-08 | 发那科株式会社 | PLC device |
CN111698135A (en) * | 2020-06-12 | 2020-09-22 | 宁波奥克斯电气股份有限公司 | Air conditioner network control method and device, network interconnection equipment and storage medium |
CN112638144A (en) * | 2020-12-21 | 2021-04-09 | 合肥安迅精密技术有限公司 | Chip mounter control method adopting hierarchical state machine |
Also Published As
Publication number | Publication date |
---|---|
TWI534569B (en) | 2016-05-21 |
JPWO2015104790A1 (en) | 2017-03-23 |
JP5669987B1 (en) | 2015-02-18 |
WO2015104790A1 (en) | 2015-07-16 |
TW201527912A (en) | 2015-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105900025A (en) | Control device, development device, and development program | |
EP3256915B1 (en) | Extending a programmable logic controller with apps | |
CN104898573B (en) | A kind of digital control system data acquisition based on cloud computing and processing method | |
US8249836B2 (en) | Simulation system for FACTS connected online to SCADA system | |
CN106647787B (en) | The method and system of contexture by self task on a kind of Satellite | |
CN103440376B (en) | Distributed operation mode and centralized operation mode integrated simulation system operation supporting platform based on components | |
CN102246107B (en) | Providing a proxy step in a model of an automation system | |
CN112445575B (en) | Multi-cluster resource scheduling method, device and system | |
CN106022007A (en) | Cloud platform system and method oriented to biological omics big data calculation | |
CN102254234A (en) | Realization method of business process and workflow engine | |
CN103413201A (en) | Information processing system and information processing method | |
CN106448779B (en) | Master-control room of nuclear power plant screen inter-linked controlling method and device | |
CN103605499B (en) | Application program development device, application program development method, application program control device and application program control method | |
CN104205102B (en) | Sequencer Design assistant device | |
CN106462139B (en) | Programable display and drawing practice | |
CN102243576A (en) | Image forming apparatus and image forming method | |
CN109902974A (en) | A kind of generation method and device of arrangement and method for construction | |
CN106707930A (en) | Continuous casting ladle conveying-to-platform management system and method | |
CN107025126A (en) | A kind of resource regulating method, NFVO and system | |
CN108427587A (en) | Visualization tasks configuration method, system, electronic equipment and storage medium | |
CN101350077B (en) | Method and equipment for scheduling flow living example | |
CN101599012A (en) | A kind of graphical development method that is used for grid computing | |
CN106296517A (en) | Many medical treatment refrigerator management systems and PC control end device | |
CN104660697A (en) | Sensor network and service combination method and device based on Kepler scientific workflow | |
CN110413706A (en) | Data processing method, device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160824 |