May 11, 2023 Leave a message

How to protect the NC program so that others cannot modify and edit the NC program?

 

As a CNC technician, we often encounter production operators or non-professionals tampering or modifying the program. In order to prevent the program from being tampered with by others, we need to encrypt the program.

This paper mainly solves two problems:

1. How to control the override switch through the NC program?

2. After controlling the override switch, how to protect the NC program so that others cannot modify and edit the NC program?


The first question: How to control the override switch through the NC program?


Answer: In the program you want to run processing, write a macro variable #3004=2


Example:

As shown in the screenshot above, when the machine tool runs to this section #3004=2, and then runs the subsequent program, the feedrate override switch on the machine operation panel is invalid.

illustrate:


#3004 belongs to the system macro variables. Zou Jun, as I said before, the variables of CNC macro programs are divided into three categories (personal variables, public variables, system variables). System variables are special variables inside the machine tool system. Each system variable represents Meaning is fixed in the system.


Then the meaning of #3004 in the machine tools of Farak system is as follows:


Well, through the above table, assign different values to #3004 to control whether the feed pause switch and override are valid.


For example, write a sentence #3004=2 in the program, when the machine reads this line, the override switch function will be invalid.


For example, write a sentence #3004=3 in the program, when the machine tool reads this line, the functions of feed pause and override switch will be invalid.

Second, after controlling whether the feed pause switch and the override switch are valid, you may want to protect the program you wrote so that the operator cannot modify it.


Before talking about this issue, we must first understand the four types and functions of the program number (taking Farak as an example):

The programs we write can be named and saved between O0001-O9999 program numbers, and these program numbers are divided into the following four groups:


OK, program modifications are not allowed

Just save the program number between 08000-O9999, which can be realized by setting parameters.


Proceed as follows:


1.) Change NE8 NE9 under parameter No. 3202 to 1 (change it to 1 after writing the program, and editing can be prohibited), and change it to 0 to open editing.


2.) Change the PSR under parameter 3202 to 0 to allow retrieval of programs 8000-9999, and 1 to not allow it! !


3.) Note that it must be changed to 0 when you want to edit the program, and 1 is forbidden.


The specific operation of the above three steps is as follows:


Open the parameter interface and find the parameter 3202 in it, as shown in the figure below (the position of the red circle):

picture

No.3202 This parameter is specially used to set the program read-only mode. There are NE9 and NE8 in it, and the main purpose of PSR is as follows:

 

Is PSR allowed to retrieve program numbers 8000-9999

0: allow retrieval

1: not allowed


NE8 Whether to prohibit program editing of program numbers 8000~8999

0: Not prohibited.

1: Disabled.


When this parameter is set to 1, the following editing operations will no longer be possible.

(1) Deletion of programs (programs 8000~8999 will not be deleted even if all programs are deleted)

(2) Program output (even if the operation of outputting all programs is executed, programs No. 8000 to 8999 will not be output)

(3) Editing of the login program

(4) Check the program

 

NE9 Whether to edit programs with program numbers 9000~9999

0: Not prohibited.

1: Disabled.

 

When this parameter is set to 1, the following editing operations will no longer be possible.

(1) Deletion of programs (programs 9000 to 9999 will not be deleted even if all programs are deleted)

(2) Program output (programs No. 9000 to 9999 will not be output even if the operation to output all programs is executed)

(3 ) Editing of the registration program

(4) Verification of the program

Well, just write a macro variable, and then change the name of the program you don’t want others to modify to O8000~9999. According to the above explanation, modifying the parameters can achieve your desired goal!

Reminder: To modify the program name O8000~9999, first open the "parameter protection", and this parameter must be carried out in MDI mode! If you don't understand, welcome to communicate with me.

 

 

Send Inquiry

whatsapp

skype

E-mail

Inquiry