CN107862182A - A kind of PLC engineering softwares protection device and its guard method - Google Patents
A kind of PLC engineering softwares protection device and its guard method Download PDFInfo
- Publication number
- CN107862182A CN107862182A CN201710959839.1A CN201710959839A CN107862182A CN 107862182 A CN107862182 A CN 107862182A CN 201710959839 A CN201710959839 A CN 201710959839A CN 107862182 A CN107862182 A CN 107862182A
- Authority
- CN
- China
- Prior art keywords
- time
- plc
- default
- time slot
- limit protective
- 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.)
- Granted
Links
- 230000004224 protection Effects 0.000 title claims abstract description 30
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000001681 protective effect Effects 0.000 claims abstract description 62
- 230000004048 modification Effects 0.000 claims abstract description 14
- 238000012986 modification Methods 0.000 claims abstract description 14
- 230000008859 change Effects 0.000 claims description 5
- 238000006073 displacement reaction Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012856 packing Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
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
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Technology Law (AREA)
- Computer Hardware Design (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Programmable Controllers (AREA)
Abstract
The present invention provides a kind of PLC engineering softwares guard method, including PLC engineering softwares identification PLC time for being compiled first to it of preset programming card;When outside PLC engineering softwares recognize the time default time limit protective time slot disposed thereon compiled first; then default time limit protective time slot is failure period and locked thereon for automatic modification; so that the preset programming card of PLC institutes compiles failure to it next time, the invention also discloses corresponding protection device.Implement the present invention, unrestrictedly used after can effectively preventing circulation, avoid economic loss.
Description
Technical field
The present invention relates to PLC technology field, more particularly to a kind of PLC engineering softwares protection device and its guard method.
Background technology
Loaded the PLC of PLC engineering softwares generally can all use as the nonshared control unit of certain machine, and with it is man-machine
The packings such as interface HMI, driver are fabricated to dedicated control system.However, the not corresponding protection of most of PLC engineering softwares
Measure, after circulation, it is easy to which the general PLC bought by people from other approach is downloaded and compiled, so as to produce phase
The dedicated control system of machine and sale are answered, is thus easy to bring great economic loss to producer and agent.
The content of the invention
Technical problem to be solved of the embodiment of the present invention is, there is provided a kind of PLC engineering softwares protection device and its guarantor
Maintaining method, unrestrictedly used after can effectively preventing circulation, avoid economic loss.
In order to solve the above-mentioned technical problem, the embodiments of the invention provide a kind of PLC engineering softwares guard method, the side
Method includes:
PLC engineering softwares identification PLC time for being compiled first to it of preset programming card;
When the PLC engineering softwares recognize the time default time limit protective time slot disposed thereon compiled first it
When outer, then default time limit protective time slot is failure period and locked thereon for automatic modification so that the preset programming card of the PLC institutes
Compile failure next time to it.
Wherein, methods described further comprises:
When the PLC engineering softwares recognize the time default time limit protective time slot disposed thereon compiled first it
When interior, then the initial segment time of automatic modification default time limit protective time slot thereon is time compiled first and locked,
So that the preset programming card of the PLC institutes compiles failure to it next time.
Wherein, the planted agent that the time compiled first is located at the default time limit protective time slot is specially:The head
The time of secondary compiling is more than or equal to the initial segment time of the default time limit protective time slot and protected less than the default time limit
Protect the termination section time of period.
Wherein, default time limit protective time slot has the PLC engineering softwares for the step of failure period thereon for modification automatically
Body is:
The PLC engineering softwares put mutually the initial segment time of default time limit protective time slot thereon with terminating the section time
Change so that the time limit protective time slot after the displacement is the failure period.
Wherein, methods described further comprises:
Pre-set the time limit protective time slot of the PLC engineering softwares, including the initial segment time and termination section time.
The embodiment of the present invention additionally provides a kind of PLC engineering softwares protection device, and the PLC engineering protections device includes:
Compilation time recognition unit first, it is compiled first for the preset programming card of PLC engineering softwares identification PLC institutes
The time translated;
First protection location, for recognize the time compiled first disposed thereon pre- when the PLC engineering softwares
If time limit protective time slot outside when, then default time limit protective time slot is failure period and locked thereon for automatic modification so that
The preset programming card of the PLC institutes compiles failure to it next time.
Wherein, the PLC engineering protections device also includes:
Second protection location, for recognize the time compiled first disposed thereon pre- when the PLC engineering softwares
If time limit protective time slot within when, then automatic modification thereon default time limit protective time slot the initial segment time for it is described first
The time of compiling is simultaneously locked so that the preset programming card of the PLC institutes compiles failure to it next time.
Wherein, the PLC engineering protections device also includes:
Default unit, for pre-setting the time limit protective time slot of the PLC engineering softwares, including the initial segment time and end
The only section time.
Implement the embodiment of the present invention, have the advantages that:
In embodiments of the present invention, PLC engineering softwares protection device is by identifying PLC compilation times first, and will be known
Other compilation time first is contrasted with the default time limit protective time slot that the PLC engineering softwares carry to determine that PLC engineerings are soft
Part whether the period that effectively can be used and effectively use, so as to effectively prevent circulation after unrestrictedly used, avoid
Economic loss.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, according to
These accompanying drawings obtain other accompanying drawings and still fall within scope of the invention.
Fig. 1 is a kind of flow chart of PLC engineering softwares guard method provided in an embodiment of the present invention;
Fig. 2 is that PLC engineering softwares set the time limit to protect in a kind of PLC engineering softwares guard method provided in an embodiment of the present invention
Protect the application scenario diagram of period;
Fig. 3 is that PLC engineering softwares add when downloading in a kind of PLC engineering softwares guard method provided in an embodiment of the present invention
Application scenario diagram during load;
Fig. 4 is a kind of structural representation of PLC engineering softwares protection device provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, the present invention is made into one below in conjunction with accompanying drawing
It is described in detail on step ground.
As shown in figure 1, in the embodiment of the present invention, there is provided a kind of PLC engineering softwares guard method, methods described bag
Include:
Step S1, PLC engineering softwares identification PLC time for being compiled first to it of preset programming card;
Step S2, protected when the PLC engineering softwares recognize the time compiled first in the default time limit disposed thereon
When protecting outside the period, then default time limit protective time slot is failure period and locked thereon for automatic modification so that the PLC institutes are pre-
Put programming card and compile failure next time to it;
Step S3, protected when the PLC engineering softwares recognize the time compiled first in the default time limit disposed thereon
When protecting within the period, then the automatic the initial segment time for changing default time limit protective time slot thereon is the time compiled first
It is and locked so that the preset programming card of the PLC institutes compiles failure to it next time.
Detailed process is, before step S1, pre-sets the time limit protective time slot of PLC engineering softwares, including the initial segment
Time and termination section time.In one embodiment, as shown in Fig. 2 setting the initial segment time (such as " CurrentDate=
2017.07.06 ") and the section time (such as " EffectiveDate=2017.08.06 ") is terminated, so that it is determined that whole time limit protection
Period (such as one month), write in the subprogram of encryption.It should be noted that the time limit protective time slot is write using cipher mode
Enter, other people, which can not open, sees content, does not change more.Now, PLC engineering softwares only first by PLC load compile when,
Time limit protective time slot can be changed once automatically, if otherwise user adds instruction modification time limit protective time slot, mistake occurs in compiling
And fail.
In step sl, (loading during PLC engineering softwares are loaded on PLC, or downloading when either downloading
Into rear loading), PLC engineering softwares all can quickly identify PLC by time for being compiled first to it of preset programming card, so as to
Default time limit protective time slot is contrasted to realize self-protection thereon.Specifically divide following two situations, to prevent in advance
Download to standby in multiple cheap programming cards on PLC:
(1) as in step S2, when the time compiled first is located at outside default time limit protective time slot, automatic modification is thereon
Default time limit protective time slot is failure period and locked so that the preset programming cards of PLC institutes compile failure to it next time.One
In individual embodiment, PLC engineering softwares by by the initial segment time of default time limit protective time slot thereon and terminate the section time it is mutual
Mutually replace so that the time limit protective time slot after displacement is the failure period;In another embodiment, PLC engineering softwares will thereon
Value corresponding to default time limit protective time slot is emptied as NULL so that the time limit protective time slot after displacement is the failure period.
(2) as in step S3, when the time compiled first is located within default time limit protective time slot, automatic modification is thereon
The initial segment time of default time limit protective time slot is time for compiling first and locked so that the preset programming cards of PLC institutes are to it
Compiling failure next time.In one embodiment, it is 2017.07.15 that PLC engineering softwares, which obtain compilation time first, then the time limit
Protective time slot is revised as 2017.07.15~2017.8.06 and locked automatically so that the preset programming cards of PLC institutes to it next time
Compiling failure, even if user calls PLC in 2017.07.23 again, compiling extends usage time, can not also change again the time limit
Protective time slot 2017.07.15~2017.8.06.
It should be noted that the planted agent that the time compiled first is located at default time limit protective time slot is specially:Compile first
The time translated is more than or equal to the initial segment time of default time limit protective time slot and less than the termination of default time limit protective time slot
The section time.
As shown in figure 3, a kind of application scenarios of PLC engineering softwares guard method provided in the embodiment of the present invention are done
Further illustrate:
Click on and download PLC engineering softwares;
PLC engineering softwares are compiled first;
It is determined that whether compiling is completed;It is to continue, otherwise terminates;
Identification compiling date PC_Date, and judge the initial segment time CurrentDate<=compiling date PC_Date<Eventually
Only section time EffectiveDate
If it is, the initial segment time CurrentDate of time limit protective time slot is changed to compile date PC_Date,
So as to reduce the effective storage life of whole time limit protective time slot, completely can now be loaded into PLC;
If it is not, then subprogram will be rewritten automatically:if(CurrentDate<EffectiveDate), Set_
CurrentDate and Set_EffectiveDate input exchange of values, i.e. the initial segment time are put mutually with terminating the section time
Change so that whole time limit protective time slot failure.
As shown in figure 4, in the embodiment of the present invention, there is provided a kind of PLC engineering softwares protection device, the PLC engineerings
Software protecting equipment includes:
Compilation time recognition unit 110 first, it is first to it for the preset programming card of PLC engineering softwares identification PLC institutes
The time of secondary compiling;
First protection location 120, for recognize the time compiled first disposed thereon when the PLC engineering softwares
When outside default time limit protective time slot, then default time limit protective time slot is failure period and locked thereon for automatic modification, is made
Obtain the preset programming card of the PLC institutes and compile failure next time to it.
Wherein, the PLC engineering protections device also includes:
Second protection location 130, for recognize the time compiled first disposed thereon when the PLC engineering softwares
When within default time limit protective time slot, then the automatic the initial segment time for changing default time limit protective time slot thereon is the head
The time of secondary compiling is simultaneously locked so that the preset programming card of the PLC institutes compiles failure to it next time.
Wherein, the PLC engineering protections device also includes:
Default unit, for pre-setting the time limit protective time slot of the PLC engineering softwares, including the initial segment time and end
The only section time.
Implement the embodiment of the present invention, have the advantages that:
In embodiments of the present invention, PLC engineering softwares protection device is by identifying PLC compilation times first, and will be known
Other compilation time first is contrasted with the default time limit protective time slot that the PLC engineering softwares carry to determine that PLC engineerings are soft
Part whether the period that effectively can be used and effectively use, so as to effectively prevent circulation after unrestrictedly used, avoid
Economic loss.
It is worth noting that, in above-described embodiment, included each system unit is simply drawn according to function logic
Point, but above-mentioned division is not limited to, as long as corresponding function can be realized;In addition, each functional unit is specific
Title is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
Can be with one of ordinary skill in the art will appreciate that realizing that all or part of step in above-described embodiment method is
The hardware of correlation is instructed to complete by program, described program can be stored in a computer read/write memory medium,
Described storage medium, such as ROM/RAM, disk, CD.
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly
Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (8)
1. a kind of PLC engineering softwares guard method, it is characterised in that methods described includes:
PLC engineering softwares identification PLC time for being compiled first to it of preset programming card;
When the PLC engineering softwares are recognized outside the time default time limit protective time slot disposed thereon compiled first
When, then default time limit protective time slot is failure period and locked thereon for automatic modification so that the preset programming card pair of the PLC institutes
It compiles failure next time.
2. the method as described in claim 1, it is characterised in that methods described further comprises:
When the PLC engineering softwares are recognized within the time default time limit protective time slot disposed thereon compiled first
When, then the initial segment time of automatic modification default time limit protective time slot thereon is time compiled first and locked, is made
Obtain the preset programming card of the PLC institutes and compile failure next time to it.
3. method as claimed in claim 2, it is characterised in that the time compiled first protects positioned at the default time limit
Shield the period planted agent be specially:When the time compiled first is more than or equal to the initial segment of the default time limit protective time slot
Between and less than the default time limit protective time slot the termination section time.
4. the method as described in claim 1, it is characterised in that the PLC engineering softwares change the default time limit thereon automatically
Protective time slot for failure the period the step of be specially:
The PLC engineering softwares replace mutually the initial segment time of default time limit protective time slot thereon with terminating the section time,
So that the time limit protective time slot after the displacement is the failure period.
5. the method as described in claim 1, it is characterised in that methods described further comprises:
Pre-set the time limit protective time slot of the PLC engineering softwares, including the initial segment time and termination section time.
6. a kind of PLC engineering softwares protection device, it is characterised in that the PLC engineering softwares protection device includes:
Compilation time recognition unit first, for PLC engineering softwares identification PLC preset programming card it is compiled first
Time;
First protection location, for recognize the time compiled first disposed thereon default when the PLC engineering softwares
When outside time limit protective time slot, then default time limit protective time slot is failure period and locked thereon for automatic modification so that described
The preset programming card of PLC institutes compiles failure to it next time.
7. PLC engineering softwares protection device as claimed in claim 6, it is characterised in that the PLC engineering protections device also wraps
Include:
Second protection location, for recognize the time compiled first disposed thereon default when the PLC engineering softwares
When within time limit protective time slot, then the initial segment time for changing default time limit protective time slot thereon automatically compiles first to be described
Time and locked so that the preset programming card of the PLC institutes compiles failure to it next time.
8. PLC engineering softwares protection device as claimed in claim 6, it is characterised in that the PLC engineering protections device also wraps
Include:
Default unit, for pre-setting the time limit protective time slot of the PLC engineering softwares, including the initial segment time and termination section
Time.
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 true CN107862182A (en) | 2018-03-30 |
CN107862182B 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) |
Cited By (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 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110077749A1 (en) * | 2009-09-30 | 2011-03-31 | General Electric Company | Multi-processor based programmable logic controller and method for operating the same |
CN103425909A (en) * | 2012-05-15 | 2013-12-04 | 富士电机株式会社 | Control system, device and program execution control method |
CN103544451A (en) * | 2013-10-29 | 2014-01-29 | 威海麦科电气技术有限公司 | Programmable logic controller (PLC) encryption method and system based on step-by-step maintaining |
CN104991807A (en) * | 2015-08-07 | 2015-10-21 | 金蝶软件(中国)有限公司 | Service pack assembly generating, processing method and device |
-
2017
- 2017-10-16 CN CN201710959839.1A patent/CN107862182B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110077749A1 (en) * | 2009-09-30 | 2011-03-31 | General Electric Company | Multi-processor based programmable logic controller and method for operating the same |
CN103425909A (en) * | 2012-05-15 | 2013-12-04 | 富士电机株式会社 | Control system, device and program execution control method |
CN103544451A (en) * | 2013-10-29 | 2014-01-29 | 威海麦科电气技术有限公司 | Programmable logic controller (PLC) encryption method and system based on step-by-step maintaining |
CN104991807A (en) * | 2015-08-07 | 2015-10-21 | 金蝶软件(中国)有限公司 | Service pack assembly generating, processing method and device |
Cited By (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 |
Also Published As
Publication number | Publication date |
---|---|
CN107862182B (en) | 2021-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3529800B2 (en) | Data protection microprocessor circuit for portable data carrier | |
JP4777903B2 (en) | Method of controlling program execution consistency by verifying execution trace print | |
KR101719635B1 (en) | A system and method for aggressive self-modification in dynamic function call systems | |
KR102007532B1 (en) | Hardware security module with means to selectively activate or inhibit debugging and corresponding debugging method | |
EP3915792A1 (en) | Consumable chip, and consumable chip communication method | |
CN105303073B (en) | Software code guard method | |
CN101183330A (en) | Online debugging system of embedded system and debug method thereof | |
US20120246627A1 (en) | Adding Instrumentation to a Body of Code to Enable Generation of Code Coverage Data | |
US7181198B2 (en) | Program rewriting system and method for a portable telephone set | |
CN105159716B (en) | A kind of memory device initial method and electronic equipment | |
CN109598107A (en) | A kind of code conversion method and device based on application installation package file | |
EP1696331A2 (en) | Control system with solid-state non-volatile memory for increased reliability | |
CN107862182A (en) | A kind of PLC engineering softwares protection device and its guard method | |
KR20120068745A (en) | Hardware security module and treatment process therein | |
CN114398598A (en) | Library file encryption method, decryption method and encryption device | |
CN106250728A (en) | For protecting equipment and the method for ios software module | |
CN106919865A (en) | Data of nonvolatile storage encryption system | |
US8838996B2 (en) | Non-transitory computer readable medium, program protection apparatus, and program protection method | |
TWI530954B (en) | Apparatuses for securing software code stored in a non-volatile memory | |
US5963741A (en) | Information processor which rewrites instructions in program to dynamically change program structure and method therefor | |
CN104679556A (en) | Application program burning method and system | |
CN104573423A (en) | PLC (programmable logic controller) software and hardware combination encipherment protection method | |
KR102066580B1 (en) | Program for injecting watermark into captured data and screen leak realisation service providing method | |
CN102799434B (en) | A kind of method utilizing software protecting equipment to realize automatic code transplanting | |
CN107844695A (en) | A kind of PLC engineering softwares protection device and its guard method |
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 |