CN114488923A - PLC control method, system and controller for realizing time scheduling function - Google Patents
PLC control method, system and controller for realizing time scheduling function Download PDFInfo
- Publication number
- CN114488923A CN114488923A CN202111590742.0A CN202111590742A CN114488923A CN 114488923 A CN114488923 A CN 114488923A CN 202111590742 A CN202111590742 A CN 202111590742A CN 114488923 A CN114488923 A CN 114488923A
- Authority
- CN
- China
- Prior art keywords
- time
- plc control
- special
- abnormal
- judgment
- 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
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000002159 abnormal effect Effects 0.000 claims abstract description 59
- 230000000737 periodic effect Effects 0.000 claims description 32
- 238000010586 diagram Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 6
- 230000004048 modification Effects 0.000 description 6
- 238000004590 computer program Methods 0.000 description 4
- 238000011217 control strategy Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 239000002131 composite material Substances 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 241000700605 Viruses Species 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 238000004378 air conditioning Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000000779 smoke Substances 0.000 description 1
- 238000009423 ventilation Methods 0.000 description 1
Images
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/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/054—Input/output
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/14—Plc safety
- G05B2219/14042—Process time
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Programmable Controllers (AREA)
Abstract
The invention relates to a PLC control method, a system and a controller for realizing a time scheduling function, wherein the method comprises the following steps: matching the current time with the time sequence of the schedule variable; if the time sequence is not matched with the current time, outputting a default value and prompting an abnormal state; if the time sequence is matched with the current time, judging whether the current time is full of the special time to trigger a judgment condition; when the trigger judgment of the special time is met, executing special event output and prompting a normal state; when the special time triggering judgment is not met, judging whether the current time meets the general time triggering judgment; when the triggering judgment of the general time is met, the output of the general event is executed and the normal state is prompted; and when the common time trigger judgment is not met, outputting a default value and prompting a normal state. The invention has the advantages of simplicity, easy use, stability, reliability, small control delay, flexibility and easy extension under the PLC automatic control scene of carrying out planned scheduling based on the time sequence.
Description
Technical Field
The invention relates to the technical field of automatic control, in particular to a PLC control method, a PLC control system and a PLC controller for realizing a time scheduling function.
Background
The planned control task based on time sequence development is a common application scene of a PLC control system, such as a building automatic control scene, and a control strategy for executing a blind control strategy for systems such as lighting, air conditioning and air exhaust and the like aiming at different time manufacturers such as working/holidays, working/off-duty time, different seasons, emergencies and the like, so that the purposes of saving energy, reducing emission and reducing equipment loss are achieved.
At present, most of the automatic control requirements are mainly realized by that upper computer software provides a configuration interface of a scheduling plan, a background program is developed to perform triggering judgment, and after a judgment condition is passed, an instruction is issued to a PLC (programmable logic controller) to be executed through a network at the execution time, so that the problems of the automatic control requirements are as follows:
(1) the hardware of the upper computer is mainly a computer, the software is mostly large-scale software with a complex structure, inherent unreliability exists, and the failure of planned scheduling is caused by the abnormality of blue screen crash, failure exit of the software, computer virus and the like;
(2) the situations that the upper computer and the lower computer PLC adopt remote deployment are common, and at the moment, the network mainly depends on operator networks with numerous links, so that unreliability exists and control delay is brought;
(3) the upper computer software is generally realized by SCADA monitoring software, generally has no programmability, and if a time sequence or a control object needs to be changed or the control scale needs to be enlarged, software research personnel is often required to modify a background program, which is time-consuming, labor-consuming and inflexible.
Disclosure of Invention
Technical problem to be solved
In view of the above disadvantages and shortcomings of the prior art, the present invention provides a PLC control method, system and controller for implementing a time scheduling function, which solves the technical problems that the existing control scheme based on time sequence development planning is difficult to ensure operation reliability, has control delay and has no expansibility.
(II) technical scheme
In order to achieve the purpose, the invention adopts the main technical scheme that:
in a first aspect, an embodiment of the present invention provides a PLC control method for implementing a time scheduling function, including:
the control method is executed at a PLC control end and comprises the following steps:
acquiring the current time of a PLC control end;
matching the current time with a time sequence described by a schedule variable;
if the time sequence is not matched with the current time, outputting a default value and prompting an abnormal state;
if the time sequence is matched with the current time, judging whether the current time is full of a special time trigger judgment condition;
when the trigger judgment of the special time is met, executing special event output and prompting a normal state;
when the special time triggering judgment is not met, judging whether the current time meets the general time triggering judgment;
when the trigger judgment of the common time is met, executing the output of the common event and prompting the normal state;
when the general time trigger judgment is not met, outputting a default value and prompting a normal state;
and the schedule variable is arranged in a control program of the PLC control end.
Optionally, before obtaining the current time of the PLC control end, the method further includes:
analyzing the schedule variable to obtain time scheduling information;
judging whether the time scheduling information is abnormal or not;
if the time scheduling information is abnormal, outputting a default value and prompting an abnormal state;
and if the time scheduling information is not abnormal, the operation of obtaining the current moment of the PLC control end is carried out.
Optionally, after obtaining the current time of the PLC control end, the method further includes:
judging whether the acquired current moment of the PLC control end is abnormal or not;
if the current moment is abnormal, outputting a default value and prompting an abnormal state;
and if the current moment is not abnormal, entering the operation of matching the current time with the time sequence described by the schedule variable.
Optionally, the schedule variables include schedule expiration time, periodic events, special events, and default values.
Alternatively,
the schedule life time comprises an effective start time and an effective end time;
the periodic event comprises a periodic event starting time, a periodic event ending time and a signal output value after the periodic event is judged successfully;
the special event comprises special event starting time, special event ending time and a signal output value after the judgment of the special event is successful.
In a second aspect, an embodiment of the present invention further provides a PLC control system for implementing a time scheduling function, including: the system comprises a schedule variable, a time scheduling function block and a control service logic block;
and the time scheduling function block is used for analyzing the received schedule variable and outputting a corresponding signal to the control service logic block after the preset triggering condition is met.
Optionally, the schedule variables include schedule expiration time, periodic events, special events, and default values;
the schedule life time comprises an effective start time and an effective end time;
the periodic event comprises a periodic event starting time, a periodic event ending time and a signal output value after the periodic event is judged successfully;
the special event comprises special event starting time, special event ending time and a signal output value after the judgment of the special event is successful.
Optionally, the time scheduling function block includes:
the time acquisition module is used for acquiring the current time of the PLC control system;
the time matching module is used for matching the current time with the time sequence described by the schedule variable; if the time sequence is not matched with the current time, outputting a default value to the control service logic block and prompting an abnormal state; if the time sequence is matched with the current time, judging whether the current time is full of a special time trigger judgment condition;
the special time judging module is used for executing special event output to the control service logic block and prompting a normal state when the special time triggering judgment is met; the time judging module is used for judging whether the current time meets the triggering judgment of the general time when the special time triggering judgment is not met;
a general time judgment module, configured to execute a general event output to the service control logic block and prompt a normal state when a general time trigger judgment is met; and when the general time trigger judgment is not met, outputting a default value to the service control logic block and prompting a normal state.
Optionally, the time scheduling module further includes: an anomaly determination module to:
before the current moment of the PLC control system is obtained, time scheduling information is obtained by analyzing a schedule variable; judging whether the time scheduling information is abnormal or not; if the time scheduling information is abnormal, outputting a default value and prompting an abnormal state; if the time scheduling information is not abnormal, entering the operation of obtaining the current moment of the PLC control system;
and the number of the first and second groups,
after the current time of the PLC control system is obtained, judging whether the obtained current time of the PLC control system is abnormal or not; if the current moment is abnormal, outputting a default value and prompting an abnormal state; and if the current moment is not abnormal, entering the operation of matching the current time with the time sequence described by the schedule variable.
In a third aspect, an embodiment of the present invention provides a PLC hardware controller implementing a time scheduling function, where computer-executable instructions are stored thereon, and when executed by a processor, the PLC hardware controller implements the time scheduling function as described above.
(III) advantageous effects
The invention has the beneficial effects that: the invention creatively uses the timetable variable to define the time rule and the output event, and uses the time scheduling function block to execute to obtain the output, and the output is uniformly programmed with the original control service logic of the PLC end. Meanwhile, engineers can program related services only at the PLC end, various plan control strategies can be obtained by copying and pasting additional schedule variables and time scheduling function blocks, the number and the scale can be easily large, the method is only limited by the program capacity of the PLC, software personnel are not required to invest in development work, and time and cost are greatly reduced. Because plan scheduling no longer depends on upper computer analysis and transmission, the PLC can still be executed in an off-line manner even if the network is disconnected, and the control delay is greatly reduced.
Drawings
Fig. 1 is a schematic flowchart of a PLC control method for implementing a time scheduling function according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a PLC control method for implementing a time scheduling function according to an embodiment of the present invention before step S1;
fig. 3 is a schematic flowchart of the PLC control method for implementing the time scheduling function according to the embodiment of the present invention after step S1;
fig. 4 is a schematic diagram of a schedule variable and a time scheduling function block of a PLC control method for implementing a time scheduling function according to an embodiment of the present invention, which are set in a PLC logic control program;
fig. 5 is a logic control diagram of a PLC control method for implementing a time scheduling function according to an embodiment of the present invention.
Detailed Description
For the purpose of better explaining the present invention and to facilitate understanding, the present invention will be described in detail by way of specific embodiments with reference to the accompanying drawings.
As shown in fig. 1, a PLC control method for implementing a time scheduling function according to an embodiment of the present invention includes: acquiring the current time of a PLC control system; matching the current time with a time sequence described by a schedule variable; if the time sequence is not matched with the current time, outputting a default value and prompting an abnormal state; if the time sequence is matched with the current time, judging whether the current time is full of the special time to trigger a judgment condition; when the trigger judgment of the special time is met, executing special event output and prompting a normal state; when the special time triggering judgment is not met, judging whether the current time meets the general time triggering judgment; when the trigger judgment of the common time is met, executing the output of the common event and prompting the normal state; when the general time trigger judgment is not met, outputting a default value and prompting an abnormal state; the schedule variable is set in a control program of the PLC control system.
The invention creatively uses the timetable variable to define the time rule and the output event, and uses the time scheduling function block to execute to obtain the output, and the output is uniformly programmed with the original control service logic of the PLC end. Meanwhile, engineers can program related services only at the PLC end, various plan control strategies can be obtained by copying and pasting additional schedule variables and time scheduling function blocks, the number and the scale can be easily large, the method is only limited by the program capacity of the PLC, software personnel are not required to invest in development work, and time and cost are greatly reduced. Because the plan scheduling does not rely on the analysis and the transmission of an upper computer any more, the PLC can still be executed off line even if the network is disconnected, and the control delay is greatly reduced.
For a better understanding of the above-described technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Specifically, an embodiment of the present invention provides a PLC control method for implementing a time scheduling function, including:
and S1, acquiring the current time of the PLC control system.
As shown in fig. 2, before obtaining the current time of the PLC control system, the method further includes:
analyzing the schedule variable to obtain time scheduling information;
judging whether the time scheduling information is abnormal or not;
if the time scheduling information is abnormal, outputting a default value and prompting an abnormal state;
and if the time scheduling information is not abnormal, the operation of acquiring the current moment of the PLC control system is carried out.
As shown in fig. 3, after obtaining the current time of the PLC control system, the method further includes:
judging whether the acquired current moment of the PLC control system is abnormal or not;
if the current moment is abnormal, outputting a default value and prompting an abnormal state;
and if the current moment is not abnormal, entering the operation of matching the current time with the time sequence described by the schedule variable.
And S2, matching the current time with the time sequence described by the schedule variable.
And S3a, if the time sequence does not match the current time, outputting a default value and prompting an abnormal state.
And S3b, if the time sequence is matched with the current time, judging whether the current time is full of the special time to trigger a judgment condition.
And S4a, when the special time trigger judgment is met, executing special event output and prompting a normal state.
And S4b, when the special time triggering judgment is not met, judging whether the current time meets the general time triggering judgment.
And S5a, when the general time trigger judgment is satisfied, executing general event output and prompting a normal state.
And S5b, outputting a default value and prompting a normal state when the general time trigger judgment is not met.
Furthermore, the design of the schedule variables is considered to support various time sequence types, the schedule variables are of a structure body nested structure, and the schedule variables comprise schedule life time, periodic events, special events and default values.
Further, the schedule effective time comprises an effective starting time and an effective ending time; the periodic event comprises a periodic event starting time, a periodic event ending time and a signal output value after the periodic event is judged successfully; the special event comprises special event starting time, special event ending time and a signal output value after the judgment of the special event is successful.
The schedule variables are detailed in the following table:
table one: struct timetable type
Member | Type (B) | Description of the invention |
groupname[32] | unsigned char | Rule alias |
effect_scope | struct DateRange | The effective time of the schedule is shown in the second table |
weeklytask[7] | struct TimeValue | The matters to be done in a cycle of 7 days a week are shown in Table III |
accident | struct SpecialEvent | Special events, see Table four |
default_value | float | Default output value when fail is determined |
Table two: struct DateRange type
Member | Type (B) | Description of the invention |
begin_time | int | Start time, UNIX timestamp |
end_time | int | End time, UNIX timestamp |
Table three: struct TimeValue type
Member | Type (B) | Description of the invention |
start_action_time | int | A few hours, a few minutes and a few seconds |
end_action_time | int | A few hours, a few minutes and a few seconds end |
output | float | Signal output value after successful judgment |
Table four: struct SpecialEvent type
In a specific example, a custom switch light, start-stop ventilation system scenario as is common in building automation. On a regular weekday (monday to friday), lights were turned on at 8 am and turned off at 17 pm. The rest day (saturday) is not lighted, any day of each week is periodic, and the periodic events are judged by adopting general events. When an aperiodic event occurs, if smoke alarm happens in one night (during light turn-off period) by accident, the PLC preferentially executes light turn-on operation according to a special event, so that the personnel can conveniently handle the scene. Holidays are also a suitable scenario for special event applications, are neither occasional nor sudden, but are fixed and distributed and foreseeable in advance over a period of one year, and can also be preset with a time scheduling function.
As shown in fig. 4, the present invention also provides a PLC control system for implementing a time scheduling function, including: the system comprises a schedule variable, a time scheduling function block and a control service logic block; and the time scheduling function block is used for analyzing the received schedule variable and outputting a corresponding signal to the control service logic block after the received schedule variable meets the preset triggering condition.
The core of the invention is that a novel data type (timetable variable) and a time scheduling function block are designed for the configuration programming of the PLC, and the 2 programming elements are finally arranged in a PLC logic control program and run along with a control task.
Further, the schedule variables include schedule expiration time, periodic events, special events, and default values; the schedule effective time comprises an effective starting time and an effective ending time; the periodic event comprises a periodic event starting time, a periodic event ending time and a signal output value after the periodic event is judged successfully; the special event comprises special event starting time, special event ending time and a signal output value after the judgment of the special event is successful.
Further, the time scheduling function block includes:
and the time acquisition module is used for acquiring the current time of the PLC control system.
The time matching module is used for matching the current time with the time sequence described by the schedule variable; if the time sequence is not matched with the current time, outputting a default value to the control service logic block and prompting an abnormal state; and if the time sequence is matched with the current time, judging whether the current time is full of the special time to trigger a judgment condition.
The special time judging module is used for executing special event output to the control service logic block and prompting a normal state when the special time triggering judgment is met; and the time judging module is used for judging whether the current time meets the triggering judgment of the general time when the special time triggering judgment is not met.
The general time judging module is used for executing general event output to the service control logic block and prompting a normal state when the general time triggering judgment is met; and when the general time trigger judgment is not met, outputting a default value to the service control logic block and prompting a normal state.
Meanwhile, the time scheduling module further comprises: an anomaly determination module to:
before the current moment of the PLC control system is obtained, time scheduling information is obtained by analyzing a schedule variable; judging whether the time scheduling information is abnormal or not; if the time scheduling information is abnormal, outputting a default value and prompting an abnormal state; if the time scheduling information is not abnormal, entering the operation of obtaining the current moment of the PLC control system;
after the current time of the PLC control system is obtained, judging whether the obtained current time of the PLC control system is abnormal or not; if the current moment is abnormal, outputting a default value and prompting an abnormal state; and if the current time is not abnormal, entering an operation of matching the current time with the time sequence described by the schedule variable.
In addition, an embodiment of the present invention further provides a PLC hardware controller implementing a time scheduling function, where the PLC hardware controller stores computer executable instructions thereon, and is characterized in that the executable instructions, when executed by a processor, implement the PLC control method implementing the time scheduling function as described above.
In summary, the present invention provides a PLC control method, system and controller for implementing a time scheduling function, wherein the invention designs and defines a special PLC composite variable type, which is a schedule, for a function requirement of time scheduling, and a group of time sequences, including a start time, an end time, a repetition type and an output value after an arrival trigger, can be described by the composite variable; and a time scheduling function block is designed, and the function block can accept the schedule variable as input, analyze the meaning of the time sequence therein, output corresponding signals after meeting the triggering conditions and control the related control service logic block to execute actions.
As shown in fig. 5, the main flow of the implementation logic based on the time scheduling function block is as follows: firstly, checking time scheduling information described by a schedule variable, and identifying abnormal input; then obtaining the current time of the system and judging whether the system is abnormal or not; then, comparing with the time sequences described in the schedule variables respectively, and if the time sequences are not matched, keeping default output; if the time table variable is matched with the event output, judging the special time and the general time in turn according to the configuration of the time table variable, and executing corresponding event output and related state indication according to the result.
Therefore, the invention provides a PLC programming scheme suitable for executing a planned task aiming at a PLC automatic control scene needing planned scheduling based on a time sequence.
Since the system/apparatus described in the above embodiments of the present invention is a system/apparatus used for implementing the method of the above embodiments of the present invention, a person skilled in the art can understand the specific structure and modification of the system/apparatus based on the method described in the above embodiments of the present invention, and thus the detailed description is omitted here. All systems/devices adopted by the methods of the above embodiments of the present invention are within the intended scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the terms first, second, third, etc. are used for convenience only and do not denote any order. These words are to be understood as part of the name of the component.
Furthermore, it should be noted that in the description of the present specification, the description of the term "one embodiment", "some embodiments", "examples", "specific examples" or "some examples", etc., means that a specific feature, structure, material or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, the claims should be construed to include preferred embodiments and all changes and modifications that fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention should also include such modifications and variations.
Claims (10)
1. A PLC control method for realizing a time scheduling function is characterized in that the control method is executed at a PLC control end, and the control method comprises the following steps:
acquiring the current time of a PLC control end;
matching the current time with a time sequence described by a schedule variable;
if the time sequence is not matched with the current time, outputting a default value and prompting an abnormal state;
if the time sequence is matched with the current time, judging whether the current time is full of a special time trigger judgment condition;
when the trigger judgment of the special time is met, executing special event output and prompting a normal state;
when the special time triggering judgment is not met, judging whether the current time meets the general time triggering judgment;
when the trigger judgment of the common time is met, executing the output of the common event and prompting the normal state;
when the general time trigger judgment is not met, outputting a default value and prompting a normal state;
and the schedule variable is arranged in a control program of the PLC control end.
2. The PLC control method according to claim 1, wherein before obtaining the current time of the PLC control terminal, the method further comprises:
analyzing the schedule variable to obtain time scheduling information;
judging whether the time scheduling information is abnormal or not;
if the time scheduling information is abnormal, outputting a default value and prompting an abnormal state;
and if the time scheduling information is not abnormal, the operation of obtaining the current moment of the PLC control end is carried out.
3. The PLC control method according to claim 1, wherein after obtaining the current time of the PLC control terminal, the method further comprises:
judging whether the acquired current moment of the PLC control end is abnormal or not;
if the current moment is abnormal, outputting a default value and prompting an abnormal state;
and if the current moment is not abnormal, entering an operation of matching the current time with the time sequence described by the schedule variable.
4. The PLC control method of implementing a time scheduling function of any one of claims 1-3, wherein the schedule variables include schedule expiration time, periodic events, special events, and default values.
5. The PLC control method of claim 4, wherein the PLC control method further comprises the step of controlling the PLC according to the control command,
the schedule life time comprises an effective start time and an effective end time;
the periodic event comprises a periodic event starting time, a periodic event ending time and a signal output value after the periodic event is judged successfully;
the special event comprises special event starting time, special event ending time and a signal output value after the judgment of the special event is successful.
6. A PLC control system for realizing a time scheduling function, comprising: the system comprises a schedule variable, a time scheduling function block and a control service logic block;
and the time scheduling function block is used for analyzing the received schedule variable and outputting a corresponding signal to the control service logic block after the received schedule variable meets the preset triggering condition.
7. The PLC control system according to claim 6, wherein the schedule variables include schedule lifetime, periodic events, special events, and default values;
the schedule life time comprises an effective start time and an effective end time;
the periodic event comprises a periodic event starting time, a periodic event ending time and a signal output value after the periodic event is judged successfully;
the special event comprises special event starting time, special event ending time and a signal output value after the judgment of the special event is successful.
8. The PLC control system according to claim 7, wherein the time scheduling function block includes:
the time acquisition module is used for acquiring the current time of the PLC control system;
the time matching module is used for matching the current time with the time sequence described by the schedule variable; if the time sequence is not matched with the current time, outputting a default value to the control service logic block and prompting an abnormal state; if the time sequence is matched with the current time, judging whether the current time is full of a special time trigger judgment condition;
the special time judging module is used for executing special event output to the control service logic block and prompting a normal state when the special time triggering judgment is met; the time delay judging module is used for judging whether the current time meets the triggering judgment of the general time when the special time triggering judgment is not met;
a general time judgment module, configured to execute a general event output to the service control logic block and prompt a normal state when a general time trigger judgment is met; and when the general time trigger judgment is not met, outputting a default value to the service control logic block and prompting a normal state.
9. The PLC control system of claim 8, wherein the time scheduling module further comprises: an anomaly determination module to:
before the current moment of the PLC control system is obtained, time scheduling information is obtained by analyzing a schedule variable; judging whether the time scheduling information is abnormal or not; if the time scheduling information is abnormal, outputting a default value and prompting an abnormal state; if the time scheduling information is not abnormal, entering the operation of obtaining the current moment of the PLC control system;
and the number of the first and second groups,
after the current time of the PLC control system is obtained, judging whether the obtained current time of the PLC control system is abnormal or not; if the current moment is abnormal, outputting a default value and prompting an abnormal state; and if the current moment is not abnormal, entering an operation of matching the current time with the time sequence described by the schedule variable.
10. A PLC hardware controller implementing a time scheduling function, having stored thereon computer executable instructions, wherein the executable instructions, when executed by a processor, implement a PLC control method implementing a time scheduling function as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111590742.0A CN114488923A (en) | 2021-12-23 | 2021-12-23 | PLC control method, system and controller for realizing time scheduling function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111590742.0A CN114488923A (en) | 2021-12-23 | 2021-12-23 | PLC control method, system and controller for realizing time scheduling function |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114488923A true CN114488923A (en) | 2022-05-13 |
Family
ID=81493491
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111590742.0A Pending CN114488923A (en) | 2021-12-23 | 2021-12-23 | PLC control method, system and controller for realizing time scheduling function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114488923A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106779505A (en) * | 2017-02-28 | 2017-05-31 | 中国南方电网有限责任公司 | A kind of transmission line malfunction method for early warning driven based on big data and system |
CN108958157A (en) * | 2018-07-09 | 2018-12-07 | 北京东土科技股份有限公司 | Control process control dispatching method, device, computer equipment and storage medium |
CN109711712A (en) * | 2018-12-24 | 2019-05-03 | 广东德诚科教有限公司 | Long-range reply resource regulating method, device, computer equipment and storage medium |
JP2019212029A (en) * | 2018-06-05 | 2019-12-12 | ファナック株式会社 | Numerical control device |
CN111221666A (en) * | 2020-01-03 | 2020-06-02 | 北京明略软件***有限公司 | Scheduling method, scheduling device, electronic equipment and computer readable storage medium |
CN111562974A (en) * | 2020-04-30 | 2020-08-21 | 苏州亿歌网络科技有限公司 | Method, device and equipment for acquiring offline data and storage medium |
-
2021
- 2021-12-23 CN CN202111590742.0A patent/CN114488923A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106779505A (en) * | 2017-02-28 | 2017-05-31 | 中国南方电网有限责任公司 | A kind of transmission line malfunction method for early warning driven based on big data and system |
JP2019212029A (en) * | 2018-06-05 | 2019-12-12 | ファナック株式会社 | Numerical control device |
CN108958157A (en) * | 2018-07-09 | 2018-12-07 | 北京东土科技股份有限公司 | Control process control dispatching method, device, computer equipment and storage medium |
CN109711712A (en) * | 2018-12-24 | 2019-05-03 | 广东德诚科教有限公司 | Long-range reply resource regulating method, device, computer equipment and storage medium |
CN111221666A (en) * | 2020-01-03 | 2020-06-02 | 北京明略软件***有限公司 | Scheduling method, scheduling device, electronic equipment and computer readable storage medium |
CN111562974A (en) * | 2020-04-30 | 2020-08-21 | 苏州亿歌网络科技有限公司 | Method, device and equipment for acquiring offline data and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5860012A (en) | Installation of application software through a network from a source computer system on to a target computer system | |
US7062580B2 (en) | Logic arrangement, system and method for configuration and control in fieldbus applications | |
US20110196539A1 (en) | Multi-site controller batch update system | |
CN109344085B (en) | Method and system for analyzing satellite test data | |
EP2400235B1 (en) | Air-conditioning control monitoring device and air-conditioning control monitoring system | |
CN103679275A (en) | Processing method aiming at overtime unconfirmed warning information of automatic scheduling system | |
CN109685399A (en) | Electric system log confluence analysis method and system | |
CN114488923A (en) | PLC control method, system and controller for realizing time scheduling function | |
EP1987294B1 (en) | Central control system and operation method thereof | |
CN117170412B (en) | Multi-machine-base flight path planning method and device, electronic equipment and storage medium | |
Kohda et al. | On digraphs, fault trees, and cut sets | |
US20150185724A1 (en) | Facility controlling system, controller, downloading method, and software changing method | |
CN115755820A (en) | Process modeling method based on MES system | |
CN110942246A (en) | Work order monitoring method and equipment | |
KR102507147B1 (en) | Building Automation System using artificial intelligence-based building facility operation assistance system, and operating method of the system | |
CN109447452B (en) | Online testing method for batch control function of D5000 system load | |
CN113627732A (en) | Power failure maintenance automatic identification overlapping maintenance pre-estimation risk method | |
CN107086930B (en) | Vehicle configuration method and device and automobile | |
Tse et al. | Emergency lighting monitoring system using LonWorks | |
CN110866986A (en) | Inspection method | |
CN111047276B (en) | Intelligent plan flow state tracking method for Internet of things | |
JPH07312787A (en) | Remote supervisory controller | |
CN112621752A (en) | Robot construction method and device and industrial personal computer | |
KR20050060792A (en) | Complex building control system | |
CN113741872B (en) | Automatic software application publishing method based on job scheduling |
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 |