[go: up one dir, main page]

CN104991521B - A kind of NC program segments prevent the method divulged a secret - Google Patents

A kind of NC program segments prevent the method divulged a secret Download PDF

Info

Publication number
CN104991521B
CN104991521B CN201510382916.2A CN201510382916A CN104991521B CN 104991521 B CN104991521 B CN 104991521B CN 201510382916 A CN201510382916 A CN 201510382916A CN 104991521 B CN104991521 B CN 104991521B
Authority
CN
China
Prior art keywords
program segments
control system
important information
digital control
appointment codes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510382916.2A
Other languages
Chinese (zh)
Other versions
CN104991521A (en
Inventor
李桂胜
封雨鑫
谢健
李若涛
陈燚
李�荣
高云峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Han's Photon Laser Technology Co ltd
Shenzhen Han's Smart Control Technology Co ltd
Han s Laser Technology Industry Group Co Ltd
Original Assignee
HAN'S PA AUTOMATION TECHNOLOGY Co Ltd
Shenzhen Dazu Intelligent Control Technology Co Ltd
Han s Laser Technology Industry Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by HAN'S PA AUTOMATION TECHNOLOGY Co Ltd, Shenzhen Dazu Intelligent Control Technology Co Ltd, Han s Laser Technology Industry Group Co Ltd filed Critical HAN'S PA AUTOMATION TECHNOLOGY Co Ltd
Priority to CN201510382916.2A priority Critical patent/CN104991521B/en
Publication of CN104991521A publication Critical patent/CN104991521A/en
Application granted granted Critical
Publication of CN104991521B publication Critical patent/CN104991521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/4093Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by part programming, e.g. entry of geometrical information as taken from a technical drawing, combining this with machining and material information to obtain control information, named part programme, for the NC machine

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

The present invention is applied to automation control area, provide a kind of method that NC program segments prevent from divulging a secret, methods described is hidden on digital control system backstage sets NC program segments corresponding to important information, NC program segments corresponding to important information are replaced in the NC programs of the front end viewing area of digital control system all the time with appointment codes, when program performs appointment codes, NC program segments, which are defined, corresponding to the important information by backstage is performed.Method provided by the invention, by way of hiding and setting, avoid divulging a secret or plagiarizing for important information, user only needs to know the implication representated by appointment codes, in the compiling for different programs, directly using appointment codes, the efficiency that program compiles is greatly improved.

Description

A kind of NC program segments prevent the method divulged a secret
Technical field
The invention belongs to automation control area, more particularly to a kind of NC program segments prevent the method divulged a secret.
Background technology
Laser machine in industry, frequently refer to some important informations, such as the technique information of each manufacturer, the technique information It is particularly significant for workpieces processing quality and efficiency, but client exactly needs to use these information, for this reason, it may be necessary to prevent market The generation of cribbing.
Digital control system is by sequentially performing a series of NC (Numerical Control, digital control, abbreviation numerical control) journey Sequence section carries out the processing of workpiece, and these important informations will be converted into NC programs, when anyone sees this NC program, just It may cause to divulge a secret or plagiarize.
The method that traditional NC program segments prevent from divulging a secret then is carried out again first to be encrypted to NC program segments in compilation process The mode of decryption realizes that this mode has largely slowed down the speed of compiling NC program segments, have impact on the efficiency of processing.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of method that NC program segments prevent from divulging a secret, to solve existing method Compile the problem of efficiency is low.
The embodiment of the present invention is achieved in that a kind of NC program segments prevent the method divulged a secret, and methods described is in numerical control system System backstage, which hides, sets NC program segments corresponding to important information, all the time with finger in the NC programs of the front end viewing area of digital control system Determine code and replace NC program segments corresponding to important information, when program performs appointment codes, with NC corresponding to the important information on backstage Program segment, which is defined, to be performed.
Further, methods described includes:
NC program segments corresponding to important information are hidden setting on digital control system backstage;
Establish the mapping relations of appointment codes NC program segments corresponding with important information;
NC programs are compiled, and NC program segments corresponding to important information are represented using appointment codes;
NC programs perform, and run appointment codes according to NC program segments corresponding to important information on digital control system backstage, number Control system front end viewing area does not show NC program segments corresponding to the important information.
Further, the NC routine executing steps specifically include:
Whether include appointment codes in identification NC programs;
If it is not, directly performed according to NC contents of program;
If so, then appointment codes are replaced with NC program segments corresponding to important information by digital control system on backstage, and numerical control system System front end viewing area do not replace, digital control system perform for digital control system backstage replace after NC programs.
Further, appointment codes are replaced with NC program segments corresponding to important information on backstage and walked by the digital control system Suddenly, including:
Judge the line number of NC program segments corresponding to the important information that appointment codes represent;
If line number is 1:Then directly delete appointment codes, NC program segments corresponding to write-in;
If line number is more than 1:
Then delete appointment codes;
First and second row NC program segments corresponding to write-in;
It is determined that remaining line number, and judge whether remaining line number is 0
If 0, digital control system backstage performs the NC programs after replacing;
If not 0, the insertion of order next line NC program segments again, jump to and determine remaining line number step, circulate operation is straight It is 0 to remaining line number.
Further, the digital control system is PA8000.
Further, the important information lifts technique, laser beam perforation technique, Laser output or Guan Guanggong including Z axis Skill, laser turning processing technology.
The invention provides a kind of method that NC program segments prevent from divulging a secret, and by way of hiding and setting, avoids important Information being divulged a secret or plagiarizing, and user only needs to know the implication representated by appointment codes, in the compiling for different programs In, directly using appointment codes, greatly improve the efficiency that program compiles.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In the required accompanying drawing used be briefly described, it should be apparent that, drawings in the following description be only the present invention some Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the flow chart of method that NC program segments provided in an embodiment of the present invention prevent from divulging a secret.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The embodiment of the present invention provides a kind of method 100 that NC program segments prevent from divulging a secret, and is using digital control system to producing In product processing, prevent from being plagiarized, it is necessary to which these important informations are carried out into secrecy setting, this implementation due to being related to some important informations Used in example and its hiding method realized, hidden first on digital control system backstage and NC program segments corresponding to important information are set, NC program segments, journey corresponding to important information are replaced with appointment codes M all the time in the NC programs of the front end viewing area of digital control system When sequence performs appointment codes, NC program segments, which are defined, corresponding to the important information by backstage is performed.
The method provided in an embodiment of the present invention for preventing from divulging a secret avoids letting out for important information by way of hiding and setting Close or plagiarization, user only need to know the implication representated by appointment codes, in the compiling for different programs, directly made With appointment codes, the efficiency that program compiles is greatly improved.
Specifically, methods described includes:
Step 110, NC program segments corresponding to important information are hidden setting on digital control system backstage;
In the present embodiment, the important information can include Z axis lift technique, laser beam perforation technique, Laser output or Light technique, laser turning processing technology etc. are closed, in order to realize these functions or event, it is necessary to by NC programs corresponding to execution Section.NC programs corresponding to these important informations are only hidden on the backstage of digital control system, without being shown by front end.
Step 120, the mapping relations of appointment codes M NC program segments corresponding with important information are established from the background;
After the mapping relations of appointment codes M NC program segments corresponding with important information are established, only in any program Appointment codes M be present, you can expression is the implementation of the function or event representated by important information.
Step 130, NC programs are compiled, and NC program segments corresponding to important information are represented using appointment codes M;
The smooth motion for needing to ensure processing head is lifted such as Z axis, it is impossible to is shaken, or is ensured raising height to technique Positive influence is produced, can set the program segment to be:
N100 G01 Z-10 F1400
N110 G04 F500
Totally two line program, can be substituted in the present embodiment using appointment codes M800, herein 800 just to distinguishing The symbol of different information, such as appointment codes M700 can also be used to represent laser turning processing technology.Other can certainly be used Character or symbol replace M.
In the present embodiment, the digital control system is PA8000.
Step 140, NC programs perform, on digital control system backstage by appointment codes according to NC program segments corresponding to important information Operation, digital control system front end viewing area does not show NC program segments corresponding to the important information.
When the NC programs of digital control system front end contain M800, digital control system is then performed by above-mentioned two line programs section on backstage New NC programs after replacement.
Further, the NC routine executing steps specifically include:
Whether include appointment codes in identification NC programs;
If it is not, directly performed according to NC contents of program;
If so, then appointment codes M800 is replaced with NC program segments corresponding to important information by digital control system on backstage, and count Control system front end viewing area is not replaced, and the NC programs after digital control system is replaced according to backstage perform.
Wherein, appointment codes M800 is replaced with NC program segments corresponding to important information on backstage and walked by the digital control system Suddenly, including:
Judge the line number of NC program segments corresponding to the important information that appointment codes represent;
If line number is 1:Then directly delete appointment codes, NC program segments corresponding to write-in;
If line number is more than 1:
Then delete appointment codes;
First and second row NC program segments corresponding to write-in;
It is determined that remaining line number, and judge whether remaining line number is 0
If 0, digital control system backstage performs the NC programs after replacing;
If not 0, the insertion of order next line NC program segments again, jump to and determine remaining line number step, circulate operation is straight It is 0 to remaining line number.
Above content is to combine specific preferred embodiment further description made for the present invention, it is impossible to is assert The specific implementation of the present invention is confined to these explanations.For general technical staff of the technical field of the invention, Some equivalent substitutes or obvious modification are made on the premise of not departing from present inventive concept, and performance or purposes are identical, all should It is considered as belonging to the scope of patent protection that the present invention is determined by the claims submitted.

Claims (5)

1. a kind of NC program segments prevent the method divulged a secret, it is characterised in that including:
NC program segments corresponding to important information are hidden setting on digital control system backstage;
Establish the mapping relations of appointment codes NC program segments corresponding with important information;
NC programs are compiled, and NC program segments corresponding to important information are represented using appointment codes;
NC programs perform, and run appointment codes according to NC program segments corresponding to important information on digital control system backstage, numerical control system The front end viewing area of system does not show NC program segments corresponding to the important information.
2. the method as described in claim 1, it is characterised in that the NC routine executing steps specifically include:
Whether include appointment codes in identification NC programs;
If it is not, directly performed according to NC contents of program;
If so, then appointment codes are replaced with NC program segments corresponding to important information by digital control system on backstage, and before digital control system End viewing area is not replaced, and the NC programs after digital control system is replaced according to backstage perform.
3. method as claimed in claim 2, it is characterised in that the digital control system replaces with appointment codes on backstage important NC program segments step corresponding to information, including:
Judge the line number of NC program segments corresponding to the important information that appointment codes represent;
If line number is 1:Then directly delete appointment codes, NC program segments corresponding to write-in;
If line number is more than 1:
Then delete appointment codes;
First and second row NC program segments corresponding to write-in;
It is determined that remaining line number, and judge whether remaining line number is 0;
If 0, digital control system backstage performs the NC programs after replacing;
If not 0, the insertion of order next line NC program segments, and jump to and determine remaining line number step again, circulate operation until Remaining line number is 0.
4. the method as described in claim 1-3 any one, it is characterised in that the digital control system is PA8000.
5. the method as described in claim 1-3 any one, it is characterised in that the important information lifts work including Z axis Skill, laser beam perforation technique, Laser output close light technique, laser turning processing technology.
CN201510382916.2A 2015-07-02 2015-07-02 A kind of NC program segments prevent the method divulged a secret Active CN104991521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510382916.2A CN104991521B (en) 2015-07-02 2015-07-02 A kind of NC program segments prevent the method divulged a secret

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510382916.2A CN104991521B (en) 2015-07-02 2015-07-02 A kind of NC program segments prevent the method divulged a secret

Publications (2)

Publication Number Publication Date
CN104991521A CN104991521A (en) 2015-10-21
CN104991521B true CN104991521B (en) 2018-03-09

Family

ID=54303340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510382916.2A Active CN104991521B (en) 2015-07-02 2015-07-02 A kind of NC program segments prevent the method divulged a secret

Country Status (1)

Country Link
CN (1) CN104991521B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8452983B2 (en) * 2007-03-23 2013-05-28 Siemens Product Lifecycle Management Software Inc. System and method for protecting numerical control codes
CN100458815C (en) * 2007-05-28 2009-02-04 重庆大学 Technical information secrecy system in peripheral cooperation digital control processing for product and secrecy realization method
CN101329658B (en) * 2007-06-21 2012-12-05 西门子(中国)有限公司 Encryption and decryption method, and PLC system using the same
CN103093155B (en) * 2012-12-07 2016-04-27 中北大学 Based on the information concealing method of Codes Revised
WO2014147748A1 (en) * 2013-03-19 2014-09-25 株式会社東芝 Code processing device and program

Also Published As

Publication number Publication date
CN104991521A (en) 2015-10-21

Similar Documents

Publication Publication Date Title
Khatibsyarbini et al. Test case prioritization using firefly algorithm for software testing
CN110414261A (en) A kind of data desensitization method, device, equipment and readable storage medium storing program for executing
CN101071378A (en) Source code generation method, apparatus and program
CN110825363B (en) Intelligent contract acquisition method and device, electronic equipment and storage medium
CN105022936A (en) Class file encryption and decryption method and class file encryption and decryption device
US8539466B2 (en) Determining suitable insertion points for string sanitizers in a computer code
CN103927164B (en) A kind of script obscures method and system
CN102508660A (en) Generation method and device of executable file
CN104751024A (en) Method and device for encrypting core source code
CN105868589A (en) Script encryption method, and script running method and device
CN105718765A (en) Method for achieving code obfuscation through finite automaton
CN109409036A (en) Control stream based on redundant code obscures method and device, storage medium and terminal
CN110244659A (en) Control device, data creating device, control method and control program
CN111914225A (en) Source code protection system and source code encryption method
Zhang et al. Source code obfuscation for smart contracts
CN111324591B (en) Block chain bifurcation detection method and related device
US20220066783A1 (en) Systems and methods for extending a live range of a virtual scalar register
CN104991521B (en) A kind of NC program segments prevent the method divulged a secret
CN105512037A (en) OpenGL (open graphics library) core library validation method
CN108932407B (en) Program safety protection method and device
CN111597576B (en) Android compilation-based assets file encryption method and related equipment thereof
CN101706859A (en) Device and method for protecting source code
CN116796295A (en) Intelligent contract byte code confusion method and system based on flower instruction and instruction overlapping
WO2017204139A1 (en) Data processing apparatus, data processing method, and program recording medium
CN111291333A (en) Java application program encryption method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20170825

Address after: Dazu laser Building No. 9 Nanshan District high tech Park North new road Shenzhen city Guangdong province 518055

Applicant after: HAN'S LASER TECHNOLOGY INDUSTRY GROUP Co.,Ltd.

Applicant after: HAN'S PA AUTOMATION TECHNOLOGY Co.,Ltd.

Applicant after: SHENZHEN HAN'S SMART CONTROL TECHNOLOGY Co.,Ltd.

Address before: Dazu laser Building No. 9 Nanshan District high tech Park North new road Shenzhen city Guangdong province 518055

Applicant before: HAN'S LASER TECHNOLOGY INDUSTRY GROUP Co.,Ltd.

Applicant before: HAN'S PA AUTOMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518055, the Han Dynasty laser building, No. 9 West West Road, Nanshan District hi tech park, Guangdong, Shenzhen

Patentee after: HAN'S LASER TECHNOLOGY INDUSTRY GROUP Co.,Ltd.

Country or region after: China

Patentee after: Shenzhen Han's photon laser technology Co.,Ltd.

Patentee after: SHENZHEN HAN'S SMART CONTROL TECHNOLOGY Co.,Ltd.

Address before: 518055, the Han Dynasty laser building, No. 9 West West Road, Nanshan District hi tech park, Guangdong, Shenzhen

Patentee before: HAN'S LASER TECHNOLOGY INDUSTRY GROUP Co.,Ltd.

Country or region before: China

Patentee before: HAN'S PA AUTOMATION TECHNOLOGY Co.,Ltd.

Patentee before: SHENZHEN HAN'S SMART CONTROL TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address