CN107862182B - PLC engineering software protection device and protection method thereof - Google Patents
PLC engineering software protection device and protection method thereof Download PDFInfo
- Publication number
- CN107862182B CN107862182B CN201710959839.1A CN201710959839A CN107862182B CN 107862182 B CN107862182 B CN 107862182B CN 201710959839 A CN201710959839 A CN 201710959839A CN 107862182 B CN107862182 B CN 107862182B
- Authority
- CN
- China
- Prior art keywords
- time
- period
- plc
- preset
- engineering software
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/10—Protecting distributed programs or content, e.g. vending or licensing of copyrighted material ; Digital rights management [DRM]
- G06F21/12—Protecting executable software
- G06F21/121—Restricting unauthorised execution of programs
- G06F21/125—Restricting unauthorised execution of programs by manipulating the program code, e.g. source code, compiled code, interpreted code, machine code
Abstract
The invention provides a PLC engineering software protection method, which comprises the steps that PLC engineering software identifies the time of first compiling of a programming card preset by a PLC; when the PLC engineering software recognizes that the time of first compiling is beyond the preset time limit protection time period, the preset time limit protection time period is automatically modified into a failure time period and is locked, so that a programming card preset by the PLC fails to compile the next time. The invention can effectively prevent the circulating water from being used without limit, and avoid economic loss.
Description
Technical Field
The invention relates to the technical field of PLC (programmable logic controller), in particular to a PLC engineering software protection device and a protection method thereof.
Background
The PLC loaded with PLC engineering software is usually used as a special controller of a certain machine, and is packaged with a human-machine interface HMI, a driver and the like to manufacture a special control system. However, most of the PLC engineering software has no corresponding protection measure, and once circulated, it is easily downloaded and compiled by general-purpose PLC purchased by people from other ways, so as to manufacture and sell a dedicated control system of a corresponding machine, which easily brings great economic loss to manufacturers and agents.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a PLC engineering software protection device and a protection method thereof, which can effectively prevent the PLC engineering software from being used without limitation after circulation, and avoid economic loss.
In order to solve the above technical problem, an embodiment of the present invention provides a PLC engineering software protection method, where the method includes:
the PLC engineering software identifies the time of first compiling of a programming card preset by the PLC;
and when the PLC engineering software recognizes that the time of the first compiling is beyond the preset time limit protection time period, automatically modifying the preset time limit protection time period to be a failure time period and locking, so that the PLC is disabled by a preset programming card for the next compiling.
Wherein the method further comprises:
when the PLC engineering software recognizes that the time of the first compiling is within the preset time limit protection time period, the initial period time of the preset time limit protection time period is automatically modified to be the time of the first compiling and locked, and the PLC is enabled to be invalid for the next compiling by the preset programming card.
Wherein, the time of the first compiling within the preset time limit protection period is specifically: the first compiling time is more than or equal to the starting period time of the preset time limit protection period and less than the ending period time of the preset time limit protection period.
The method comprises the following steps that the PLC engineering software automatically modifies a preset time limit protection time period to be a failure time period:
the PLC engineering software mutually replaces the starting period time and the ending period time of the preset time limit protection period, so that the replaced time limit protection period is the failure period.
Wherein the method further comprises:
and presetting a time limit protection period of the PLC engineering software, including a starting period time and an ending period time.
The embodiment of the invention also provides a PLC engineering software protection device, which comprises:
the first compiling time identification unit is used for identifying the first compiling time of a programming card preset by the PLC engineering software;
and the first protection unit is used for automatically modifying the preset time limit protection time period as a failure time period and locking when the PLC engineering software recognizes that the time of the first compiling is beyond the preset time limit protection time period, so that the PLC is disabled by a preset programming card for the next compiling.
Wherein, PLC engineering protection device still includes:
and the second protection unit is used for automatically modifying the initial period time of the preset time limit protection period as the time of the first compiling and locking when the PLC engineering software identifies that the time of the first compiling is within the preset time limit protection period, so that the next compiling of the programming card preset by the PLC is invalid.
Wherein, PLC engineering protection device still includes:
and the presetting unit is used for presetting the time limit protection time period of the PLC engineering software, including the starting time period and the ending time period.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the PLC engineering software protection device identifies the first compiling time of the PLC and compares the identified first compiling time with the preset time limit protection time period of the PLC engineering software to determine whether the PLC engineering software can be effectively used or not and the effective using time period, so that the PLC engineering software can be effectively prevented from being used without limit after circulation, and the economic loss is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is within the scope of the present invention for those skilled in the art to obtain other drawings based on the drawings without inventive exercise.
Fig. 1 is a flowchart of a PLC engineering software protection method according to an embodiment of the present invention;
fig. 2 is an application scene diagram of a PLC engineering software setting time limit protection period in the PLC engineering software protection method according to the embodiment of the present invention;
fig. 3 is an application scene diagram during the process of downloading and loading the PLC engineering software in the PLC engineering software protection method according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a PLC engineering software protection device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings.
As shown in fig. 1, a PLC engineering software protection method provided in an embodiment of the present invention includes:
step S1, the PLC engineering software identifies the time of the PLC for the first compiling by the preset programming card;
step S2, when the PLC engineering software recognizes that the time of the first compiling is beyond the preset time limit protection time period, automatically modifying the preset time limit protection time period as a failure time period and locking, so that a programming card preset by the PLC fails to compile the next time;
and step S3, when the PLC engineering software recognizes that the time of the first compiling is within the preset time limit protection time period, automatically modifying the initial period time of the preset time limit protection time period as the time of the first compiling and locking, so that the next compiling of the programming card preset by the PLC is invalid.
Specifically, before step S1, a time limit protection period of the PLC engineering software is preset, including a start period time and an end period time. In one embodiment, as shown in fig. 2, a start block time (e.g., "CurrentDate" 2017.07.06 ") and an end block time (e.g.," effectivdate "2017.08.06") are set to determine the entire period protection period (e.g., one month), which is written in the encrypted subroutine. It should be noted that, the time limit protection period is written in an encrypted manner, and others cannot open to see the content, even if the content is not modified. At the moment, the time limit protection time period of the PLC engineering software can be automatically modified once only when the PLC engineering software is loaded and compiled for the first time, otherwise, if a user adds an instruction to modify the time limit protection time period, the compiling is wrong and fails.
In step S1, during the loading of the PLC engineering software on the PLC (whether loading while downloading or loading after completing downloading), the PLC engineering software will quickly identify the time when the PLC first compiles through the preset programming card, so as to compare with the time limit protection period preset on the PLC to implement self-protection. Specifically, the following two cases are used to prevent the pre-download to the PLC of multiple cheap programming cards for standby:
(1) in step S2, when the first compiling time is outside the preset deadline protection period, the preset deadline protection period is automatically modified to be a failure period and locked, so that the programming card preset by the PLC fails the next compiling. In one embodiment, the PLC engineering software mutually replaces the starting period time and the ending period time of the preset time limit protection period, so that the replaced time limit protection period is a failure period; in another embodiment, the PLC engineering software clears the value corresponding to the deadline protection period preset thereon to NULL, so that the replaced deadline protection period is the expiration period.
(2) In step S3, when the time of the first compilation is within the preset time limit protection period, the start time of the preset time limit protection period is automatically modified to the time of the first compilation and locked, so that the programming card preset by the PLC fails to perform the next compilation. In one embodiment, if the first compiling time obtained by the PLC engineering software is 2017.07.15, the time limit protection period is automatically modified to 2017.07.15-2017.8.06 and locked, so that the next compiling of the programming card preset by the PLC is invalid, and even if the user calls the PLC compiling again to prolong the service time at 2017.07.23, the time limit protection period 2017.07.15-2017.8.06 cannot be modified again.
It should be noted that the time of the first compilation within the preset deadline protection period should specifically be: the time of the first compiling is more than or equal to the starting segment time of the preset time limit protection period and less than the ending segment time of the preset time limit protection period.
As shown in fig. 3, an application scenario of the PLC engineering software protection method provided in the embodiment of the present invention is further described:
clicking to download PLC engineering software;
compiling the PLC engineering software for the first time;
determining whether the compiling is complete; if yes, continuing, otherwise, ending;
identifies the compiling Date PC _ Date, and determines the start segment time CurrentDate?
If so, changing the starting time CurrentDate of the time limit protection period into the compiling Date PC _ Date, so as to shorten the effective use time of the whole time limit protection period, and completely loading the time limit protection period into the PLC;
if not, the subroutine will be automatically rewritten: if (current date < effectivdate), the input values of Set _ current date and Set _ effectivdate are exchanged, that is, the start period time and the end period time are mutually replaced, so that the whole time limit protection period is invalid.
As shown in fig. 4, in an embodiment of the present invention, a PLC engineering software protection device is provided, where the PLC engineering software protection device includes:
a first compiling time identification unit 110, configured to identify, by the PLC engineering software, a time at which a programming card preset by a PLC compiles the PLC for the first time;
the first protection unit 120 is configured to, when the PLC engineering software recognizes that the time of the first compiling is outside the preset deadline protection period, automatically modify the preset deadline protection period to be a failure period and lock the failure period, so that the programming card preset by the PLC fails to compile the next time.
Wherein, PLC engineering protection device still includes:
and a second protection unit 130, configured to, when the PLC engineering software recognizes that the time of the first compilation is within the preset time limit protection period, automatically modify an initial period of time of the preset time limit protection period to the time of the first compilation and lock the initial period of time, so that a programming card preset by the PLC fails to compile the next time.
Wherein, PLC engineering protection device still includes:
and the presetting unit is used for presetting the time limit protection time period of the PLC engineering software, including the starting time period and the ending time period.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the PLC engineering software protection device identifies the first compiling time of the PLC and compares the identified first compiling time with the preset time limit protection time period of the PLC engineering software to determine whether the PLC engineering software can be effectively used or not and the effective using time period, so that the PLC engineering software can be effectively prevented from being used without limit after circulation, and the economic loss is avoided.
It should be noted that, in the above embodiments, the included system units are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by relevant hardware instructed by a program, and the program may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.
Claims (6)
1. A PLC engineering software protection method is characterized by comprising the following steps:
the PLC engineering software identifies the time of first compiling of a programming card preset by the PLC;
when the PLC engineering software recognizes that the first compiling time is beyond the preset time limit protection time period, automatically modifying the preset time limit protection time period to be a failure time period and locking, so that a programming card preset by the PLC fails the next compiling;
when the PLC engineering software recognizes that the time of the first compiling is within the preset time limit protection time period, the initial period time of the preset time limit protection time period is automatically modified to be the time of the first compiling and locked, and the PLC is enabled to be invalid for the next compiling by the preset programming card.
2. The method according to claim 1, wherein the time of the first compilation within the preset deadline protection period is specifically: the first compiling time is more than or equal to the starting period time of the preset time limit protection period and less than the ending period time of the preset time limit protection period.
3. The method as claimed in claim 1, wherein the step of the PLC engineering software automatically modifying the preset deadline protection period to be a failure period specifically comprises:
the PLC engineering software mutually replaces the starting period time and the ending period time of the preset time limit protection period, so that the replaced time limit protection period is the failure period.
4. The method of claim 1, wherein the method further comprises:
and presetting a time limit protection period of the PLC engineering software, including a starting period time and an ending period time.
5. The utility model provides a PLC engineering software protection device which characterized in that, PLC engineering software protection device includes:
the first compiling time identification unit is used for identifying the first compiling time of a programming card preset by the PLC engineering software;
the first protection unit is used for automatically modifying the time limit protection time period preset on the PLC engineering software into a failure time period and locking when the PLC engineering software recognizes that the time of the first compiling is beyond the time limit protection time period preset on the PLC engineering software, so that a programming card preset on the PLC is failed in the next compiling;
and the second protection unit is used for automatically modifying the initial period time of the preset time limit protection period as the time of the first compiling and locking when the PLC engineering software identifies that the time of the first compiling is within the preset time limit protection period, so that the next compiling of the programming card preset by the PLC is invalid.
6. The PLC engineering software protection device of claim 5, wherein the PLC engineering protection device further comprises:
and the presetting unit is used for presetting the time limit protection time period of the PLC engineering software, including the starting time period and the ending time period.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710959839.1A CN107862182B (en) | 2017-10-16 | 2017-10-16 | PLC engineering software protection device and protection method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710959839.1A CN107862182B (en) | 2017-10-16 | 2017-10-16 | PLC engineering software protection device and protection method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107862182A CN107862182A (en) | 2018-03-30 |
CN107862182B true CN107862182B (en) | 2021-11-02 |
Family
ID=61698811
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710959839.1A Active CN107862182B (en) | 2017-10-16 | 2017-10-16 | PLC engineering software protection device and protection method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107862182B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113094662A (en) * | 2021-04-13 | 2021-07-09 | 深圳市合信自动化技术有限公司 | Safe downloading method for preventing client from making programming card by remotely downloading program |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8347044B2 (en) * | 2009-09-30 | 2013-01-01 | General Electric Company | Multi-processor based programmable logic controller and method for operating the same |
JP5900143B2 (en) * | 2012-05-15 | 2016-04-06 | 富士電機株式会社 | Control system, control device, and program execution control method |
CN103544451B (en) * | 2013-10-29 | 2017-10-31 | 威海麦科电气技术有限公司 | Based on the PLC encryption methods safeguarded and system by stages |
CN104991807B (en) * | 2015-08-07 | 2019-03-01 | 金蝶软件(中国)有限公司 | A kind of patch pack assembly generates, processing method and processing device |
-
2017
- 2017-10-16 CN CN201710959839.1A patent/CN107862182B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107862182A (en) | 2018-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101308547B (en) | Method for controlling the execution of an applet for an IC card | |
CN104572206A (en) | Application program self updating and backup recovery method | |
US9063819B2 (en) | Extensible patch management | |
CA2292123A1 (en) | Method and system for modifying executable code to add additional functionality | |
CN108874437B (en) | Online cloud updating method for android application program | |
US8612951B2 (en) | Method of determining which computer program functions are changed by an arbitrary source code modification | |
CN109062152A (en) | A kind of Loacl variable on-line monitoring method that logic-based configuration generates | |
CN107862182B (en) | PLC engineering software protection device and protection method thereof | |
CN108255735A (en) | Associated environment test method, electronic device and computer readable storage medium | |
CN107193619B (en) | Method and device for automatically updating compiled version | |
CN116991622A (en) | Recovery method and system for starting failure of trusted DCS controller system | |
WO2018121735A1 (en) | Method and device for preventing loss of servo information | |
US7296270B2 (en) | Method and control unit for controlling technical procedures in a motor vehicle | |
CN111324481A (en) | Linux platform repairing method and device | |
CN113254941A (en) | Linux kernel source code processing method, device and equipment | |
CN107962560B (en) | Robot and control method and device thereof | |
CN110618824B (en) | Software upgrading method, device, medium and equipment | |
CN110162324B (en) | Executable code updating method, device and medium in direct current control protection equipment | |
CN113721915B (en) | Code compiling method, device, equipment and computer readable storage medium | |
CN109783156A (en) | A kind of starting control method and device of application | |
CN110806867B (en) | Handle management method, storage medium, electronic device and system | |
CN112925547A (en) | Method for updating DSP program through EtherCAT bus | |
CN107479864B (en) | Platform transplanting method and device for MapReduce computing framework | |
CN106529650B (en) | Expansion method and device for smart card mask application | |
US10768597B2 (en) | Method and controller for flexible process control |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |